Samba 3.5.6 ld error

Share your compiler knowledge

Moderators: Joyce, Laura, Eminent-Admin

Samba 3.5.6 ld error

Postby MartinHerrman » 30 Jan 2011, 21:33

Code: Select all
(..)
Compiling ../lib/popt/poptparse.c
Linking bin/smbd
/opt/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.3/../../../../mips-linux-gnu/bin/ld: cannot find -ltalloc
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1


My compile script:

Code: Select all
#!/bin/sh

# Set variables
export CFLAGS="-EL -O2 -I/home/martin/EM7075/work/samba-3.5.6/lib/talloc"
export CC="/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc"
export PATH=/opt/Sourcery_G++_Lite/bin:$PATH
export LDFLAGS=" -s -Xlinker -rpath /lib -rpath-link /opt/Sourcery_G++_Lite/lib/gcc/mips-linux-gnu/4.3.3/el"
export STRIP="/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-strip"
export LD="/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-ld"

#export LIBTALLOC_LIBS=""
#export LIBTALLOC=""

# Samba specific cross compile instructions for ./configure
# http://lists.samba.org/archive/samba/2005-November/113506.html
# http://samba.2283325.n4.nabble.com/Tough-question-errors-while-cross-compiling-to-MIPS-td2469448.html
export samba_cv_CC_NEGATIVE_ENUM_VALUES="yes"

# Cleanup previous compilations
rm -rf /home/martin/EM7075/result/samba-3.5.6
#disable temporary during debugging this script
#rm -rf /home/martin/EM7075/work/samba*
#enable temporary during debugging this script
rm -rf /home/martin/EM7075/work/samba-3.5.6

# Download source and configure, compile, install
cd /home/martin/EM7075/work
#disable temporary during debuggint this script
#wget http://samba.org/samba/ftp/stable/samba-3.5.6.tar.gz
tar -zxvf samba-3.5.6.tar.gz
cd samba-3.5.6/source3
./configure --prefix=/home/martin/EM7075/result/samba-3.5.6 \
        --host=i686-pc-linux-gnu --target=mipsel-linux-gnu --build=mipsel-linux-gnu --disable-swat \
        --disable-cups --enable-static=yes --enable-shared=no --disable-pie --disable-relro --disable-fam \
        --disable-dnssd --disable-avahi --disable-pthreadpool --disable-merged-build --disable-gnutls \
        --disable-netapi --disable-dmalloc --without-fhs --without-afs --without-fake-kaserver --without-vfs-afsacl \
        --without-ldap --without-ads --without-dnsupdate --without-automount --without-cifsmount --without-cifsumount \
        --without-cifsupcall --without-pam --without-pam_smbpass --without-syslog \
        --without-quotas --without-sys-quotas --without-utmp --without-cluster-support --without-acl-support \
        --without-aio-support --with-sendfile-support --without-winbind \
        --without-sqlite3 --without-pthreads --without-setproctitle
make
#make install

# Strip executables, adjust to match
#$STRIP /home/martin/EM7075/result/template/bin/template


There is no talloc library available (shared or static) at this point. Well.. one on the host system, but this one should not be used :-)

Any point into the right direction is appreciated!
User avatar
MartinHerrman
Forum Supporter
 
Posts: 99
Joined: 08 May 2010, 11:24

Return to EM7075 - Cross-compiling issues & tips

Who is online

Users browsing this forum: No registered users and 1 guest