Samba4 wrongly configured to use empty get_interfaces() on Solaris

Andrew Bartlett abartlet at samba.org
Tue Aug 15 22:46:56 GMT 2006


On Tue, 2006-08-15 at 23:09 +0200, 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?
> 
> > 
> > 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!

That sounds like the best strategy.  lib/netif and lib/socket are pretty
small and related subsystems anyway, I don't see a problem in them
sharing a folder.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060816/1be40da4/attachment.bin


More information about the samba-technical mailing list