Robert M. Martel - CSU
2010-Oct-27 13:50 UTC
[Samba] Samba 3.5.6, Solaris 10, pam_winbind.so will not link
Greetings,
Still no progress trying to get Samba 3.5.6 built on Solaris 10, using
gcc 3.4.6.
Maybe fresh eyes will see something? Been having issues building samba
since 3.4.9 (and anything greater than 3.2.15 on Solaris 9 where samba
will build, but winbind will not work properly for user authentication.)
techops$ make
Using CFLAGS = -I/opt/local/kerberos5/include -O -I.
-I/usr/local/src/samba-3.5.6/source3
-I/usr/local/src/samba-3.5.6/source3/iniparser/src -Iinclude -I./include
-I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc
-I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
-I/opt/local/kerberos5/include -I/opt/local/openldap/include
-L/usr/local/lib -R /usr/local/lib -L/usr/sfw/lib -R /usr/sfw/lib
-D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64
-DLDAP_DEPRECATED -DSUNOS5 -I/usr/local/src/samba-3.5.6/source3/lib
-I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
PICFLAG = -fPIC
LIBS = -lsendfile -lresolv -lrt -lnsl -lsocket -liconv -lintl
LDFLAGS = -pie -L/opt/local/kerberos5/lib
-R/opt/local/kerberos5/lib -Wl,-z,ignore -L/opt/local/openldap/lib
-L/usr/local/lib -R/usr/local/lib -R/opt/local/openldap/lib -lthread -L./bin
DYNEXP LDSHFLAGS = -fPIC -shared -L/opt/local/kerberos5/lib
-R/opt/local/kerberos5/lib -Wl,-z,ignore -L/opt/local/openldap/lib
-L/usr/local/lib -R/usr/local/lib -R/opt/local/openldap/lib -lthread
-L./bin -lc -Wl,-z,defs
SHLIBEXT = so
SONAMEFLAG = -Wl,-h,
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
--
***********************************************************************
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
***********************************************************************
Jeremy Allison
2010-Oct-27 21:57 UTC
[Samba] Samba 3.5.6, Solaris 10, pam_winbind.so will not link
On Wed, Oct 27, 2010 at 09:50:44AM -0400, Robert M. Martel - CSU wrote:> Greetings, > > Still no progress trying to get Samba 3.5.6 built on Solaris 10, > using gcc 3.4.6. > > Maybe fresh eyes will see something? Been having issues building > samba since 3.4.9 (and anything greater than 3.2.15 on Solaris 9 > where samba will build, but winbind will not work properly for user > authentication.) > > techops$ make > Using CFLAGS = -I/opt/local/kerberos5/include -O -I. > -I/usr/local/src/samba-3.5.6/source3 > -I/usr/local/src/samba-3.5.6/source3/iniparser/src -Iinclude > -I./include -I. -I. -I./../lib/replace -I./../lib/tevent > -I./libaddns -I./librpc -I./.. -I./../lib/talloc > -I../lib/tdb/include -DHAVE_CONFIG_H -I/opt/local/kerberos5/include > -I/opt/local/openldap/include -L/usr/local/lib -R /usr/local/lib > -L/usr/sfw/lib -R /usr/sfw/lib -D_LARGEFILE_SOURCE -D_REENTRANT > -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5 > -I/usr/local/src/samba-3.5.6/source3/lib -I.. -I../source4 > -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 > PICFLAG = -fPIC > LIBS = -lsendfile -lresolv -lrt -lnsl -lsocket -liconv -lintl > LDFLAGS = -pie -L/opt/local/kerberos5/lib > -R/opt/local/kerberos5/lib -Wl,-z,ignore -L/opt/local/openldap/lib > -L/usr/local/lib -R/usr/local/lib -R/opt/local/openldap/lib -lthread > -L./bin > DYNEXP > LDSHFLAGS = -fPIC -shared -L/opt/local/kerberos5/lib > -R/opt/local/kerberos5/lib -Wl,-z,ignore -L/opt/local/openldap/lib > -L/usr/local/lib -R/usr/local/lib -R/opt/local/openldap/lib -lthread > -L./bin -lc -Wl,-z,defs > SHLIBEXT = so > SONAMEFLAG = -Wl,-h, > 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 1I think you need to add -lintl to the link line.
Christopher Chan
2010-Oct-27 22:04 UTC
[Samba] Samba 3.5.6, Solaris 10, pam_winbind.so will not link
On Wednesday, October 27, 2010 09:50 PM, Robert M. Martel - CSU wrote:> Greetings, > > Still no progress trying to get Samba 3.5.6 built on Solaris 10, using > gcc 3.4.6. >Isn't it bad to use gcc for this? pam_winbind and nss_winbind would be using gcc ABI while the rest of the system using Sun Studio ABI...> 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 >DO you have libintl somewhere?
Robert M. Martel - CSU
2010-Nov-04 20:45 UTC
[Samba] Samba 3.5.6, Solaris 10, pam_winbind.so will not link
In case others have this problem. On 10/27/2010 09:50 AM, Robert M. Martel - CSU wrote: ...> 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 ended up adding "-lintl" to several other locations in the "configure" generated makefile including the first "LIBS" line and on lines for building the pam winbind shared libraries. Then I was able to complete the build process. -- *********************************************************************** 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 ***********************************************************************