chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Small SWIG problem with workaround


From: Jonah Beckford
Subject: Re: [Chicken-users] Small SWIG problem with workaround
Date: Mon, 31 Mar 2003 09:56:28 -0500

Thanks!  I will get your fix incorporated into the CVS version of SWIG.

Jonah

At 12:21 AM 31/03/2003 +1200, Chris Double wrote:
Trying the SWIG chicken examples I came across one small problem when trying
to compile things as a shared library using 'make module'.

I get the error:

/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../../i386-slackware-linux/bin/ld:
module.so: undefined versioned symbol name _LIB_VERSION@@GLIBC_2.0
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../../i386-slackware-linux/bin/ld:
failed to set dynamic section sizes: Bad value

This appears to be caused by having '-lm' before '-lieee' on the command line.
Looking at the makefile I see the Chicken specific sections add -lm and
-lieee but Swig already does it in the correct order. The chicken ones come
before the Swig ones and that's where the problem lay. Removing the chicken
ones caused things to work fine.

The fix was to remove -lm and -lieee from CHICKEN_LIBOPTS and
CHICKEN_SHAREDLIBOPTS in Examples/Makefile.

This is the first time I've used Swig and I have to say, it's great. Wrapping
libraries is a breeze.

Chris.
--
http://radio.weblogs.com/0102385
http://www.double.co.nz


_______________________________________________
Chicken-users mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/chicken-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]