[Samba] compile error, param/loadparm.c

Wilson Liu dmwilsonliu at gmail.com
Wed Feb 24 06:03:22 UTC 2016


Hi,
When I builded realtek image,
the compiler stop in Samba compiling process,
Did I miss something?
Thanks.

Best regards,
Wilson

ps. error message was list below,

make[3]: Entering directory
`/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba'
make -C samba-3.2.15/source
make[4]: Entering directory
`/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source'
Using FLAGS      =
 -I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/target/tmpfs/include
-I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/target/tmpfs/include
-Os -D_SAMBA_BUILD_=3 -DAVM_NO_PRINTING -DAVM_NO_CHPASSWD -DUSE_READAHEAD
 -DAVM_NO_DEBUG   -ffunction-sections -fdata-sections -fstrict-aliasing
-fstrict-overflow
 -I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/popt
-I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/iniparser/src
-Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc
-I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -Iinclude
-I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include
-I./libaddns -I./librpc -I./popt   -I/include
-I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/lib
-D_SAMBA_BUILD_=3
      PICFLAG    =
      LIBS       =
      LDFLAGS    = -Wl,-z,relro -L./bin -Wl,--gc-sections
      DYNEXP     =
Generating smbd/build_options.c
Building include/proto.h
creating
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/include/proto.h
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/script/mkproto.sh:
34:
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/script/mkproto.sh:
gawk: not found
Building include/build_env.h
creating
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/client/client_proto.h
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/script/mkproto.sh:
34:
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/script/mkproto.sh:
gawk: not found
creating
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/utils/ntlm_auth_proto.h
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/script/mkproto.sh:
34:
/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/script/mkproto.sh:
gawk: not found
Compiling lib/talloc/talloc.c
Linking non-shared library bin/libtalloc.a
Compiling lib/tdb/common/tdb.c
Compiling lib/tdb/common/dump.c
Compiling lib/tdb/common/transaction.c
Compiling lib/tdb/common/error.c
Compiling lib/tdb/common/traverse.c
Compiling lib/tdb/common/freelist.c
Compiling lib/tdb/common/freelistcheck.c
Compiling lib/tdb/common/io.c
Compiling lib/tdb/common/lock.c
Compiling lib/tdb/common/open.c
Linking non-shared library bin/libtdb.a
Compiling dynconfig.c
Compiling param/loadparm.c
param/loadparm.c: In function 'init_globals':
param/loadparm.c:4856: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'lp_string':
param/loadparm.c:4930: warning: assignment makes pointer from integer
without a cast
param/loadparm.c:4937: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'lp_parm_string':
param/loadparm.c:5529: warning: return makes pointer from integer without a
cast
param/loadparm.c: At top level:
param/loadparm.c:5535: error: conflicting types for 'lp_parm_talloc_string'
param/loadparm.c:5529: note: previous implicit declaration of
'lp_parm_talloc_string' was here
param/loadparm.c: In function 'lp_parm_string_list':
param/loadparm.c:5573: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: At top level:
param/loadparm.c:6347: error: conflicting types for 'lp_invert_boolean'
param/loadparm.c:6100: note: previous implicit declaration of
'lp_invert_boolean' was here
param/loadparm.c: In function 'handle_netbios_name':
param/loadparm.c:6808: warning: initialization makes pointer from integer
without a cast
param/loadparm.c: In function 'handle_netbios_aliases':
param/loadparm.c:6854: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'handle_include':
param/loadparm.c:6886: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'init_copymap':
param/loadparm.c:7145: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'lp_do_parameter':
param/loadparm.c:7302: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'print_parameter':
param/loadparm.c:7376: warning: initialization makes pointer from integer
without a cast
param/loadparm.c: In function 'lp_load_ex':
param/loadparm.c:8862: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'lp_servicenumber':
param/loadparm.c:9058: warning: pointer/integer type mismatch in
conditional expression
param/loadparm.c: In function 'lp_major_announce_version':
param/loadparm.c:9355: warning: assignment makes pointer from integer
without a cast
param/loadparm.c: In function 'lp_minor_announce_version':
param/loadparm.c:9377: warning: assignment makes pointer from integer
without a cast
The following command failed:
mips-linux-gcc -I.
-I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source
-DSMB_PASSWD_FILE="/etc/samba/smbpasswd" -DPRIVATE_DIR="/var/samba"
-DCONFIGFILE="/etc/samba/smb.conf" -DBINDIR="/bin"
-DLMHOSTSFILE="/etc/samba/lmhosts" -DLOCKDIR="/var/samba/samba"
-DPIDDIR="/var/samba/samba" -DLIBDIR="/lib" -DLOGFILEBASE="/var/samba"
-DCONFIGDIR="/etc/samba" -DCODEPAGEDIR="/lib" -DCACHEDIR="/var/samba/samba"
-DSTATEDIR="/var/samba/samba"
 -I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/target/tmpfs/include
-I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/target/tmpfs/include
-Os -D_SAMBA_BUILD_=3 -DAVM_NO_PRINTING -DAVM_NO_CHPASSWD -DUSE_READAHEAD
 -DAVM_NO_DEBUG   -ffunction-sections -fdata-sections -fstrict-aliasing
-fstrict-overflow
 -I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/popt
-I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/iniparser/src
-Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc
-I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -Iinclude
-I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include
-I./libaddns -I./librpc -I./popt   -I/include
-I/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source/lib
-D_SAMBA_BUILD_=3  -c param/loadparm.c -o param/loadparm.o
make[4]: *** [param/loadparm.o] Error 1
make[4]: Leaving directory
`/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source'
make[3]: *** [samba] Error 2
make[3]: Leaving directory
`/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba'
make[2]: *** [samba] Error 2
make[2]: Leaving directory
`/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users'
make[1]: *** [app] Error 2
make[1]: Leaving directory
`/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users'
make: *** [bins] Error 2


More information about the samba mailing list