Re: Error compiling libgtop



-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 11 Jun 1998, Sampo Niskanen wrote:

> I have had problems compiling libgtop ver. 0.01 got from
> ftp://ftp.gnome.org/pub/GNOME/extra-src/. It can't find a funtion named
> gh_append2. Compiling libgtop-0.01/examples/.libs/third: 
> 
> gcc -Wall -W -g -O2 -D_IN_LIBGTOP -o .libs/third third.o -Wl,-rpath
> -Wl,/usr/local/lib ../sysdeps/guile/.libs/libgtop_guile.so -Wl,-rpath
> -Wl,/usr/local/lib ../sysdeps/guile/names/.libs/libgtop_guile_names.so
> -Wl,-rpath -Wl,/usr/local/lib ../sysdeps/names/.libs/libgtop_names.so
> -Wl,-rpath -Wl,/usr/local/lib ../sysdeps/common/.libs/libgtop_common.so
> -Wl,-rpath -Wl,/usr/local/lib ../lib/.libs/libgtop.so -lguile -ldl -lqt
> -L/usr/local/lib -ltermcap -lreadline ../intl/libintl.a -L/usr/local/lib
> -lgnomesupport -lm
> ../sysdeps/guile/.libs/libgtop_guile.so: undefined reference to
> `gh_append2'
> collect2: ld returned 1 exit status
> 

Seems you have an older version of guile installed which does not define
gh_append2(). Here's some ugly hack:

=============================================================================
- --- libgtop/glibtop.h   Tue May 19 20:19:48 1998
+++ libgtop.new/glibtop.h       Thu Jun 11 22:10:11 1998
@@ -51,6 +51,8 @@
 
 #ifdef HAVE_GUILE
 
+#define gh_append2(a,b)                gh_append(a,b,SCM_UNDEFINED)
+
 /* You need to link with -lgtop_guile to get this stuff here. */
 
 extern void glibtop_boot_guile __P((void));
=============================================================================

Which version of guile do you have? I tested it with 1.3a (from May 4 it
think) but it should also work with 1.2.

The above patch is only an ugly hack and will case an error with recent
versions of guile.

If you _have_ guile 1.2 or newer, please tell me and I'll make a real
fix for this problem to the current CVS version.

Martin


- -----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier

   baulig@castor.uni-trier.de, http://www.home-of-linux.org/
   Key: 1024-bit key with ID C8178435 created 1997/01/24 
   ID:  67 C1 84 A0 47 F5 11 C5  5F 68 4C 84 99 05 C3 92
   Finger me for public key or fetch finger.txt from the url above
- ------------------------------------------------------------------


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBNYA6zIA8K7jIF4Q1AQHrmgQAmEEd5jZcEyRRuh1ec0+5gvZTkW36A9fm
YpAkf4gXxGHWIf6vyrQ4nD7exeo0ShpSZW/FA7UhWFsBkU8mYK/Y8HwB8vteME5B
j0+66/qKE4nJR/HQPQvt9tcJ5MW0LRwjimdowaEVshyCs024eIJxd0bjKJm8itFV
Ehe52gqtBLQ=
=NatO
-----END PGP SIGNATURE-----



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