inet_aton on Solaris 8

Romeril, Alan a.romeril at
Sun Jan 7 23:19:46 GMT 2001

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
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..... :)


-----Original Message-----
From: Richard Sharpe [mailto:sharpe at]
Sent: Sunday, January 07, 2001 7:34 PM
To: Romeril, Alan
Cc: samba-technical at
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
>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 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
>I`ve tried /usr/local/bin/cvs -z5 -d
:pserver:cvs at
>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
>samba site aren`t too clear about this procedure.
>Best Regards,

Richard Sharpe, sharpe at
Samba (Team member,, Ethereal (Team member,
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba

More information about the samba-technical mailing list