[Samba] Samba 3.5.6, Solaris 10, pam_winbind.so will not link

Jeremy Allison jra at samba.org
Wed Oct 27 15:57:36 MDT 2010


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 1

I think you need to add -lintl to the link line.


More information about the samba mailing list