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

Andrew Bartlett abartlet at samba.org
Wed Oct 24 03:04:45 MDT 2012

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:
> -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
> ../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?


Andrew Bartlett

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

More information about the samba-technical mailing list