Re: [Exim] local_scan, include/lib path

Top Page
Delete this message
Reply to this message
Author: Richard Baker
Date:  
To: exim-users
CC: Richard Baker
Subject: Re: [Exim] local_scan, include/lib path
--
Ok

Now I have had time to look at this I've found out what the problem is.
It appears that the perl distribution also has a config.h file which
was being used in preference to the exim one :-). I have attached
a patch to Makefile-Base that changes the order of the '-I' options
so that the $(INCLUDE) is last. This fixes the problem. An alternative
might be to provide a seperate option for the local_scan, something
like a 'LOCAL_SCAN_INCLUDE=' setting ?

cheers

Richard


On Mon, Jul 01, 2002 at 09:24:20AM +0100, Philip Hazel wrote:
> On Fri, 28 Jun 2002, Richard Baker wrote:
>
> > structs.h:496: `MAX_NAMED_LIST' undeclared here (not in a function)
>
> This error has been seen before when the config.h file was not built
> correctly. Take a look at config.h in the build-xxx directory and see if
> it ends with a comment marking the end (and contains a setting of that
> variable). Exim 4.05 contains a check for this.
>
> One of the things that provoked this error was setting EXIM_USER in the
> Makefile to a non-existent user. But there may be others.
>
> Suggest you make a clean start from a fresh copy of the distribution.
>
>
> --
> 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

--
diff -urN exim-4.04-pristine/OS/Makefile-Base exim-4.04/OS/Makefile-Base
--- exim-4.04-pristine/OS/Makefile-Base    Thu Apr 18 09:08:27 2002
+++ exim-4.04/OS/Makefile-Base    Wed Jul  3 10:27:05 2002
@@ -502,7 +502,7 @@
 em_xs.o:         ../exim_monitor/em_xs.c      ../exim_monitor/em_hdr.h
 em_version.o:    ../exim_monitor/em_version.c ../exim_monitor/em_hdr.h
 $(MONBIN): $(HDRS)
-         $(CC) -o $@ -c $(CFLAGS) $(INCLUDE) $(XINCLUDE) -I. -I../exim_monitor \
+         $(CC) -o $@ -c $(CFLAGS) $(XINCLUDE) -I. -I../exim_monitor $(INCLUDE) \
            ../exim_monitor/`echo $@ | sed 's/o$$/c/'`



--