Re: [Exim] local_scan, include/lib path

Pàgina inicial
Delete this message
Reply to this message
Autor: Richard Baker
Data:  
A: exim-users
CC: Richard Baker
Assumpte: Re: [Exim] local_scan, include/lib path
I have definitley done something wrong, the following config in Local/Makefile
breaks the compile ->

LOCAL_SCAN_SOURCE=Local/local_scan.c
INCLUDE=-I/usr/lib/perl5/5.6.1/i386-linux/CORE
EXTRALIBS=-L/usr/lib/perl5/5.6.1/i386-linux/CORE -lperl -lm

with the following ->

gcc -o em_globals.o -c -O -I/usr/lib/perl5/5.6.1/i386-linux/CORE -I/usr/X11R6/include -I. -I../exim_
monitor \
   ../exim_monitor/`echo em_globals.o | sed 's/o$/c/'`
In file included from ../exim_monitor/em_hdr.h:101,
                 from ../exim_monitor/em_globals.c:9:
structs.h:496: `MAX_NAMED_LIST' undeclared here (not in a function)
structs.h:496: size of array `domain_cache' has non-integer type
structs.h:497: `MAX_NAMED_LIST' undeclared here (not in a function)
structs.h:497: size of array `localpart_cache' has non-integer type
structs.h:610: `DNS_MAXNAME' undeclared here (not in a function)
In file included from ../exim_monitor/em_hdr.h:102,
                 from ../exim_monitor/em_globals.c:9:
globals.h:419: `MAX_NAMED_LIST' undeclared here (not in a function)
globals.h:419: size of array `sender_address_cache' has non-integer type
globals.h:425: `MAX_NAMED_LIST' undeclared here (not in a function)
globals.h:425: size of array `sender_host_cache' has non-integer type
../exim_monitor/em_globals.c:47: `BIN_DIRECTORY' undeclared here (not in a function)
../exim_monitor/em_globals.c:47: parse error before string constant
make[2]: *** [em_globals.o] Error 1
make[2]: Leaving directory `/home/rtbaker/rpm/BUILD/exim-4.04/build-Linux-i386'


cheers

Richard


> On Fri, 28 Jun 2002, Richard Baker wrote:
>
> > I'm writing a local_scan function. Is there a recommended way to add extra include
> > paths, lib link paths and libraries to link without hacking Makefile-Base ?
>
> You never need to hack Makefile-Base. Everything it contains can be
> overridden in Local/Makefile. Use INCLUDE and EXTRALIBS.
>
>
> --
> Philip Hazel            University of Cambridge Computing Service,
> ph10@???      Cambridge, England. Phone: +44 1223 334714.

>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Richard Baker richardb@???
BiblioTech Ltd, Unit 3 Piper Centre, 50 Carnwath Road, London, SW6 3EG.
Office: +44 20 7384 6990 Mobile: 07803 205 898