Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c

128 views
Skip to first unread message

Edward Ashley

unread,
Oct 24, 2012, 4:30:02 AM10/24/12
to
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. n...@redmonkeysoftware.com
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

Innocent Yevide

unread,
Oct 24, 2012, 4:50:02 AM10/24/12
to
Hi,

do you have kernel-devel installed? this what you have means you have some missing library installed in your centos.


________________________________
De : Edward Ashley <n...@redmonkeysoftware.com>
À : sa...@lists.samba.org
Envoyé le : Mercredi 24 octobre 2012 12h24
Objet : [Samba] Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c

Andrew Bartlett

unread,
Oct 24, 2012, 5:10:02 AM10/24/12
to
On Wed, 2012-10-24 at 09:24 +0100, Edward Ashley wrote:
> 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:

> 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?

We don't, at this point. BTW, The normal gcc command is run in 'bin',
which is why all the paths have a ../ on them. If run from there, you
shouldn't need the extra include for config.h

It's always a cop-out to cry 'compiler bug', but I'm lost as to what
else it could be. Do you have any further indication on what exactly
that gcc command is doing when hung?

There isn't anything on that command that could be confused for 'stdin',
so I'm really quite lost. Are ../librpc/ndr/ndr_basic.c and
default/librpc/ndr/ndr_basic_156.o both normal files?

Thanks,

Andrew Bartlett

--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org

Mario Codeniera

unread,
Oct 24, 2012, 9:40:02 PM10/24/12
to
Hi,

It was the same thing that I encountered it will stop on that
"librpc/ndr/ndr_basic.c" in which I posted before. But using a 64bit CentOS
6.3, no problems encountered as I tried it as I curious with the problems,
but in 32 bit it will hang up in which the server currently running and
can't upgrade to 64bit as of the moment.

Another observation when RC3 was released, it compiled smoothly without any
problems encountered. After which you can't recompile it, unless if you
reinstall the CentOS (which I did, just to test it). That's why I didn't
delete my compiled samba4. My assumptions there is an incompatibility
issues (not sure with it), but why it works when RC3 was released?

I also bit confused of this unusual problem.

Thanks,
Mario

Andrew Bartlett

unread,
Oct 24, 2012, 9:50:01 PM10/24/12
to
On Thu, 2012-10-25 at 14:31 +1300, Mario Codeniera wrote:
> Hi,
>
> It was the same thing that I encountered it will stop on that
> "librpc/ndr/ndr_basic.c" in which I posted before. But using a 64bit CentOS
> 6.3, no problems encountered as I tried it as I curious with the problems,
> but in 32 bit it will hang up in which the server currently running and
> can't upgrade to 64bit as of the moment.
>
> Another observation when RC3 was released, it compiled smoothly without any
> problems encountered. After which you can't recompile it, unless if you
> reinstall the CentOS (which I did, just to test it). That's why I didn't
> delete my compiled samba4. My assumptions there is an incompatibility
> issues (not sure with it), but why it works when RC3 was released?
>
> I also bit confused of this unusual problem.

Without wiping the OS, does the problem happen if you build in a new
tree?

Does removing the ccache package help?

Mario Codeniera

unread,
Oct 25, 2012, 12:10:02 AM10/25/12
to
On Thu, Oct 25, 2012 at 2:40 PM, Andrew Bartlett <abar...@samba.org> wrote:

> On Thu, 2012-10-25 at 14:31 +1300, Mario Codeniera wrote:
> > Hi,
> >
> > It was the same thing that I encountered it will stop on that
> > "librpc/ndr/ndr_basic.c" in which I posted before. But using a 64bit
> CentOS
> > 6.3, no problems encountered as I tried it as I curious with the
> problems,
> > but in 32 bit it will hang up in which the server currently running and
> > can't upgrade to 64bit as of the moment.
> >
> > Another observation when RC3 was released, it compiled smoothly without
> any
> > problems encountered. After which you can't recompile it, unless if you
> > reinstall the CentOS (which I did, just to test it). That's why I didn't
> > delete my compiled samba4. My assumptions there is an incompatibility
> > issues (not sure with it), but why it works when RC3 was released?
> >
> > I also bit confused of this unusual problem.
>
> Without wiping the OS, does the problem happen if you build in a new
> tree?
>
> Does removing the ccache package help?
>
> Andrew Bartlett
>
> --
> Andrew Bartlett http://samba.org/~abartlet/
> Authentication Developer, Samba Team http://samba.org
>
>
I used to create a new tree but still doesn't solved, and ccache is not
installed by default even I installed it. No luck.

What I observed upon compilation it display a warning before compiling the
source4/torture/ and default/librpc/ directories , hope it doesn't affects.

../source4/torture/ndr/samr.c: In function
‘samr_changepassworduser3_w2k8r2_out_check’:
../source4/torture/ndr/samr.c:297: warning: integer constant is too
large for ‘long’ type

Innocent Yevide

unread,
Oct 25, 2012, 5:50:02 AM10/25/12
to
Strange, as I used centos 6.3 32 bit but have no this problem. I did several times recompile and it was ok. have you done make clean before recompiling may be?



________________________________
De : Andrew Bartlett <abar...@samba.org>
À : Mario Codeniera <mario.c...@gmail.com>
Cc : sa...@lists.samba.org
Envoyé le : Jeudi 25 octobre 2012 5h40
Objet : Re: [Samba] Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c

Andrew Bartlett

unread,
Oct 25, 2012, 6:10:02 AM10/25/12
to
On Thu, 2012-10-25 at 10:40 +0100, Innocent Yevide wrote:
> Strange, as I used centos 6.3 32 bit but have no this problem. I did
> several times recompile and it was ok. have you done make clean before
> recompiling may be?

I would urge anyone who can reproduce this *not* to just blow things
away with a make clean. Somewhere here is either something very odd in
a file being written out by Samba, or a gcc bug, or (perhaps) a ccache
bug (if that's in use).

We still want to pin down exactly what is going wrong where, if at all
possible, so we can report it to the right upstream, or correct our
code.

Edward Ashley

unread,
Oct 25, 2012, 6:30:01 AM10/25/12
to
Hi,
Sorry I have been so quiet but has been difficult for me to get some time
to look into it. Basically this is what has happened for me so far (I am
running virtual machines on KVM for this):
I setup centos 6.3 x86_64 with all latest updates. I ran the yum install
which is recommended in the OS Requirements documentation. Grabbed a copy
of the samba-master and compiled and made it successfully. I provisioned a
domain and everything seemed fine, until I could not add a windows 7
machine to the domain. It kept coming back with an error message on the
windows machine whenever I tried to add it to the domain. I tried to debug
this and I think it came down to the internal dns server not being able to
update itself as there was no dns.keytab file or something like that.
Anyway I decided that I would make uninstall and make clean and start again
with a fresh compilation, so I started back at the ./configure.developer
stage and never got passed hanging at compiling ndr_basic.c. In the end I
thought I would scratch that setup and try on a fresh rebuild.
So I started again, installed Centos 6.3 x86_64, installed all updates, ran
the yum from the OS requirements and grabbed samba-master. This time it
hang straight away at compiling ndr_basic.c. So I tried a packaged version
which I think was RC4, same result.
To answer a few things that have so far been asked, yes kernel-devel is
installed and it doesn't make a difference. I have tried the gcc command
from the bin folder, no change. A make clean doesn't make any difference it
just starts from the beginning again.
I will try and debug more (trying the strace) but I don't know how quickly
I can to it.
Thanks
Ned
Edward Ashley
Developer

e. n...@redmonkeysoftware.com
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

Andrew Bartlett

unread,
Oct 25, 2012, 6:40:02 AM10/25/12
to
is ccache installed? does a 'ccache -C' help?

Certainly let's work from the gcc command run from the bin folder, as
that avoids all the waf lines.

An interesting idea would be to see if a copy of this exact tree, run on
a different (currently successful) host succeeds for fails.

> I will try and debug more (trying the strace) but I don't know how
> quickly I can to it.
> Thanks
> Ned

Please do the strace of the gcc command.

Thanks,

Howard Allison

unread,
Oct 25, 2012, 7:10:01 AM10/25/12
to

Hi, I'm trying to get a samba4 build on AIX 6.1, and run into a couple of
problems:

1. The entire Kerberos Heindal #includes need to be explicity included(with
path)

2. In order to get the ldap definitions (ldap.h etc) I've installed
openldap 2.4.28.

3. Learning to hate '//' line comments :-)

4. I get the following error and the make stops

[2358/3381] Compiling source3/passdb/pdb_ldap_util.c
"/usr/include/stdio.h", line 528.12: 1506-343 (S) Redeclaration of
fgetpos64 differs from previous declaration on line 323 of
"/usr/include/stdio.h".
"/usr/include/stdio.h", line 528.12: 1506-377 (I) The type "long long*" of
parameter 2 differs from the previous type "long*".
"/usr/include/stdio.h", line 531.12: 1506-343 (S) Redeclaration of fseeko64
differs from previous declaration on line 471 of "/usr/include/stdio.h".
"/usr/include/stdio.h", line 531.12: 1506-377 (I) The type "long long" of
parameter 2 differs from the previous type "long".
"/usr/include/stdio.h", line 532.12: 1506-343 (S) Redeclaration of
fsetpos64 differs from previous declaration on line 325 of
"/usr/include/stdio.h".
"/usr/include/stdio.h", line 532.12: 1506-377 (I) The type "const long
long*" of parameter 2 differs from the previous type "const long*".
"/usr/include/stdio.h", line 533.16: 1506-343 (S) Redeclaration of ftello64
differs from previous declaration on line 472 of "/usr/include/stdio.h".
"/usr/include/stdio.h", line 533.16: 1506-050 (I) Return type "long long"
in redeclaration is not compatible with the previous return type "long".
"/usr/include/unistd.h", line 171.17: 1506-343 (S) Redeclaration of lseek64
differs from previous declaration on line 169 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 171.17: 1506-050 (I) Return type "long long"
in redeclaration is not compatible with the previous return type "long".
"/usr/include/unistd.h", line 171.17: 1506-377 (I) The type "long long" of
parameter 2 differs from the previous type "long".
"/usr/include/sys/lockf.h", line 64.20: 1506-343 (S) Redeclaration of
lockf64 differs from previous declaration on line 62 of
"/usr/include/sys/lockf.h".
"/usr/include/sys/lockf.h", line 64.20: 1506-377 (I) The type "long long"
of parameter 3 differs from the previous type "long".
"/usr/include/unistd.h", line 809.33: 1506-343 (S) Redeclaration of
ftruncate64 differs from previous declaration on line 807 of
"/usr/include/unistd.h".
"/usr/include/unistd.h", line 809.33: 1506-377 (I) The type "long long" of
parameter 2 differs from the previous type "long".
"/usr/include/unistd.h", line 845.33: 1506-343 (S) Redeclaration of
truncate64 differs from previous declaration on line 843 of
"/usr/include/unistd.h".
"/usr/include/unistd.h", line 845.33: 1506-377 (I) The type "long long" of
parameter 2 differs from the previous type "long".
"/usr/include/unistd.h", line 862.33: 1506-343 (S) Redeclaration of pread64
differs from previous declaration on line 859 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 862.33: 1506-377 (I) The type "long long" of
parameter 4 differs from the previous type "long".
"/usr/include/unistd.h", line 863.33: 1506-343 (S) Redeclaration of
pwrite64 differs from previous declaration on line 860 of
"/usr/include/unistd.h".
"/usr/include/unistd.h", line 863.33: 1506-377 (I) The type "long long" of
parameter 4 differs from the previous type "long".
"/usr/include/unistd.h", line 942.25: 1506-343 (S) Redeclaration of
fclear64 differs from previous declaration on line 939 of
"/usr/include/unistd.h".
"/usr/include/unistd.h", line 942.25: 1506-050 (I) Return type "long long"
in redeclaration is not compatible with the previous return type "long".
"/usr/include/unistd.h", line 942.25: 1506-377 (I) The type "long long" of
parameter 2 differs from the previous type "long".
"/usr/include/unistd.h", line 943.25: 1506-343 (S) Redeclaration of
fsync_range64 differs from previous declaration on line 940 of
"/usr/include/unistd.h".
"/usr/include/unistd.h", line 943.25: 1506-377 (I) The type "long long" of
parameter 3 differs from the previous type "long".
Waf: Leaving directory `/app/RpmBuild/Work/samba-4.0.0rc3/bin'
Build failed: -> task failed (err #1):
{task: cc pdb_ldap_util.c -> pdb_ldap_util_17.o}
gmake: *** [all] Error 1

If I start make again it seems to go to the next few files, but then fails
agin.


My Environment

CC=cc
CXX=xlC
F77=xlf
LDFLAGS=-L/opt/freeware/lib -Wl,-bmaxdata:0x80000000
FFLAGS=-qmaxmem=16384 -O -I/opt/freeware/include
CFLAGS=-qmaxmem=-1 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51
-D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -O
-I/opt/pware/openldap/2.4.28/include -L/opt/pware/openldap/2.4.28/lib
-I/opt/freeware/include -L/opt/freeware/lib

Thanks
Howard



--------------------------------------------------------------------------------------------------------

VERTRAULICHKEIT: Diese Nachricht ist ausschließlich für denjenigen
bestimmt, an den sie adressiert ist und kann vertrauliche Informationen
enthalten. Falls Sie nicht der Empfänger dieser Nachricht sind, weisen wir
Sie darauf hin, dass die unberechtigte Weitergabe oder Verwendung sowie das
unberechtigte Verteilen oder Kopieren dieser Nachricht strikt untersagt
sind. Falls Sie diese Nachricht irrtümlich erhalten haben, vernichten Sie
sie bitte sofort.
CONFIDENTIALITY: This message is intended only for the use of the
individuality or entity to which it is addressed and may contain
information that is privileged, confidential and exempt from disclosure. If
you are not the intended recipient you are notified that any dissemination,
distribution, use or copying of this communication is strictly prohibited.
If you received this message in error, please immediately destroy this
message.
--------------------------------------------------------------------------------------------------------

Howard Allison

unread,
Oct 25, 2012, 7:20:02 AM10/25/12
to


Sorry - the first post got sent as a response to an unrelated thread :-(
...........................

Edward Ashley

unread,
Oct 25, 2012, 9:30:01 AM10/25/12
to
Hi,
ccache is not installed. I have run the strace like this:

#strace /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
execve("/usr/bin/gcc", ["/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", ...], [/* 29 vars */]) = 0
brk(0) = 0xd2e000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489257000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=60481, ...}) = 0
mmap(NULL, 60481, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9489248000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\355a\2332\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1922112, ...}) = 0
mmap(0x329b600000, 3745960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x329b600000
mprotect(0x329b789000, 2097152, PROT_NONE) = 0
mmap(0x329b989000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x189000) = 0x329b989000
mmap(0x329b98e000, 18600, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x329b98e000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489247000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489246000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489245000
arch_prctl(ARCH_SET_FS, 0x7f9489246700) = 0
mprotect(0x329b989000, 16384, PROT_READ) = 0
mprotect(0x329b01f000, 4096, PROT_READ) = 0
munmap(0x7f9489248000, 60481) = 0
brk(0) = 0xd2e000
brk(0xd4f000) = 0xd4f000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0
mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f94833b4000
close(3) = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9489256000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2512
read(3, "", 4096) = 0
close(3) = 0
munmap(0x7f9489256000, 4096) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x403017, [INT], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0x329b632920}, 8) =

0
rt_sigaction(SIGHUP, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x403017, [HUP], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART, 0x329b632920}, 8) =

0
rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x403017, [TERM], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART, 0x329b632920}, 8)
= 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x403017, [PIPE], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x329b632920}, 8)
= 0
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART,
0x329b632920}, {SIG_DFL, [], 0}, 8) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0555, st_size=45056, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=268096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0555, st_size=45056, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=268096, ...}) = 0
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/", X_OK) = 0
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/", X_OK) = 0
access("../librpc/ndr/ndr_basic.c", F_OK) = 0
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/specs", R_OK) = -1 ENOENT
(No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/specs", R_OK) = -1 ENOENT
(No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../x86_64-redhat-linux/lib/x86_64-redhat-linux/4.4.6/specs",
R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../x86_64-redhat-linux/lib/specs",
R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/specs", R_OK) = -1 ENOENT (No such
file or directory)
access("/usr/lib/gcc/x86_64-redhat-linux/4.4.6/", X_OK) = 0
access("/tmp", R_OK|W_OK|X_OK) = 0
gettimeofday({1351171586, 629103}, NULL) = 0
getpid() = 12572
open("/tmp/ccX1sGbp.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
close(3) = 0
stat("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1",
{st_mode=S_IFREG|0755, st_size=9326392, ...}) = 0
access("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1", X_OK) = 0
vfork() = 12573
wait4(12573, 0xd36a70, 0, NULL) = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
wait4(12573,

HTH, if I need to use a different strace command or switch please let me
know.
Thanks
Ned
Edward Ashley
Developer

e. n...@redmonkeysoftware.com
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

Michael Wood

unread,
Oct 25, 2012, 12:10:02 PM10/25/12
to
Hi

On 25 October 2012 15:29, Edward Ashley <n...@redmonkeysoftware.com> wrote:
> Hi,
> ccache is not installed. I have run the strace like this:
[...]
> stat("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1",
> {st_mode=S_IFREG|0755, st_size=9326392, ...}) = 0
> access("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1", X_OK) = 0
> vfork() = 12573
> wait4(12573, 0xd36a70, 0, NULL) = ? ERESTARTSYS (To be restarted)
> --- SIGWINCH (Window changed) @ 0 (0) ---
> wait4(12573,

It's waiting for the process with PID 12573 to finish. I suppose cc1?

> HTH, if I need to use a different strace command or switch please let me
> know.
> Thanks
> Ned

It might help to use "strace -f" to trace the child processes too.

--
Michael Wood <esio...@gmail.com>

Edward Ashley

unread,
Oct 25, 2012, 12:50:02 PM10/25/12
to
Hi,
Thanks for that, the latest output is quite long but ends up with this:

[pid 22991] open("/usr/include/netinet/ip.h", O_RDONLY|O_NOCTTY) = 4
[pid 22991] fstat(4, {st_mode=S_IFREG|0644, st_size=9522, ...}) = 0
[pid 22991] read(4, "/* Copyright (C) 1991,92,93,95,9"..., 9522) = 9522
[pid 22991] close(4) = 0
[pid 22991] open("default/librpc/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("../librpc/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No
such file or directory)
[pid 22991] open("default/include/public/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("../include/public/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("default/source4/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("../source4/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No
such file or directory)
[pid 22991] open("default/lib/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No
such file or directory)
[pid 22991] open("../lib/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such
file or directory)
[pid 22991] open("default/source4/lib/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("../source4/lib/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("default/source4/include/net/if.h", O_RDONLY|O_NOCTTY) =
-1 ENOENT (No such file or directory)
[pid 22991] open("../source4/include/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("default/include/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("../include/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No
such file or directory)
[pid 22991] open("default/lib/replace/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("../lib/replace/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("default/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No
such file or directory)
[pid 22991] open("../net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such
file or directory)
[pid 22991] open("default/lib/socket_wrapper/net/if.h", O_RDONLY|O_NOCTTY)
= -1 ENOENT (No such file or directory)
[pid 22991] open("../lib/socket_wrapper/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("default/lib/talloc/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("../lib/talloc/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("default/lib/util/charset/net/if.h", O_RDONLY|O_NOCTTY) =
-1 ENOENT (No such file or directory)
[pid 22991] open("../lib/util/charset/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("default/lib/crypto/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("../lib/crypto/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("default/libcli/util/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("../libcli/util/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("default/lib/nss_wrapper/net/if.h", O_RDONLY|O_NOCTTY) =
-1 ENOENT (No such file or directory)
[pid 22991] open("../lib/nss_wrapper/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("default/lib/uid_wrapper/net/if.h", O_RDONLY|O_NOCTTY) =
-1 ENOENT (No such file or directory)
[pid 22991] open("../lib/uid_wrapper/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("default/dynconfig/net/if.h", O_RDONLY|O_NOCTTY) = -1
ENOENT (No such file or directory)
[pid 22991] open("../dynconfig/net/if.h", O_RDONLY|O_NOCTTY) = -1 ENOENT
(No such file or directory)
[pid 22991] open("/net/if.h", O_RDONLY|O_NOCTTY

Would you like me to copy more in or is this enough?
Thanks
Ned

On 25 October 2012 17:01, Michael Wood <esio...@gmail.com> wrote:

> Hi
>
> On 25 October 2012 15:29, Edward Ashley <n...@redmonkeysoftware.com> wrote:
> > Hi,
> > ccache is not installed. I have run the strace like this:
> [...]
> > stat("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1",
> > {st_mode=S_IFREG|0755, st_size=9326392, ...}) = 0
> > access("/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1", X_OK) = 0
> > vfork() = 12573
> > wait4(12573, 0xd36a70, 0, NULL) = ? ERESTARTSYS (To be restarted)
> > --- SIGWINCH (Window changed) @ 0 (0) ---
> > wait4(12573,
>
> It's waiting for the process with PID 12573 to finish. I suppose cc1?
>
> > HTH, if I need to use a different strace command or switch please let me
> > know.
> > Thanks
> > Ned
>
> It might help to use "strace -f" to trace the child processes too.
>
> --
> Michael Wood <esio...@gmail.com>
>
Edward Ashley
Developer

e. n...@redmonkeysoftware.com
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

Andrew Bartlett

unread,
Oct 25, 2012, 5:00:02 PM10/25/12
to
THIS is the critical clue. The problem is caused by two things:

automount and " -I/"

We need to work out how -I/ got into the gcc command line (ie, what
dependency declared -I/).

Now I know what I'm looking for, I'll go hunting.

Andrew Bartlett

--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org


Jefferson Davis

unread,
Oct 27, 2012, 12:20:01 PM10/27/12
to
great catch!!! I ran into this yesterday on my first build attempt.
--
Jefferson K Davis
Technology and Information Systems Manager
Standard School District
1200 North Chester Ave
Bakersfield, CA 93308
661.392.2110 ext 120 (office)
http://district.standard.k12.ca.us

District Users:
Click here to report technology issues

Edward Ashley

unread,
Oct 27, 2012, 8:30:01 PM10/27/12
to
Hi,
I have tried both RC4 and from the repository but I can't seem to get
samba4 to compile. I have rebuilt the OS (Centos 6.3) from scratch and I am
still having the same issue. I get:

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 I get:
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.


Sorry for the long post, has anyone got any clues as to why this is
happening?

Thanks
Ned
Edward Ashley
Developer

e. n...@redmonkeysoftware.com
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

m...@matws.net

unread,
Oct 27, 2012, 8:30:02 PM10/27/12
to
can you strace -p the gcc process and see if it moves ?
You can also try to GDP the process and once in GDP h it ctrl-c and then bt to see where it is.

Hth Matthieu
0 new messages