[PATCH] Samba4 build issues

Nathaniel McCallum nathaniel at natemccallum.com
Tue May 26 02:56:12 GMT 2009


Attached are two patches for build issues when cross compiling.

I'm also having an issue compiling even with those packages installed. 
This is the error I receive:

make: Entering directory 
`/home/natem/haikulogic/trunk/packages/haikulogic/samba4'
CC="i386-linux-uclibc-gcc" CFLAGS="-O2 -pipe -march=i486 
-funit-at-a-time -fhonour-copts " 
CPPFLAGS="-I/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/usr/include 
-I/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/include" 
LDFLAGS="-L/home/natem/haikulogic/trunk/openwrt/staging_dir/toolchain-i386_gcc4.1.2/lib 
-L/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/usr/lib 
-L/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/lib" make -C 
/home/natem/haikulogic/trunk/openwrt/build_dir/i386/samba-4.0.0alpha7//source4 
all
make[1]: Entering directory 
`/home/natem/haikulogic/trunk/openwrt/build_dir/i386/samba-4.0.0alpha7/source4'
Samba will be compiled with flags:
   CPP        = i386-linux-uclibc-gcc -E
   CPPFLAGS   = -I./include -I. -I./lib -I./../lib/replace 
-I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H 
-I/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/usr/include 
-I/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/include
   CC         = i386-linux-uclibc-gcc
   CFLAGS     = -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts
   PICFLAG    = -fPIC
   BNLD       = i386-linux-uclibc-gcc
   BNLD_FLAGS = 
-L/home/natem/haikulogic/trunk/openwrt/staging_dir/toolchain-i386_gcc4.1.2/lib 
-L/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/usr/lib 
-L/home/natem/haikulogic/trunk/openwrt/staging_dir/i386/lib 
-Wl,--export-dynamic
   STLD       = /usr/bin/ar
   STLD_FLAGS = -rcs
   SHLD       = i386-linux-uclibc-gcc
   SHLD_FLAGS = -shared -Wl,-Bsymbolic
   MDLD       = i386-linux-uclibc-gcc
   MDLD_FLAGS = -shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined
   SHLIBEXT   = so
   srcdir     = .
   builddir   = .
   pwd        = 
/home/natem/haikulogic/trunk/openwrt/build_dir/i386/samba-4.0.0alpha7/source4
Compiling ASN1 file heimdal/lib/hdb/hdb.asn1
heimdal/../heimdal_build/asn1_compile_wrapper.sh: 
/home/natem/haikulogic/trunk/openwrt/build_dir/i386/samba-4.0.0alpha7/source4/./bin/asn1_compile: 
/lib/ld-uClibc.so.0: bad ELF interpreter: No such file or directory
make[1]: *** [heimdal/lib/hdb/hdb_asn1.h] Error 1
make[1]: Leaving directory 
`/home/natem/haikulogic/trunk/openwrt/build_dir/i386/samba-4.0.0alpha7/source4'
make: *** 
[/home/natem/haikulogic/trunk/openwrt/build_dir/i386/samba-4.0.0alpha7//.built] 
Error 2
make: Leaving directory 
`/home/natem/haikulogic/trunk/packages/haikulogic/samba4'

Nathaniel


More information about the samba-technical mailing list