QUOTE(Meanie @ Aug 11 2007, 06:37 PM)
QUOTE(renick @ Aug 11 2007, 12:35 AM)
QUOTE(pelrun @ Aug 10 2007, 05:21 PM)
That's odd - strictly speaking, "-lc" shouldn't even be passed explicitly as it's automatically included. Try deleting it from the config.mk file and recompiling.
Thanks for the suggestion, but it didn't make any difference. The same error resulted.
did you also rerun configure again after that before you started recompiling?
Thanks a lot for your attention to my problem.
There's no configure for wmii. The readme just says run make and then make install after editing the config.mk file. I ditched the unpacked tar, reunpacked it, and then removed -lc from this line:
CODE
# Includes and libs
INCS = -I. -I${ROOT}/include -I${INCLUDE} -I/usr/include
LIBS = -L/usr/lib -lc
so that it read:
CODE
LIBS = -L/usr/lib
Then I ran make. The process began again from the very beginning, like before, and resulted in the exact same error.
Now, I'll admit that I don't really know what I am doing. I've barely started to learn C, so this is all over my head. Have I edited the line incorrectly? I suppose another possibility is that there's something else in config.mk that I haven't configured correctly. Here's the whole file:
CODE
# Customize below to fit your system
# paths
PREFIX = /usr/local
BIN = ${PREFIX}/bin
MAN = ${PREFIX}/share/man
ETC = ${PREFIX}/etc
LIBDIR = ${PREFIX}/lib
INCLUDE = ${PREFIX}/include
# Includes and libs
INCS = -I. -I${ROOT}/include -I${INCLUDE} -I/usr/include
LIBS = -L/usr/lib
# Flags
include ${ROOT}/mk/gcc.mk
# wmii is IO bound, not CPU bound. Please do not use -O2 here. -O is more than sufficient.
CFLAGS +=
LDFLAGS +=
STATIC = -static
# Compiler
CC = cc -c
# Linker (Under normal circumstances, this should *not* be 'ld')
LD = cc
# Other
AR = ar crs
#AR = sh -c 'ar cr "$$@" && ranlib "$$@"'
P9PATHS = /usr/local/plan9 /usr/local/9 /opt/plan9 /opt/9 /usr/plan9 /usr/9
INCX11 = -I/usr/X11R6/include
LIBX11 = -L/usr/X11R6/lib -lX11
LIBIXP = ${ROOT}/libixp/libixp.a
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS} -R${PREFIX}/lib
#LDFLAGS += -lsocket -lnsl
#CFLAGS += -xtarget=ultra
#FCALL_H_VERSION=.nounion