Bug 9102 - samba compile error in Openwrt on FC17
Summary: samba compile error in Openwrt on FC17
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.6.5
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-20 02:38 UTC by Ling
Modified: 2012-08-20 08:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ling 2012-08-20 02:38:41 UTC
I'm encountered a compile error when I build Openwrt for atheros ar71xx ,which is mips r2 architectural.but it's can be built completed on FC14,
I compared this 2 config log files,found that it defined uuid on FC17 but not on FC14,but I'm share that they are use the same configuration file for Openwrt.So I don't how to resolve the problem,
BTW,I use eglibc on FC17 and uclibc on FC14.
attached files are the samba config files.(FC17-config.log is source3/config.log; FC14-config.log is source3/config.log)

The error message as follow:
[altai@localhost openwrt]$ make V=99 package/feeds/packages/samba36/install
make[1]: Entering directory `/home/altai/workspace/openwrt'
make[2]: Entering directory `/home/altai/workspace/openwrt/feeds/packages/net/samba36'
CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections  -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/include " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections  -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/include " LDFLAGS="-L/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/usr/lib -L/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/lib -L/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/lib -L/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/lib -Wl,--gc-sections " make -j1 -C /home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3 AR=mips-openwrt-linux-gnu-ar AS="ccache_cc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections" LD=mips-openwrt-linux-gnu-ld NM=mips-openwrt-linux-gnu-nm CC="ccache_cc" GCC="ccache_cc" CXX="ccache_cxx" RANLIB=mips-openwrt-linux-gnu-ranlib STRIP=mips-openwrt-linux-gnu-strip OBJCOPY=mips-openwrt-linux-gnu-objcopy OBJDUMP=mips-openwrt-linux-gnu-objdump SIZE=mips-openwrt-linux-gnu-size CROSS="mips-openwrt-linux-gnu-" ARCH="mips" DYNEXP= PICFLAG= MODULES= ;
make[3]: Entering directory `/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3'
Using CFLAGS     = -I../lib/zlib -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DMAX_DEBUG_LEVEL=-1 -D__location__="" -ffunction-sections -fdata-sections -I. -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3 -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3/../lib/popt -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3/../lib/iniparser/src -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H  -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/include -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc -I./.. -I./../lib/popt  -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3/lib -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
      PICFLAG    = 
      LIBS       = -lresolv -lresolv -lnsl -ldl -lrt
      LDFLAGS    = -L/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/usr/lib -L/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/lib -L/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/lib -L/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/lib -Wl,--gc-sections -L./bin
      DYNEXP     = 
      LDSHFLAGS  =  -shared -Wl,-Bsymbolic  -L/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/usr/lib -L/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/lib -L/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/lib -L/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/lib -Wl,--gc-sections -L./bin -lc -Wl,-z,defs
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-soname=
Compiling ../lib/addns/dnsrecord.c
In file included from ../lib/addns/dnsrecord.c:24:0:
../lib/addns/dns.h:53:23: fatal error: uuid/uuid.h: No such file or directory
compilation terminated.
The following command failed:
ccache_cc -I../lib/zlib -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DMAX_DEBUG_LEVEL=-1 -D__location__=\\ -ffunction-sections -fdata-sections -I. -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3 -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3/../lib/popt -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3/../lib/iniparser/src -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H  -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/target-mips_r2_eglibc-2.15/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/include -I/home/altai/workspace/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/include -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc -I./.. -I./../lib/popt  -I/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3/lib -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3  -c ../lib/addns/dnsrecord.c -o ../lib/addns/dnsrecord.o
make[3]: *** [../lib/addns/dnsrecord.o] Error 1
make[3]: Leaving directory `/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/source3'
make[2]: *** [/home/altai/workspace/openwrt/build_dir/target-mips_r2_eglibc-2.15/samba-3.6.5/.built] Error 2
make[2]: Leaving directory `/home/altai/workspace/openwrt/feeds/packages/net/samba36'
make[1]: *** [package/feeds/packages/samba36/install] Error 2
make[1]: Leaving directory `/home/altai/workspace/openwrt'
make: *** [package/feeds/packages/samba36/install] Error 2
[altai@localhost openwrt]$ 
[altai@localhost openwrt]$ ls /usr/include/ | grep uuid
uuid
[altai@localhost openwrt]$ ls /usr/include/uuid/ | grep uuid
uuid.h
Comment 1 Björn Jacke 2012-08-20 08:02:09 UTC
with the error message

../lib/addns/dns.h:53:23: fatal error: uuid/uuid.h: No such file or directory

and

[altai@localhost openwrt]$ ls /usr/include/uuid/ | grep uuid
uuid.h


something seems to be very wrong with your build environment. This is obviously not a samba bug and I never encountered something like this on any other system where we compile samba. As a workaround for your broken setup you could comment out the uuid include and compile without dnsupdate support.