Problems building 2.2.4 on Solaris 7

Nicholas Brealey nick at brealey.org
Mon May 6 04:25:02 GMT 2002


Hi

Just a few minor problems with building Samba 2.2.4:

I configure with:

CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -R/usr/local/lib"
CC=cc ./configure --with-acl-support --localstatedir=/var/samba
--with-configdir=/etc/samba --with-privatedir=/etc/samba --with-quotas
--with-automount --with-nisplus-home --with-smbwrapper

(I am using Sun's SC5.0 compiler).

The configure output included:

checking for poptGetContext in -lpopt... yes
checking whether to use included popt... no


I get this fatal error:

Linking shared library bin/smbwrapper.so
ld: fatal: library -lpopt: not found
ld: fatal: File processing errors. No output written to bin/smbwrapper.so
*** Error code 1
make: Fatal error: Command failed for target `bin/smbwrapper.so'

The problem is that the rule for bin/smbwrapper.so does not include LDFLAGS:

bin/smbwrapper. at SHLIBEXT@: $(PICOBJS) bin/.dummy 
        @echo Linking shared library $@ 
        @$(SHLD) @LDSHFLAGS@ -o $@ $(PICOBJS) $(LIBS) \ 
                @SONAMEFLAG@`basename $@` 

should be changed to:

bin/smbwrapper. at SHLIBEXT@: $(PICOBJS) bin/.dummy 
        @echo Linking shared library $@ 
        @$(SHLD) @LDSHFLAGS@ -o $@ $(PICOBJS) $(LDFLAGS) $(LIBS) \ 
                @SONAMEFLAG@`basename $@` 


(The rules for bin/smbwrapper.32. at SHLIBEXT@ and bin/winbindd also
look wrong because they have a $(LIBS) without a $(LDFLAGS)).

Incidently, the rule:

bin/pam_smbpass. at SHLIBEXT@: $(PAM_SMBPASS_OBJ) bin/.dummy 
        @echo Linking shared library $@ 
        $(SHLD) @LDSHFLAGS@ -symbolic -o $@ $(PAM_SMBPASS_OBJ) $(LDFLAGS) -lpam
$(DYNEXP) $(LIBS) -lc \ 
                @SONAMEFLAG@`basename $@` 

also looks wrong because the Sun linker does not have a -symbolic option.

I also get these warnings:

Linking bin/smbpasswd
cc: Warning: illegal option -dc
cc: Warning: illegal option -dp

Linking bin/swat
cc: Warning: illegal option -dc
cc: Warning: illegal option -dp

Linking bin/winbindd
cc: Warning: illegal option -dc
cc: Warning: illegal option -dp

Deleting the line

                                DYNEXP="-dc -dp" 
from configure.in fixes the problem.


Regards

Nick




More information about the samba-technical mailing list