[SA-exim] localscan_dlopen.patch trouble with exim4 -compilefails :((

Volker Augustin v.augustin at multiartstudio.de
Thu, 20 Jun 2002 18:48:34 +0200


ok, i did it again, and compiling still fails :((

(i extracted every package and all that, editing... under linux, becaue this was my
mistake with exim before, i did that under windoz to linux *im so bad*, carriage
returns and so on made mysterious trouble....)

what i did was:

copying new source from exim-4.05, copy my makefile to Local/Makefile
type 'make'
and exim binary was built successfull.

now i copied a fresh downloaded version of  localscan.dlopen.patch to
/usr/src/exim-4.05/src
go to src and type 'patch < localscan_dlopen.patch'
everything seems to be ok.
then go back to main-sourcedir and type make clean && make makefile && make
compiling still fail with the first error i posted :((


volker

Volker Augustin wrote:

> >> (probably) it should be.  It looks like you're building on linux, and
> >> this line in OS/os.h-Linux is what takes care of that "missing" file.
> > >    #define NO_IP_VAR_H
> > >You haven't changed that at all, have you?
>
> >If all else fails, I know it is very ugly, but you could comment out the
> >inclusion of ip-var.h in exim.h (change #ifdef with #if 0)
>
> ok, i deleted these lines *g* of exim.h
>
> and exim compiles until this error occures:
>
> gcc -c -O2 -I /home/mysql/include -I /home/pgsql/7.1/include -I /usr/include/gdbm
> -I /home/mysql/include -I /home/pgsql/7.1/include -I. -o local_scan.o
> ../src/local_scan.c
> In file included from /home/pgsql/7.1/include/config.h:677,
>                  from ../src/exim.h:321,
>                  from ../src/local_scan.c:8:
> /home/pgsql/7.1/include/os.h:2: redefinition of `slock_t'
> /home/pgsql/7.1/include/os.h:2: `slock_t' previously declared here
> In file included from ../src/exim.h:325,
>                  from ../src/local_scan.c:8:
> ../src/structs.h:499: `MAX_NAMED_LIST' undeclared here (not in a function)
> ../src/structs.h:499: size of array `domain_cache' has non-integer type
> ../src/structs.h:500: `MAX_NAMED_LIST' undeclared here (not in a function)
> ../src/structs.h:500: size of array `localpart_cache' has non-integer type
> ../src/structs.h:611: `DNS_MAXNAME' undeclared here (not in a function)
> In file included from ../src/exim.h:326,
>                  from ../src/local_scan.c:8:
> ../src/globals.h:423: `MAX_NAMED_LIST' undeclared here (not in a function)
> ../src/globals.h:423: size of array `sender_address_cache' has non-integer type
> ../src/globals.h:429: `MAX_NAMED_LIST' undeclared here (not in a function)
> ../src/globals.h:429: size of array `sender_host_cache' has non-integer type
> make[1]: *** [local_scan.o] Error 1
> make[1]: Leaving directory `/home/SRC/exim-4.05/build-Linux-i386'
> make: *** [go] Error 2
>
> i think that is still what i discussed yesterday in the exim-users group....so i
> have to think now heavily :)) and read......
>
> thanks folks,
> volker
>
> Marc MERLIN wrote:
>
> > On Thu, Jun 20, 2002 at 05:42:59PM +0200, Volker Augustin wrote:
> > > hi,
> > >
> > > its on a linux-box, i compiled exim 4.05 successfully, than applied the
> > > localscan_dlopen.patch to it, after that compilation will fail.... :((
> >
> > Mmmh.
> >
> > > i also tried to patch a fresh  exim source (still 4.05) and compile it, it
> > > will fail with the same message....
> >
> > And you can compile exim 4.05 before you patch it, right?
> >
> > > everything i read about  sa-exim was for exim 4.01 or  4.04, is it working
> > > on 4.05?
> >
> > Yep, I compiled it in 4.05 yesterday.
> >
> >
> > On Thu, Jun 20, 2002 at 10:52:02AM -0500, Derrick 'dman' Hudson wrote:
> > > The macro NO_IP_VAR_H is not defined when you are building, but
> >
> > Good catch.
> >
> >
> >
> > Marc
> > --
> > "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> > Microsoft is to operating systems & security ....
> >                                       .... what McDonalds is to gourmet cooking
> > Home page: http://marc.merlins.org/   |   Finger marc_f@merlins.org for PGP key
>
> _______________________________________________
> SA-Exim mailing list
> SA-Exim@lists.merlins.org
> http://lists.merlins.org/lists/listinfo/sa-exim