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

Andrew Bartlett abartlet at samba.org
Thu Oct 25 14:55:41 MDT 2012


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




More information about the samba mailing list