Trying to install with shared libraries on Mac OS X

James Brown jlbrown at bordo.com.au
Mon May 8 09:10:37 CEST 2006


I am trying to install Libgmp on Mac OS 10.4.6 with shared libraries  
so that ClamAV can use it.

Before you say RTFM, I read the manual! I got it to compile with cc  
not gcc using:

./configure CC=cc

And everything seemed to work OK. Make, make check and make install  
went fine.

But when I try to make Clamav, it says:

*** Warning: This system can not link to static lib archive /usr/ 
local/lib/libgmp.la.
*** I have the capability to make that library automatically link in  
when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.


ld: Undefined symbols:
___gmpz_add
___gmpz_clear
___gmpz_init
___gmpz_init_set_str
___gmpz_mul_2exp
___gmpz_powm
___gmpz_set_ui
___gmpz_tdiv_qr_ui
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libclamav.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



Any suggestions about how I can get around this?

Thanks,

James.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-bugs/attachments/20060508/e61f4d7d/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2423 bytes
Desc: not available
Url : http://gmplib.org/list-archives/gmp-bugs/attachments/20060508/e61f4d7d/smime.bin


More information about the gmp-bugs mailing list