Samba4 wrongly configured to use empty get_interfaces() on Solaris

petr sumbera - Sun Microsystems - Prague Czech Republic Petr.Sumbera at Sun.COM
Wed Aug 16 09:47:02 GMT 2006


Hi Stefan,

Stefan (metze) Metzmacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> petr sumbera - Sun Microsystems - Prague Czech Republic schrieb:
> 
> Hi Peter,
> 
>> The right choice should be version defined with HAVE_IFACE_IFCONF.
>> Problem is that the test program from configure is not linked with
>> "-lnsl -lsocket":
> 
> are really both needed?

Yes, they are. socket() comes from libsocket and inet_ntoa comes from 
libnsl. But anyway man pages for all socket library functions say to use 
"-lsocket -lnsl".

Petr


>> Can anybody see the point where we should fix this?
> 
> we check for -lnsl and -lsocket in lib/socket/config.m4,
> maybe it would be useful to move the lib/netif/ code to lib/socket/
> and then wrapp the netif tests into this:
> 
> old_LIBS=$LIBS;LIBS="$NSL_LIBS $SOCKET_LIBS"
> tests
> LIBS=$old_LIBS
> 
> has onyone a better idea?
> 
> We should also let the configure test bail out if no interface code
> is found!
> 
> metze
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
> 
> iD8DBQFE4jgim70gjA5TCD8RAgOCAJ9i3ul/lCNs0v9ywo91nGLngYPL9gCeITlI
> rVmPJnx7U7HqAd37ZMo/pOQ=
> =hXi0
> -----END PGP SIGNATURE-----



More information about the samba-technical mailing list