Robert M. Martel - CSU
2010-Oct-18 14:01 UTC
[Samba] Unable to compile Samba 3.5.6 on Solaris 9 - more winbind issues
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. -- *********************************************************************** Robert M. Martel Pushing myself and this old machine System Administrator Burning fumes Levin College of Urban Affairs and what's left of my dreams Cleveland State University (216) 687-2214 r.martel at csuohio.edu ***********************************************************************
Gaiseric Vandal
2010-Oct-18 18:15 UTC
[Samba] Unable to compile Samba 3.5.6 on Solaris 9 - more winbind issues
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. >
Robert M. Martel - CSU
2010-Oct-19 14:13 UTC
[Samba] Unable to compile Samba 3.5.6 on Solaris 9 - more winbind issues
Greetings, Just for completeness I am seeing the same problem building Samba 3.5.6 under Solaris 10: Had to manually add "-lintl" to the LIBS option in the Makefile. ... 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 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. >-- *********************************************************************** Robert M. Martel I met someone who looks a lot like you System Administrator She does the things you do Levin College of Urban Affairs But she is an IBM Cleveland State University -Jeff Lynne (216) 687-2214 r.martel at csuohio.edu ***********************************************************************