[Samba] Unable to compile Samba 3.5.6 on Solaris 9 - more winbind issues

Gaiseric Vandal gaiseric.vandal at gmail.com
Mon Oct 18 12:15:38 MDT 2010


I had a lot of trouble with compiling Samba on Solaris 10.    (Thumbs 
down to Sun for abandoning Samba.)

The "ld" command was a problem.    Sunfreeware gcc is hard coded to use 
/usr/ccs/bin/ld.      I had set up a symlink so that /usr/ccs/bin/ld 
actually pointed to gld (e.g. /usr/sfw/bin/gld or /usr/local/bin/ld.)  .e.g
     #cd /usr/ccs/bin
     # mv ld ld.sun
     # ln -s /usr/local/bin/ld /usr/ccs/bin/ld

You also have to make sure you have openldap installed and set CPPFLAGS  
and LDFLAGS in addition to PATH and LD_LIBRARY_PATH

e.g.

CPPFLAGS="-I /usr/local/samba-3.5.2/include"
CPPFLAGS="-I /usr/sfw/include /usr/ccs/include $CPPFLAGS"

LDFLAGS="-L/usr/local/samba-3.5.2/lib -R/usr/local/samba-3.5.2/lib"
LDFLAGS="-L/usr/ccs/lib -R/usr/ccs/lib $LDFLAGS"
LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib $LDFLAGS"


(maybe I already replied about this to an earlier post.)


It you get samba from sunfreeware.com, you may be able to compile the 
zfs module separately from source.  not sure.




On 10/18/2010 10:01 AM, Robert M. Martel - CSU wrote:


> Greetings,
>
> No helpful hints have been offered to my winbind issues with Samba 
> 3.4.9 and Solaris 9 I started trying to build Samba 3.5.6.  Using gcc 
> 3.4.6. I added "-lintl" to the LIBS option in the Makefile which 
> cleared some earlier linker errors involving libintl_gettext, 
> libintl_textdomain  and libintl_bindtextdomain being undefined, except 
> with winbind:
>
> Linking shared library bin/pam_winbind.so
> Undefined                       first referenced
>  symbol                             in file
> libintl_bindtextdomain              ../nsswitch/pam_winbind.o
> libintl_dgettext                    ../nsswitch/pam_winbind.o
> ld: fatal: Symbol referencing errors. No output written to 
> bin/pam_winbind.so
> collect2: ld returned 1 exit status
> make: *** [bin/pam_winbind.so] Error 1
>
> I have not been able to get any version of Samba beyond 3.2.15 to 
> build on Solaris 9 with support for Active Directory.  Any later 3.2 
> version I see run-time errors with winbind which is why I decided to 
> give 3.5 a try.
>



More information about the samba mailing list