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

From: Andy Gimblett <wmii_AT_gimbo.org.uk>
Date: Mon, 16 Oct 2006 13:37:18 +0100

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?
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?
-- 
Andy Gimblett
Computer Science Department
University of Wales Swansea
http://www.cs.swan.ac.uk/~csandy/
Received on Mon Oct 16 2006 - 14:37:50 UTC

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