Bug 6278 - 3.2.10 and 3.2.11 fail to build parallel (make -j5)
3.2.10 and 3.2.11 fail to build parallel (make -j5)
Status: RESOLVED WONTFIX
Product: Samba 3.2
Classification: Unclassified
Component: Build environment
3.2.11
All All
: P3 normal
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-19 16:17 UTC by Jeremy Huddleston
Modified: 2009-04-20 01:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston 2009-04-19 16:17:45 UTC
When I build with 'make -j5', samba3 fails to build because:

In file included from lib/talloc/talloc.c:36:
include/includes.h:804:19: error: proto.h: No such file or directory

proto.h isn't yet built when talloc.c is being compiled.  There needs to be a dependency added there.

Compiling with 'make -j1' works.

Full output:
Generating smbd/build_options.c
Using FLAGS      =  -O -D_SAMBA_BUILD_=3 -fno-common  -I/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -I/opt/local/include -DHAVE_STRUCT_TIMESPEC -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED   -I/include -I/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/lib -D_SAMBA_BUILD_=3
Building include/build_env.h
      PICFLAG    = -fPIE
      LIBS       = -lresolv -liconv
      LDFLAGS    = -dynamic -Wl,-search_paths_first -L/opt/local/lib -L./bin
      DYNEXP     = 
      LDSHFLAGS  = -dynamiclib -flat_namespace -undefined suppress  -dynamic -Wl,-search_paths_first -L/opt/local/lib -L./bin
      SHLIBEXT   = dylib
      SONAMEFLAG = #
creating /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/web/swat_proto.h
creating /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/winbindd/winbindd_proto.h
creating /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/libnet/libnet_proto.h
creating /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/client/client_proto.h
creating /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/utils/net_proto.h
mkdir bin
creating /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/utils/ntlm_auth_proto.h
Compiling lib/talloc/talloc.c
Compiling lib/replace/replace.c
In file included from lib/talloc/talloc.c:36:
include/includes.h:804:19: error: proto.h: No such file or directory
Compiling lib/replace/snprintf.c
The following command failed:
/usr/bin/gcc-4.0 -I. -I/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source  -O -D_SAMBA_BUILD_=3 -fno-common  -I/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -I/opt/local/include -DHAVE_STRUCT_TIMESPEC -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED   -I/include -I/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/lib -D_SAMBA_BUILD_=3 -fPIE -c lib/talloc/talloc.c -o lib/talloc/talloc.o
Compiling lib/replace/getpass.c
Compiling lib/replace/strptime.c
creating /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_net_samba3/work/samba-3.2.11/source/exports/libtalloc.syms
Comment 1 Volker Lendecke 2009-04-20 01:51:59 UTC
If you do a "make proto; make -j" it should work.

Volker