inet_aton on Solaris 8
Simo Sorce
simo.sorce at polimi.it
Mon Jan 8 11:42:53 GMT 2001
On Sun, 7 Jan 2001, Romeril, Alan wrote:
> Richard,
> Hang on, inet_aton *is* in Solaris but not mentioned on the INET(3SOCKET)
> man page.
> It`s in libresolv! However, Samba doesn`t link against libresolv as a
> default.
> Changing the LIBS= line in the Makefile to LIBS=-lsec -lgen -lsocket -lnsl
> -ldl -lresolv lets libsmb/clidgram.c compile fine unchanged. That`s a
> better fix.
> Grrrr Solaris hiding things away like that..... :)
Also linux hides calls:
try inet_pton it works, but no manpages mention it!
(it is in arpa/inet.h)
>
> Alan
>
> -----Original Message-----
> From: Richard Sharpe [mailto:sharpe at ns.aus.com]
> Sent: Sunday, January 07, 2001 7:34 PM
> To: Romeril, Alan
> Cc: samba-technical at us5.samba.org
> Subject: Re: inet_aton on Solaris 8
>
>
> At 03:10 PM 1/7/01 +0000, Romeril, Alan wrote:
> >Hi Richard,
> > I`ve just been trying to do a compile of the cvs sources, but have
> >run into the following...
> >My system is Solaris 8 running on a Sun Ultra 5 and I`m compiling with
> Sun`s
> >Workshop compilers.
> >.
> >.
> >.
> >Compiling smbd/notify_hash.c
> >Compiling smbd/notify_kernel.c
> >Linking bin/smbd
> >Undefined first referenced
> > symbol in file
> >inet_aton libsmb/clidgram.o
> >ld: fatal: Symbol referencing errors. No output written to bin/smbd
> >*** Error code 1
> >make: Fatal error: Command failed for target `bin/smbd'
> >
> >inet_aton isn`t in Solaris :(
>
> Ohh, Damn ... Since I am only using it in the latest source for converting
> 0.0.0.0 to an IP address, you might be able to replace that with
>
> putip(&my_ip, 0);
>
> But I would like to find a better solution for Solaris ...
>
> >I`d also like to check out the CVS of samba 2.2 to see how ACL support is
> >doing, could you give me the command line to pull down those sources
> please?
> >I`ve tried /usr/local/bin/cvs -z5 -d
> :pserver:cvs at pserver.samba.org:/cvsroot
> >co SAMBA_2_2 but CVS says
>
> Yeah, it like:
>
> co SAMBA -r SAMBA_2_2
>
> or something like that.
>
> >cvs server: cannot find module `SAMBA_2_2' - ignored
> >cvs [checkout aborted]: cannot expand modules
> >so I`m obviously gimping something up along the way but the CVS pages on
> the
> >samba site aren`t too clear about this procedure.
> >
> >Best Regards,
> >Alan
> >
> >
> >
>
> Regards
> -------
> Richard Sharpe, sharpe at ns.aus.com
> Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
> Contributing author, SAMS Teach Yourself Samba in 24 Hours
> Author, Special Edition, Using Samba
>
>
>
--
Simo Sorce - Integrazione Sistemi Unix/Windows - Politecnico di Milano
E-mail: simo.sorce at polimi.it
Tel.int: 02 2399 2425 - Fax.int. 02 2399 2451
-----------------------------------------------------------------
Be happy, use Linux!
More information about the samba-technical
mailing list