Re: [exim] Exim 4.8 build issue

Góra strony
Delete this message
Reply to this message
Autor: George R Kasica
Data:  
Dla: Todd Lyons
CC: exim-users, gkasica, Jeremy Harris
Temat: Re: [exim] Exim 4.8 build issue
>On Mon, 4 Jun 2012 20:02:03 -0700, you wrote:

>On Mon, Jun 4, 2012 at 7:39 PM, Phil Pennock <exim-users@???> wrote:
>
>> You need to remove the build directory, and/or "make makefile" after
>> making changes to how Exim is built.
>
>George, you can do 'make distclean' which does 'rm -rf build*'. The
>'make makefile' won't fix every compile-oriented problem, but it fixes
>most things that don't involve compile/link cli args. The 'make
>distclean' wipes the build directory (the staging ground for the build
>process) and starts the whole build process with a blank slate.
>
>...Todd
>


OK...did the make distclean and make makefile after the edits here and
then make.

Results of each below - sadly not successful:

And the same regardless of whether or not I redefine CC as below or
leave it unredefined.


With the following edit to OS/os-h.Linux


#define int_eximarith_t int32_t
#define PR_EXIM_ARITH "%" PRId32
#define SC_EXIM_ARITH "%" SCNi32
#define SC_EXIM_DEC "%" SCNd32


#CC="gcc -std=gnu99"

# make distclean                                          
/bin/rm -rf build-*


# make makefile

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


#make
expand.c: In function 'eval_op_mult':
expand.c:3196:25: error: 'LLONG_MIN' undeclared (first use in this
function)
expand.c:3196:25: note: each undeclared identifier is reported only
once for each function it appears in
expand.c:3200:28: error: 'LLONG_MAX' undeclared (first use in this
function)
expand.c: In function 'expand_string_integer':
expand.c:6178:17: error: 'LLONG_MAX' undeclared (first use in this
function)
expand.c:6178:43: error: 'LLONG_MIN' undeclared (first use in this
function)
make[1]: *** [expand.o] Error 1
make[1]: Leaving directory
`/mnt/scsi-1/Linux/exim-4.80/build-Linux-i386'
make: *** [all] Error 2


With the following edit to OS/os-h.Linux

#define __USE_ISOC99

#CC="gcc -std=gnu99"

# make distclean                                          
/bin/rm -rf build-*


# make makefile

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


gcc exim_dbmbuild.c
In file included from exim.h:33:0,
                 from exim_dbmbuild.c:31:
os.h:18:0: warning: "__USE_ISOC99" redefined [enabled by default]
/usr/local/include/features.h:201:0: note: this is the location of the
previous definition
In file included from exim.h:67:0,
                 from exim_dbmbuild.c:31:
/usr/local/include/math.h:118:17: error: #if with no expression
In file included from exim.h:67:0,
                 from exim_dbmbuild.c:31:
/usr/local/include/math.h:354:17: error: #if with no expression
In file included from /usr/local/include/asm/sigcontext.h:5:0,
                 from /usr/local/include/bits/sigcontext.h:28,
                 from /usr/local/include/signal.h:307,
                 from exim.h:68,
                 from exim_dbmbuild.c:31:
make[1]: *** [exim_dbmbuild.o] Error 1




WITHOUT the CC exported I get the same results

gcc exim_dbmbuild.c
In file included from exim.h:33:0,
                 from exim_dbmbuild.c:31:
os.h:18:0: warning: "__USE_ISOC99" redefined [enabled by default]
/usr/local/include/features.h:201:0: note: this is the location of the
previous definition
In file included from exim.h:67:0,
                 from exim_dbmbuild.c:31:
/usr/local/include/math.h:118:17: error: #if with no expression
In file included from exim.h:67:0,
                 from exim_dbmbuild.c:31:
/usr/local/include/math.h:354:17: error: #if with no expression
In file included from /usr/local/include/asm/sigcontext.h:5:0,
                 from /usr/local/include/bits/sigcontext.h:28,
                 from /usr/local/include/signal.h:307,
                 from exim.h:68,
                 from exim_dbmbuild.c:31:
/usr/local/include/linux/types.h:13:2: warning: #warning "Attempt to
use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders" [-Wcpp]
make[1]: *** [exim_dbmbuild.o] Error 1