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

2012-10-27 Thread Jefferson Davis
great catch!!!   I ran into this yesterday on my first build attempt.


- Original Message -
From: Andrew Bartlett lt;abart...@samba.orggt;
To: Edward Ashley lt;n...@redmonkeysoftware.comgt;
Cc: samba@lists.samba.org
Sent: Thu, 25 Oct 2012 13:55:41 -0700 (PDT)
Subject: Re: [Samba] Compiling samba4 hangs at [1815/3978] Compiling 
librpc/ndr/ndr_basic.c

On Thu, 2012-10-25 at 17:45 +0100, Edward Ashley wrote:
 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

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


-- 
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

-- 
Jefferson K Davis 
Technology and Information Systems Manager 
Standard School District 
1200 North Chester Ave 
Bakersfield, CA 93308 
661.392.2110 ext 120

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

2012-10-27 Thread Edward Ashley
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:

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

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

2012-10-27 Thread mat
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

On Oct 24, 2012, at 2:04 AM, Andrew Bartlett abart...@samba.org wrote:

 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 Bartletthttp://samba.org/~abartlet/
 Authentication Developer, Samba Team   http://samba.org
 
 
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 

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

2012-10-25 Thread Innocent Yevide
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 abart...@samba.org
À : Mario Codeniera mario.codeni...@gmail.com 
Cc : samba@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
 
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


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


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

2012-10-25 Thread Andrew Bartlett
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.

Andrew Bartlett


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


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2012-10-25 Thread Edward Ashley
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

On 25 October 2012 11:01, Andrew Bartlett abart...@samba.org wrote:

 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.

 Andrew Bartlett


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


 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

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


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

2012-10-25 Thread Andrew Bartlett
On Thu, 2012-10-25 at 11:24 +0100, Edward Ashley wrote:
 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.

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,

Andrew Bartlett

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


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2012-10-25 Thread Edward Ashley
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(0x329b60, 3745960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x329b60
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, [], 

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

2012-10-25 Thread Michael Wood
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 esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2012-10-25 Thread Edward Ashley
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 esiot...@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 esiot...@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 

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

2012-10-25 Thread Andrew Bartlett
On Thu, 2012-10-25 at 17:45 +0100, Edward Ashley wrote:
 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

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 Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2012-10-24 Thread Edward Ashley
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 

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

2012-10-24 Thread Innocent Yevide
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
À : samba@lists.samba.org 
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

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

2012-10-24 Thread Andrew Bartlett
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 Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2012-10-24 Thread Mario Codeniera
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







On Wed, Oct 24, 2012 at 10:04 PM, Andrew Bartlett abart...@samba.orgwrote:

 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 Bartletthttp://samba.org/~abartlet/
 Authentication Developer, Samba Team   http://samba.org


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


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

2012-10-24 Thread Andrew Bartlett
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 Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2012-10-24 Thread Mario Codeniera
On Thu, Oct 25, 2012 at 2:40 PM, Andrew Bartlett abart...@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 Bartletthttp://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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba