Re: link failure in libgtop



On Mon, 9 Nov 1998 dappleby@backtalk.org wrote:

> Using the version of libgtop checked out of the anon-CVS tree about 10
> minutes ago, the build fails in libgtop/src/daemon with the following
> (hopefully you can remove the carriage returns from where they don't belong)
> 
> gcc -Wall -W -g -O2 -Wall -Wno-unused -Wmissing-prototypes
> -Wmissing-declarations -Wpointer-arith -D_BSD -DGLIBTOP_DAEMON_SLAVE -o
> .libs/libgtop_daemon gnuserv.o slave.o main.o io.o version.o -Wl,-rpath
> -Wl,/usr/gnome/lib ../../lib/.libs/libgtop.so -Wl,-rpath -Wl,/usr/gnome/lib
> ../../sysdeps/common/.libs/libgtop_common.so -Wl,-rpath -Wl,/usr/gnome/lib
> ../../sysdeps/linux/.libs/libgtop_sysdeps.so -L/usr/X11R6/lib -lXau -lm
> ../../sysdeps/linux/.libs/libgtop_sysdeps.so: undefined reference to
> `g_hash_table_new'
> ../../sysdeps/linux/.libs/libgtop_sysdeps.so: undefined reference to
> `g_ptr_array_add'
> ../../sysdeps/linux/.libs/libgtop_sysdeps.so: undefined reference to
> `g_strdup'
> ../../sysdeps/linux/.libs/libgtop_sysdeps.so: undefined reference to `g_log'
> ../../sysdeps/linux/.libs/libgtop_sysdeps.so: undefined reference to
> `g_ptr_array_new'
> ../../sysdeps/linux/.libs/libgtop_sysdeps.so: undefined reference to
> `g_hash_table_insert'
> collect2: ld returned 1 exit status
> make: *** [libgtop_daemon] Error 1
> 
> To make it compile, I had to add @GLIB_LIBS@ to line 39 of
> src/daemon/Makefile.am.  Should the reference to the GLIB libraries be in
> there, or is something else wrong?  
> 
> I haven't tested it to see if the libraries actually run yet, but getting it
> to build was step one :)

Do you really have libtool >= 1.2 ?

Martin

Btw.: @GLIB_LIBS@ is is src/daemon/Makefile.am ...
      (to stop people complaining - even if it doesn't belong there ...)

-----------------------------------------------------------------
   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]