Re: libgtop make error

On Sun, 11 Oct 1998, Soren Harward wrote:

> Umm, here it is.  This is in ($srctop)/src/daemon:
> -DGLIBTOP_NAMES -I../.. -I../.. -I../../sysdeps/linux -I../../include
> -I../../intl  -I/opt/gnome/lib/glib/include -I/opt/gnome/include
> -DGTOPLOCALEDIR=\"/opt/gnome/share/locale\" -DLIBGTOP_VERSION=\"0.26.3\"
> -DLIBGTOP_SERVER=\"/opt/gnome/bin/libgtop_server\" -I /usr/X11R6/include
> -Wall -W -O6 -mpentiumpro -march=pentiumpro -D_BSD -DGLIBTOP_DAEMON_SLAVE
> -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -c
> gnuserv.c
> gnuserv.c: In function `main':
> gnuserv.c:491: warning: unused parameter `argc'
> gnuserv.c:491: warning: unused parameter `argv'

Just turned off this noise (with `-Wno-unused') ...

> /bin/sh ../../libtool --mode=link egcs -Wall -W -O6 -mpentiumpro
> -march=pentiumpro -D_BSD -DGLIBTOP_DAEMON_SLAVE  -W -Wall
> -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
> -L/opt/gnome/lib -lglib -L/usr/X11R6/lib -lX11 -o libgtop_daemon
> gnuserv.o slave.o main.o io.o version.o ../../lib/
> ../../sysdeps/common/
> ../../sysdeps/linux/
> egcs -Wall -W -O6 -mpentiumpro -march=pentiumpro -D_BSD
> -DGLIBTOP_DAEMON_SLAVE -W -Wall -Wmissing-prototypes
> -Wmissing-declarations -Wpointer-arith -L/opt/gnome/lib -lglib
> -L/usr/X11R6/lib -lX11 -o .libs/libgtop_daemon gnuserv.o slave.o main.o
> io.o version.o -Wl,-rpath -Wl,/opt/gnome/lib ../../lib/.libs/
> -Wl,-rpath -Wl,/opt/gnome/lib ../../sysdeps/common/.libs/
> -Wl,-rpath -Wl,/opt/gnome/lib ../../sysdeps/linux/.libs/
> gnuserv.o: In function `setup_table':
> gnuserv.o(.text+0x49d): undefined reference to `XauGetAuthByAddr'
> collect2: ld returned 1 exit status
> make: *** [libgtop_daemon] Error 1

Oops, oh yes - sorry. I accidentally deleted the @libs_xauth@ here.

Well, do you have libtool 1.2 ?

Just looked a little bit closer at your compile line - you seem to be
using a one day old version of the which passes @GLIB_LIBS@
to libtool - and your libtool itself only passes `-lglib' to egcs once
and it should do this twice due to the dependency in

So I think your libtool will have problems with the current
from CVS.

If you really have libtool 1.2 and get undefined symbols from glib, please
let my know ...

> I see this function is defined in my /usr/X11R6/include/X11/Xauth.h file,
> but I can't get gnuserv.c to find it there.

Yes, you need to link with -lXau - this is checked for in


   Martin Baulig - Angewandte Mathematik - Universitaet Trier,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]