Compile problem on CentOS 5.4 x86_64
David
david at pnyet.web.id
Thu Mar 4 00:10:18 MST 2010
Dear All,
I've some problems when trying to compile or build rpm packages from
samba source (samba-3.50) on CentOS 5.4 x86_64.
My first problem:
/makerpms.sh: Getting Ready to build release package
error: Failed build dependencies:
keyutils-devel is needed by samba-3.5.0-1.x86_64
makerpms.sh: Done.
/I've replaced keyutils-devel to keyutils-libs-devel on samba.spec,
problem solved.
2nd problem:
Linking bin/smbclient
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `PC’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetflag’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetent’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `UP’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tputs’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgoto’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetnum’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `BC’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetstr’
collect2: ld returned 1 exit status
make: *** [bin/smbclient] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.51781 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.51781 (%build)
makerpms.sh: Done.
And I added this LDFLAGS=”-Wl,–no-as-needed” in samba.spec (before ./configure), my problem solved.
And the last problem when trying to build rpm packages still does not solved and my project was stoped :(
+ cd .. + install -m 755 nsswitch/libnss_winbind.so
/var/tmp/samba-3.5.0-root/lib64/libnss_winbind.so.2 + install -m 755
nsswitch/libnss_wins.so
/var/tmp/samba-3.5.0-root/lib64/libnss_wins.so.2 + cd
/var/tmp/samba-3.5.0-root/lib64 + ln -sf libnss_winbind.so.2
libnss_winbind.so + ln -sf libnss_wins.so.2 libnss_wins.so + /bin/rm
-rf ‘/var/tmp/samba-3.5.0-root/usr/lib*/samba/security’ + echo
127.0.0.1 localhost + install -m644 setup/samba.log
/var/tmp/samba-3.5.0-root/etc/logrotate.d/samba + install -m644
setup/swat /var/tmp/samba-3.5.0-root/etc/xinetd.d/swat + install
-m644 setup/samba.sysconfig
/var/tmp/samba-3.5.0-root/etc/sysconfig/samba + install -m755
setup/smb.init /var/tmp/samba-3.5.0-root/etc/rc.d/init.d/smb +
install -m755 setup/winbind.init
/var/tmp/samba-3.5.0-root/etc/rc.d/init.d/winbind + install -m644
setup/samba.pamd /var/tmp/samba-3.5.0-root/etc/pam.d/samba + install
-m755 setup/smbprint /var/tmp/samba-3.5.0-root/usr/bin + install
-m644 setup/smbusers /var/tmp/samba-3.5.0-root/etc/samba/smbusers +
install -m644 setup/smb.conf
/var/tmp/samba-3.5.0-root/etc/samba/smb.conf + install -m755
source3/bin/mount.cifs /var/tmp/samba-3.5.0-root/sbin/mount.cifs +
install -m755 source3/bin/umount.cifs
/var/tmp/samba-3.5.0-root/sbin/umount.cifs install: cannot stat
`source3/bin/umount.cifs’: No such file or directory error: Bad exit
status from /var/tmp/rpm-tmp.5962 (%install) RPM build errors: Bad
exit status from /var/tmp/rpm-tmp.5962 (%install) makerpms.sh: Done.
Anyone know about this issue? and how to fix?
--
Warm regards,
David
http://blog.pnyet.web.id
More information about the samba-technical
mailing list