Re: cone-0.78.20090507: link problems on Mac OSX

Sam Varshavchik <[email protected]> Thu, 04 Jun 2009 20:35:52 -0400
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
Uffe Jakobsen writes:

> Undefined symbols:
>    "_rfc1035_default_resolver", referenced from:
>        _rfc1035_default_resolver$non_lazy_ptr in testlookup.o
>        _rfc1035_default_resolver$non_lazy_ptr in librfc1035.a(spf.o)

[ … ]

No. Look closer. The symbol rfc1035_default_resolver is also referenced from 
testlookup.o, which gets linked directly against the static library. It 
should pull in that module just for that reason alone.

This is apparently some oddball behavior of BSD lineage ranlib. ranlib 
indexes only function symbols in static library members, and does not index 
the non-function symbols. The result is that the linker searches static 
libraries for unresolved function symbols only. If a module does not define 
any function symbols, but contains only data symbols, the linker ignores it.

Refreshing my memory with a little Googling, it seems that you need to set 
RANLIB="ranlib -c" in the environment, prior to running the configure 
script.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get

_______________________________________________
Courier-cone mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkooaGgACgkQx9p3GYHlUOIsOQCfbES4V8BSHJraf8uXHGWQ+vEr
tBAAnRrUvreAsEKJAiXalzCYoLAn24c6
=RWAg
-----END PGP SIGNATURE-----