[exim-dev] make fails with -j4

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Brian Candler
Date:  
À: exim-dev
Sujet: [exim-dev] make fails with -j4
When building exim-4.77, it fails if MAKEFLAGS=-j4 which is default on
some platforms (e.g. OSX + Homebrew). This implies to me that it is
missing some missing a dependency information, and relies on the default
ordering of target builds.

Full make output below - it looks like config.h isn't being built in time.
With a simple "make" it works fine.

Regards,

Brian.

$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.0
$ make -j4

>>> Creating links to source files...
>>> New Makefile & lookups/Makefile.predynamic installed
>>> Use "make makefile" if you need to force rebuilding of the makefile


Missing CFLAGS_DYNAMIC inhibits building dynamic module lookup
/bin/sh ../scripts/Configure-os.h
/bin/sh ../scripts/Configure-os.c
cc buildconfig.c
>>> version 4.77 #2


>>> exigrep script built
>>> eximstats script built
>>> exipick script built
>>> exiqgrep script built
>>> exiqsumm script built
>>> transport-filter.pl script built

cc exim_lock.c
>>> convert4r3 script built
>>> convert4r4 script built

cc lookups/lf_quote.c
cc lookups/lf_check_file.c
In file included from lookups/../exim.h:439,
                 from lookups/lf_quote.c:9:
lookups/../local_scan.h:20:20: error: config.h: No such file or directory
In file included from lookups/../exim.h:439,
                 from lookups/lf_check_file.c:9:
lookups/../local_scan.h:20:20: error: config.h: No such file or directory
In file included from lookups/../exim.h:442,
                 from lookups/lf_quote.c:9:
lookups/../structs.h:540: error: ‘MAX_NAMED_LIST’ undeclared here (not in a function)In file included from lookups/../exim.h:442,
                 from lookups/lf_check_file.c:9:
lookups/../structs.h:540: error: ‘MAX_NAMED_LIST’ undeclared here (not in a function)


lookups/../structs.h:633: error: ‘DNS_MAXNAME’ undeclared here (not in a function)
lookups/../structs.h:633: error: ‘DNS_MAXNAME’ undeclared here (not in a function)
make[1]: *** [lookups/lf_check_file.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [lookups/lf_quote.o] Error 1
cc -o exim_lock
>>> exim_lock utility built


make: *** [all] Error 2