Re: libgtop make error
- From: Martin Baulig <martin home-of-linux org>
- To: Soren Harward <soren cinternet net>
- cc: Gnome Main List <gnome-list gnome org>
- Subject: Re: libgtop make error
- Date: Mon, 12 Oct 1998 12:12:00 +0200 (CEST)
On Sun, 11 Oct 1998, Soren Harward wrote:
> Umm, here it is. This is in ($srctop)/src/daemon:
>
> egcs -DHAVE_CONFIG_H -I. -I. -I../.. -D_IN_LIBGTOP -D_GNU_SOURCE
> -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_VERSION=\"1\"
> -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/libgtop.la
> ../../sysdeps/common/libgtop_common.la
> ../../sysdeps/linux/libgtop_sysdeps.la
> 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/libgtop.so
> -Wl,-rpath -Wl,/opt/gnome/lib ../../sysdeps/common/.libs/libgtop_common.so
> -Wl,-rpath -Wl,/opt/gnome/lib ../../sysdeps/linux/.libs/libgtop_sysdeps.so
> 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 Makefile.am 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 libgtop_sysdeps.la.
So I think your libtool will have problems with the current Makefile.am
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 configure.in.
Martin
-----------------------------------------------------------------
Martin Baulig - Angewandte Mathematik - Universitaet Trier
martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]