Compile problem on CentOS 5.4 x86_64
gooztabo
tungusu01 at hotmail.com
Wed Mar 17 10:25:29 MDT 2010
David-817 wrote:
>
> 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
>
>
>
Hi David, i'm Gustavo. I got the same issues when i try to compile
samba-3.5.0, and i fix the first and second, but later i gave another
problem with some files that is already unpackaged in some locations, but i
fix it too. The third problem was with the umount.cifs, and try to fix it (i
think with no success) by copying the original umount.cifs from the ./sbin
folder to the build folder during compilation, not before, not after,
during; then my attempt ends succesfully, and i create the 5 rpm files to
try the install of samba, but when i run the rpm installation, i have an MD5
error during the unpackaging and i cannot install the smbclient. Somebody
can help us!!!!
--
View this message in context: http://old.nabble.com/Compile-problem-on-CentOS-5.4-x86_64-tp27777546p27933581.html
Sent from the Samba - samba-technical mailing list archive at Nabble.com.
More information about the samba-technical
mailing list