From: Ben W. <ra...@bl...> - 2002-10-24 23:43:10
|
Ludwig Nussel wrote: > Ben Winslow wrote: > >>I'm too tired to dig into *why* this is happening, and it looks like a >>local (at least local to Debian sid) problem, but I wanted to share this: >> >>/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o xqf-rcon rcon.o >>debug.o -L/usr/lib -lglib -lreadline >>gcc -g -O2 -Wall -o xqf-rcon rcon.o debug.o -L/usr/lib >>/usr/lib/libglib.so -lreadline >>/usr/lib/crt1.o(.text+0x18): In function `_start': >>: undefined reference to `main' >>rcon.o(.text+0x8a): In function `rcon_print': >>/home/rain/crap/xqf/src/rcon.c:88: undefined reference to > ^^^^ !!! Substitute 'crap' with 'misc' if you like. ;) Source trees I want to keep around and some other miscellanea live there. It's all part of a very complex filing system that makes up my home directory, honest! :) > >>`gtk_text_get_type' >>rcon.o(.text+0x96):/home/rain/crap/xqf/src/rcon.c:88: undefined >>reference to `gtk_type_check_object_cast' > > > What version of automake do you have? Looks like -DRCON_STANDALONE > was missing during compilation. ii automake 1.4-p6-2 A tool for generating GNU Standards-complian ii automake1.6 1.6.3-4 A tool for generating GNU Standards-complian For the sake of completeness: libtoolize (GNU libtool) 1.4.2a aclocal (GNU automake) 1.4-p6 Autoconf version 2.13* automake (GNU automake) 1.4-p6 *: /usr/bin/autoconf is a wrapper that selects between 2.54 and 2.13 from src/Makefile: xqf_rcon_LDADD = $(GLIB_LIBS) $(XQFRCON_LIBS) xqf_rcon_SOURCES = rcon.c debug.c xqf_rcon_CFLAGS = -DRCON_STANDALONE $(GLIB_CFLAGS) As far as I can tell, automake is completely ignoring the CFLAGS for xqf_rcon. There wasn't even an attempt to rebuild rcon.o. > > cu > Ludwig > -- Ben |