Re: [wmii] wmiiwm build errors (libixp location, and error())

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon, 16 Oct 2006 14:44:29 +0200

On Mon, Oct 16, 2006 at 01:37:18PM +0100, Andy Gimblett wrote:
> Hi all,
>
> Clean install of FreeBSD 6.1, attempting to install dmenu/libixp/wmii
> from hg tip:
>
> I obtained what I think are the latest sources using:
>
> hg clone http://suckless.org/cgi-bin/hgwebdir.cgi/dmenu
> hg clone http://suckless.org/cgi-bin/hgwebdir.cgi/libixp
> hg clone http://suckless.org/cgi-bin/hgwebdir.cgi/wmii
>
> I then built & installed dmenu & libixp without any problems, to their
> default locations. That is, I didn't edit config.mk, and PREFIX was
> /usr/local
>
> I then tried to build wmiiwm:
>
> [gimbo_AT_mane wmii] sudo make all
> wmii build options:
> CFLAGS = -Os -I. -I/usr/local/include -I/usr/include -I/usr/X11R6/include -DVERSION="3.5"
> LDFLAGS = -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/local -lixp -lm
> CC = cc
> LD = cc
> LD wmiiwm
> /usr/bin/ld: cannot find -lixp
> *** Error code 1
>
> Stop in /usr/home/gimbo/wmii/wmii.
>
> --
>
> Noticing the -L/usr/local in LDFLAGS, I changed that to
> -L${PREFIX}/lib in config.mk (since libixp.a is in /usr/local/lib).
> Right thing to do? Should be modified in hg tip?

Fixed.

> Alas, build still fails:
>
> [gimbo_AT_mane wmii] gmake all
> wmii build options:
> CFLAGS = -Os -I. -I/usr/local/include -I/usr/include -I/usr/X11R6/include -DVERSION="3.5"
> LDFLAGS = -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/local/lib -lixp -lm
> CC = cc
> LD = cc
> CC area.c
> CC bar.c
> CC client.c
> CC column.c
> CC draw.c
> CC event.c
> CC frame.c
> CC fs.c
> CC geom.c
> CC key.c
> CC mouse.c
> CC rule.c
> CC view.c
> CC wm.c
> LD wmiiwm
> wm.o(.text+0x224): In function `main':
> : undefined reference to `error'
> wm.o(.text+0x295): In function `main':
> : undefined reference to `error'
> wm.o(.text+0x337): In function `main':
> : undefined reference to `error'
> wm.o(.text+0x352): In function `main':
> : undefined reference to `error'
> wm.o(.text+0x368): In function `main':
> : undefined reference to `error'
> wm.o(.text+0x3c0): more undefined references to `error' follow
> gmake: *** [wmiiwm] Error 1
>
> Compiling with -g, I get quite a few warning, inlcuding one of
> implicit declaration of error() in wm.c
>
> Where's error() from, then?

Ok, also fixed in hg tip.

Thanks for your report.

-- 
 Anselm R. Garbe  ><><  http://suckless.org/~arg/  ><><  GPG key: 0D73F361
Received on Mon Oct 16 2006 - 14:44:29 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:15:58 UTC