Hi, do you have kernel-devel installed? this what you have means you have some missing library installed in your centos.
________________________________ De : Edward Ashley <[email protected]> À : [email protected] Envoyé le : Mercredi 24 octobre 2012 12h24 Objet : [Samba] Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c Hi, I have tried both RC4 and samba-master from the repository but I can't seem to get samba4 to compile. I have rebuilt the OS (Centos 6.3) from scratch, applied all updates and followed the samba4 howto but I am still having the same issue. I get: # make WAF_MAKE=1 ./buildtools/bin/waf build Waf: Entering directory `/opt/samba-master/bin' Selected embedded Heimdal build [ 133/3978] Generating VERSION [ 168/3978] Generating smbd/build_options.c [1815/3978] Compiling librpc/ndr/ndr_basic.c As previously suggested I have run make V=1 and make V=2 with the following output: # make V=1 WAF_MAKE=1 ./buildtools/bin/waf build Waf: Entering directory `/opt/samba-master/bin' Selected embedded Heimdal build [ 133/3978] Generating VERSION [ 168/3978] Generating smbd/build_options.c [1815/3978] Compiling librpc/ndr/ndr_basic.c 17:03:55 runner /usr/bin/gcc -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -Wshadow -Werror=strict-prototypes -Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address -Wcast-qual -Werror=format -DSTATIC_ndr_MODULES=NULL -DSTATIC_ndr_MODULES_PROTO -MD -Idefault/librpc -I../librpc -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/lib/talloc -I../lib/talloc -Idefault/lib/util/charset -I../lib/util/charset -Idefault/lib/crypto -I../lib/crypto -Idefault/libcli/util -I../libcli/util -Idefault/lib/nss_wrapper -I../lib/nss_wrapper -Idefault/lib/uid_wrapper -I../lib/uid_wrapper -Idefault/dynconfig -I../dynconfig -I/ -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../librpc/ndr/ndr_basic.c -c -o default/librpc/ndr/ndr_basic_156.o # make V=2 WAF_MAKE=1 ./buildtools/bin/waf build Waf: Entering directory `/opt/samba-master/bin' Selected embedded Heimdal build [ 133/3978] Generating VERSION [ 168/3978] Generating smbd/build_options.c [1815/3978] Compiling librpc/ndr/ndr_basic.c 17:05:01 runner /usr/bin/gcc -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -Wshadow -Werror=strict-prototypes -Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address -Wcast-qual -Werror=format -DSTATIC_ndr_MODULES=NULL -DSTATIC_ndr_MODULES_PROTO -MD -Idefault/librpc -I../librpc -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/lib/talloc -I../lib/talloc -Idefault/lib/util/charset -I../lib/util/charset -Idefault/lib/crypto -I../lib/crypto -Idefault/libcli/util -I../libcli/util -Idefault/lib/nss_wrapper -I../lib/nss_wrapper -Idefault/lib/uid_wrapper -I../lib/uid_wrapper -Idefault/dynconfig -I../dynconfig -I/ -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../librpc/ndr/ndr_basic.c -c -o default/librpc/ndr/ndr_basic_156.o When running the commands directly I get: #/usr/bin/gcc -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -Wshadow -Werror=strict-prototypes -Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address -Wcast-qual -Werror=format -DSTATIC_ndr_MODULES=NULL -DSTATIC_ndr_MODULES_PROTO -MD -Idefault/librpc -I../librpc -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/lib/talloc -I../lib/talloc -Idefault/lib/util/charset -I../lib/util/charset -Idefault/lib/crypto -I../lib/crypto -Idefault/libcli/util -I../libcli/util -Idefault/lib/nss_wrapper -I../lib/nss_wrapper -Idefault/lib/uid_wrapper -I../lib/uid_wrapper -Idefault/dynconfig -I../dynconfig -I/ -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../librpc/ndr/ndr_basic.c -c -o default/librpc/ndr/ndr_basic_156.o In file included from ../source4/include/includes.h:23, from ../librpc/ndr/ndr_basic.c:22: ../lib/replace/../replace/replace.h:32:20: error: config.h: No such file or directory In file included from ../source4/include/includes.h:23, from ../librpc/ndr/ndr_basic.c:22: ../lib/replace/../replace/replace.h:148: error: conflicting types for \u2018sys_errlist\u2019 /usr/include/bits/sys_errlist.h:28: note: previous declaration of \u2018sys_errlist\u2019 was here ../lib/replace/../replace/replace.h:153: error: function declaration isn\u2019t a prototype ../lib/replace/../replace/replace.h:848: error: conflicting types for \u2018useconds_t\u2019 /usr/include/sys/types.h:137: note: previous declaration of \u2018useconds_t\u2019 was here In file included from ../librpc/ndr/ndr_basic.c:22: ../source4/include/includes.h:28:2: error: #error "make sure you have removed all config.h files from standalone builds!" ../source4/include/includes.h:29:2: error: #error "the included config.h isn't from samba!" In file included from ../source4/include/includes.h:33, from ../librpc/ndr/ndr_basic.c:22: ../lib/replace/system/time.h:50: error: redefinition of \u2018struct timespec\u2019 ../lib/replace/system/time.h:80: error: conflicting types for \u2018rep_clock_gettime\u2019 /usr/include/time.h:336: note: previous declaration of \u2018rep_clock_gettime\u2019 was here In file included from ../source4/include/includes.h:60, from ../librpc/ndr/ndr_basic.c:22: ../librpc/../lib/util/debug.h:252: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018get_task_id\u2019 ../librpc/../lib/util/debug.h:266: error: expected specifier-qualifier-list before \u2018uint32_t\u2019 In file included from ../librpc/../lib/util/samba_util.h:24, from ../source4/include/includes.h:61, from ../librpc/ndr/ndr_basic.c:22: ../lib/util/charset/charset.h:40: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:66: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018codepoint_t\u2019 ../lib/util/charset/charset.h:142: error: expected declaration specifiers or \u2018...\u2019 before \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:145: warning: type defaults to \u2018int\u2019 in declaration of \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:145: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:174: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018next_codepoint_ext\u2019 ../lib/util/charset/charset.h:176: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018next_codepoint\u2019 ../lib/util/charset/charset.h:177: error: expected declaration specifiers or \u2018...\u2019 before \u2018codepoint_t\u2019 ../lib/util/charset/charset.h:180: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018next_codepoint_handle_ext\u2019 ../lib/util/charset/charset.h:183: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018next_codepoint_handle\u2019 ../lib/util/charset/charset.h:186: error: expected declaration specifiers or \u2018...\u2019 before \u2018codepoint_t\u2019 ../lib/util/charset/charset.h:188: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018toupper_m\u2019 ../lib/util/charset/charset.h:189: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018tolower_m\u2019 ../lib/util/charset/charset.h:190: error: expected \u2018)\u2019 before \u2018val\u2019 ../lib/util/charset/charset.h:191: error: expected \u2018)\u2019 before \u2018val\u2019 ../lib/util/charset/charset.h:192: error: expected \u2018)\u2019 before \u2018c1\u2019 ../lib/util/charset/charset.h:230: warning: type defaults to \u2018int\u2019 in declaration of \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:230: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:231: warning: type defaults to \u2018int\u2019 in declaration of \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:231: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:232: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:233: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:234: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:235: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:236: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:237: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:238: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:239: warning: type defaults to \u2018int\u2019 in declaration of \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:239: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:240: warning: type defaults to \u2018int\u2019 in declaration of \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:240: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:241: warning: type defaults to \u2018int\u2019 in declaration of \u2018smb_ucs2_t\u2019 ../lib/util/charset/charset.h:241: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/charset/charset.h:242: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018toupper_w\u2019 In file included from ../librpc/../lib/util/samba_util.h:39, from ../source4/include/includes.h:61, from ../librpc/ndr/ndr_basic.c:22: ../lib/util/time.h:42: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018NTTIME\u2019 ../lib/util/time.h:68: error: expected \u2018)\u2019 before \u2018nt\u2019 ../lib/util/time.h:74: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:84: error: expected \u2018)\u2019 before \u2018t\u2019 ../lib/util/time.h:90: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:96: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:103: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:109: warning: type defaults to \u2018int\u2019 in declaration of \u2018uint8_t\u2019 ../lib/util/time.h:109: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:114: warning: type defaults to \u2018int\u2019 in declaration of \u2018uint8_t\u2019 ../lib/util/time.h:114: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:120: warning: type defaults to \u2018int\u2019 in declaration of \u2018uint8_t\u2019 ../lib/util/time.h:120: error: expected \u2018;\u2019, \u2018,\u2019 or \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:152: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../lib/util/time.h:157: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:162: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018pull_nttime\u2019 ../lib/util/time.h:167: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018nttime_from_string\u2019 ../lib/util/time.h:197: error: expected \u2018)\u2019 before \u2018secs\u2019 ../lib/util/time.h:203: error: expected declaration specifiers or \u2018...\u2019 before \u2018uint32_t\u2019 ../lib/util/time.h:203: error: expected declaration specifiers or \u2018...\u2019 before \u2018uint32_t\u2019 ../lib/util/time.h:214: error: expected \u2018)\u2019 before \u2018secs\u2019 ../lib/util/time.h:219: error: expected \u2018)\u2019 before \u2018msecs\u2019 ../lib/util/time.h:224: error: expected \u2018)\u2019 before \u2018usecs\u2019 ../lib/util/time.h:272: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018timeval_to_nttime\u2019 ../lib/util/time.h:277: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../lib/util/time.h:287: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:289: error: expected \u2018)\u2019 before \u2018date\u2019 ../lib/util/time.h:291: error: expected \u2018)\u2019 before \u2018*\u2019 token ../lib/util/time.h:307: error: expected \u2018)\u2019 before \u2018*\u2019 token In file included from ../lib/util/data_blob.h:34, from ../librpc/../lib/util/samba_util.h:40, from ../source4/include/includes.h:61, from ../librpc/ndr/ndr_basic.c:22: /usr/include/stdint.h:120: error: conflicting types for \u2018intptr_t\u2019 ../lib/replace/../replace/replace.h:618: note: previous declaration of \u2018intptr_t\u2019 was here /usr/include/stdint.h:123: error: conflicting types for \u2018uintptr_t\u2019 ../lib/replace/../replace/replace.h:622: note: previous declaration of \u2018uintptr_t\u2019 was here In file included from ../librpc/ndr/ndr_basic.c:23: ../lib/replace/system/network.h:31:2: error: #error "AC_LIBREPLACE_NETWORK_CHECKS missing in configure" In file included from ../lib/replace/system/network.h:34, from ../librpc/ndr/ndr_basic.c:23: /usr/include/unistd.h:457: error: conflicting types for \u2018rep_usleep\u2019 ../lib/replace/../replace/replace.h:849: note: previous declaration of \u2018rep_usleep\u2019 was here In file included from ../librpc/ndr/ndr_basic.c:23: ../lib/replace/system/network.h:98: error: conflicting types for \u2018socklen_t\u2019 /usr/include/unistd.h:275: note: previous declaration of \u2018socklen_t\u2019 was here ../lib/replace/system/network.h:103: warning: \u2018struct in_addr\u2019 declared inside parameter list ../lib/replace/system/network.h:103: warning: its scope is only this definition or declaration, which is probably not what you want ../lib/replace/system/network.h:118: warning: \u2018struct in_addr\u2019 declared inside parameter list In file included from ../librpc/ndr/ndr_basic.c:24: ../librpc/ndr/libndr.h:360:33: error: librpc/gen_ndr/misc.h: No such file or directory In file included from ../librpc/ndr/ndr_basic.c:24: ../librpc/ndr/libndr.h:397: error: field \u2018syntax_id\u2019 has incomplete type ../librpc/ndr/libndr.h:433: warning: \u2018struct GUID\u2019 declared inside parameter list In file included from ../librpc/ndr/ndr_basic.c:24: ../librpc/ndr/libndr.h:552: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:552: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:552: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:553: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:553: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:553: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:554: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:554: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:554: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/libndr.h:561: warning: \u2018struct policy_handle\u2019 declared inside parameter list ../librpc/ndr/libndr.h:562: warning: \u2018struct policy_handle\u2019 declared inside parameter list ../librpc/ndr/libndr.h:563: warning: \u2018struct policy_handle\u2019 declared inside parameter list ../librpc/ndr/libndr.h:564: warning: \u2018struct policy_handle\u2019 declared inside parameter list ../librpc/ndr/libndr.h:567: warning: \u2018struct policy_handle\u2019 declared inside parameter list ../librpc/ndr/libndr.h:612: warning: \u2018struct GUID\u2019 declared inside parameter list ../librpc/ndr/libndr.h:613: warning: \u2018struct GUID\u2019 declared inside parameter list ../librpc/ndr/libndr.h:614: warning: \u2018struct GUID\u2019 declared inside parameter list ../librpc/ndr/libndr.h:615: warning: \u2018struct GUID\u2019 declared inside parameter list ../librpc/ndr/libndr.h:616: warning: \u2018struct GUID\u2019 declared inside parameter list In file included from ../librpc/ndr/ndr_basic.c:25: ../lib/util/util_net.h:51: warning: \u2018struct in_addr\u2019 declared inside parameter list ../lib/util/util_net.h:54: warning: \u2018struct in_addr\u2019 declared inside parameter list ../lib/util/util_net.h:65: warning: \u2018struct in_addr\u2019 declared inside parameter list ../lib/util/util_net.h:73: warning: \u2018struct in_addr\u2019 declared inside parameter list ../lib/util/util_net.h:76: warning: \u2018struct in_addr\u2019 declared inside parameter list ../librpc/ndr/ndr_basic.c: In function \u2018ndr_pull_double\u2019: ../librpc/ndr/ndr_basic.c:183: error: implicit declaration of function \u2018memcpy\u2019 ../librpc/ndr/ndr_basic.c:183: warning: incompatible implicit declaration of built-in function \u2018memcpy\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_pull_pointer\u2019: ../librpc/ndr/ndr_basic.c:281: warning: incompatible implicit declaration of built-in function \u2018memcpy\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_pull_bytes\u2019: ../librpc/ndr/ndr_basic.c:421: warning: incompatible implicit declaration of built-in function \u2018memcpy\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_double\u2019: ../librpc/ndr/ndr_basic.c:592: warning: incompatible implicit declaration of built-in function \u2018memcpy\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_pointer\u2019: ../librpc/ndr/ndr_basic.c:606: warning: incompatible implicit declaration of built-in function \u2018memcpy\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_bytes\u2019: ../librpc/ndr/ndr_basic.c:693: warning: incompatible implicit declaration of built-in function \u2018memcpy\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_zero\u2019: ../librpc/ndr/ndr_basic.c:704: error: implicit declaration of function \u2018memset\u2019 ../librpc/ndr/ndr_basic.c:704: warning: incompatible implicit declaration of built-in function \u2018memset\u2019 ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:765: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_NTTIME\u2019: ../librpc/ndr/ndr_basic.c:768: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c:768: error: (Each undeclared identifier is reported only once ../librpc/ndr/ndr_basic.c:768: error: for each function it appears in.) ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:775: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_pull_NTTIME\u2019: ../librpc/ndr/ndr_basic.c:778: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:785: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_NTTIME_1sec\u2019: ../librpc/ndr/ndr_basic.c:788: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:796: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_pull_NTTIME_1sec\u2019: ../librpc/ndr/ndr_basic.c:799: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:807: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_pull_NTTIME_hyper\u2019: ../librpc/ndr/ndr_basic.c:810: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:817: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_NTTIME_hyper\u2019: ../librpc/ndr/ndr_basic.c:820: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c: In function \u2018ndr_pull_ipv4address\u2019: ../librpc/ndr/ndr_basic.c:902: error: storage size of \u2018in\u2019 isn\u2019t known ../librpc/ndr/ndr_basic.c:904: error: implicit declaration of function \u2018htonl\u2019 ../librpc/ndr/ndr_basic.c:905: error: type of formal parameter 1 is incomplete ../librpc/ndr/ndr_basic.c:902: warning: unused variable \u2018in\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_push_ipv4address\u2019: ../librpc/ndr/ndr_basic.c:921: error: implicit declaration of function \u2018inet_addr\u2019 ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:1110: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_print_NTTIME\u2019: ../librpc/ndr/ndr_basic.c:1112: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c:1112: error: too many arguments to function \u2018nt_time_string\u2019 ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:1115: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_print_NTTIME_1sec\u2019: ../librpc/ndr/ndr_basic.c:1120: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c:1120: error: too many arguments to function \u2018ndr_print_NTTIME\u2019 ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:1123: error: expected declaration specifiers or \u2018...\u2019 before \u2018NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_print_NTTIME_hyper\u2019: ../librpc/ndr/ndr_basic.c:1125: error: \u2018t\u2019 undeclared (first use in this function) ../librpc/ndr/ndr_basic.c:1125: error: too many arguments to function \u2018ndr_print_NTTIME\u2019 ../librpc/ndr/ndr_basic.c: In function \u2018ndr_print_asc\u2019: ../librpc/ndr/ndr_basic.c:1197: error: implicit declaration of function \u2018isprint\u2019 ../librpc/ndr/ndr_basic.c: At top level: ../librpc/ndr/ndr_basic.c:1437: fatal error: opening dependency file default/librpc/ndr/ndr_basic_156.d: No such file or directory And when adding the path to a config.h that I found so: # /usr/bin/gcc -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -Wshadow -Werror=strict-prototypes -Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address -Wcast-qual -Werror=format -DSTATIC_ndr_MODULES=NULL -DSTATIC_ndr_MODULES_PROTO -MD -Idefault/librpc -I../librpc -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/lib/talloc -I../lib/talloc -Idefault/lib/util/charset -I../lib/util/charset -Idefault/lib/crypto -I../lib/crypto -Idefault/libcli/util -I../libcli/util -Idefault/lib/nss_wrapper -I../lib/nss_wrapper -Idefault/lib/uid_wrapper -I../lib/uid_wrapper -Idefault/dynconfig -I../dynconfig -I/ -I../bin/default/include/ -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../librpc/ndr/ndr_basic.c -c -o default/librpc/ndr/ndr_basic_156.o It just hangs with no output. Sorry for the long post, has anyone got any clues as to why this is happening? Thanks Ned Edward Ashley Developer e. [email protected] u. www.redmonkeysoftware.com t. 0845 867 3849 f. 0845 867 4127 Red Monkey Software | Superior Software Solutions Red Monkey Software Ltd, 24 The Layne, Elmer Sands, Bognor Regis, West Sussex. PO22 6JL Registered in England and Wales no 5923420 Registered Office: 20 Springfield Road, Crawley, West Sussex, RH11 8AD -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
