[PATCH] Samba4 build issues
Nathaniel McCallum
nathaniel at haikulogic.com
Tue May 26 13:48:50 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
-------------- next part --------------
--- samba-4.0.0alpha7/source4/build/m4/check_cc.m4.orig 2009-05-25 17:52:38.895652293 -0400
+++ samba-4.0.0alpha7/source4/build/m4/check_cc.m4 2009-05-25 17:53:06.233890918 -0400
@@ -45,7 +45,9 @@
return 0;
}
],
- samba_cv_CC_NEGATIVE_ENUM_VALUES=yes,samba_cv_CC_NEGATIVE_ENUM_VALUES=no)])
+ samba_cv_CC_NEGATIVE_ENUM_VALUES=yes,
+ samba_cv_CC_NEGATIVE_ENUM_VALUES=no,
+ samba_cv_CC_NEGATIVE_ENUM_VALUES=yes)])
if test x"$samba_cv_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then
AC_DEFINE(USE_UINT_ENUMS, 1, [Whether the compiler has uint enum support])
fi
-------------- next part --------------
--- samba-4.0.0alpha7/source4/../lib/util/time.m4.orig 2009-05-25 18:39:17.166890807 -0400
+++ samba-4.0.0alpha7/source4/../lib/util/time.m4 2009-05-25 18:36:26.366901984 -0400
@@ -3,7 +3,7 @@
#include <sys/time.h>
#include <unistd.h>
main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
- samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)])
+ samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
fi
More information about the samba-technical
mailing list