Re: wont compile exim4.14/sa-exim/dlopen 3.0 ?
Christian Stuellenberg <[email protected]>
| Newsgroups | gmane.mail.exim.spamassassin |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Anton" == Anton Emilov <[email protected]> writes: Hello Anton, Anton> Sorry If I am asking stupid question but I am new to Anton> sa-exim. Anton> I followed strictly the build instructions but it Anton> appears I have missed something. I am trying to build exim Anton> 4.14 with sa-exim 3.0 and dlopen patch on Debian box Anton> Though I applied the patch Anton> patch -p1 < ../sa-exim-3.0/localscan_dlopen.patch Anton> I am getting Anton> gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o Anton> dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o Anton> exim.o expand.o filter.o globals.o header.o host.o ip.o Anton> log.o lss.o match.o moan.o os.o parse.o queue.o rda.o Anton> readconf.o receive.o retry.o rewrite.o route.o search.o Anton> smtp_in.o smtp_out.o spool_in.o spool_out.o store.o Anton> string.o tls.o tod.o transport.o tree.o verify.o Anton> local_scan.o version.o \ pcre/libpcre.a \ routers/routers.a Anton> transports/transports.a lookups/lookups.a \ auths/auths.a \ Anton> -lresolv -lnsl -lcrypt \ -ldb local_scan.o: In function Anton> `local_scan': local_scan.o(.text+0x3c): undefined reference Anton> to `dlerror' local_scan.o: In function Anton> `load_local_scan_library': local_scan.o(.text+0xc9): Anton> undefined reference to `dlopen' local_scan.o(.text+0xed): Anton> undefined reference to `dlsym' local_scan.o(.text+0xfd): Anton> undefined reference to `dlclose' local_scan.o(.text+0x11e): Anton> undefined reference to `dlsym' local_scan.o(.text+0x12e): Anton> undefined reference to `dlclose' local_scan.o(.text+0x14e): Anton> undefined reference to `dlclose' local_scan.o(.text+0x179): Anton> undefined reference to `dlclose' local_scan.o(.text+0x1a0): Anton> undefined reference to `dlsym' local_scan.o(.text+0x1bc): Anton> undefined reference to `dlclose' collect2: ld returned 1 Anton> exit status make[1]: *** [exim] Error 1 make[1]: Leaving Anton> directory `/root/exim-4.14/build-Linux-i386' make: *** [go] Anton> Error 2 These errors indicate, that the library dl could not be linked against. Anton> I had similiar problem with exim 4.12 Anton> If someone can tell me what I have missed thanks in advance Quite easy to fix this. Look into your Local/Makefile in the exim-tree. Adjust the variable LFLAGS (which is new with SA-EXIM in src/EDITME) from LFLAGS=-rdynamic to LFLAGS=-rdynamic -ldl and call make makefile && make to rebuild. Then everything should work, if you have installed your [g]libc-development package. Regards, Christian