Wednesday 13 August 2008, Tony Finch wrote:
> On Wed, 13 Aug 2008, Ivan Lezhnjov Jr. wrote:
> > > smtp_in.o(.text+0x1ae5): In function `smtp_start_session':
> > > : undefined reference to `hosts_ctl'
> >
> > So, my question is what goes wrong here and how can it be fixed?
>
> You have set USE_TCP_WRAPPERS in Local/Makefile but you haven't added
> -lwrap to EXTRALIBS_EXIM as instructed by the comments in the file.
>
> Tony.
Yeah, I found this in Wiki FAQ but after adding -lwrap to EXTRALIBS_EXIM I
still experience an error like this:
...
> gcc srs.c
> gcc dk.c
> gcc dkim-exim.c
>
> awk '{ print ($1+1) }' cnumber.h > cnumber.temp
> rm -f cnumber.h; mv cnumber.temp cnumber.h
> gcc version.c
> rm -f exim
> gcc -o exim
>
> rfc2047.o(.text+0x397): In function `rfc2047_decode2':
> : undefined reference to `libiconv_open'
>
> rfc2047.o(.text+0x462): In function `rfc2047_decode2':
> : undefined reference to `libiconv'
>
> rfc2047.o(.text+0x548): In function `rfc2047_decode2':
> : undefined reference to `libiconv_close'
>
> collect2: ld returned 1 exit status
> make[1]: *** [exim] Error 1
> make[1]: Leaving directory
> `/home/users/ilj/downloads/software/exim/exim-4.69/build-Linux-pentium4'
> make: *** [go] Error 2
Now I tried of course to set
HAVE_ICONV=yes
CFLAGS=-O -I/usr/include
EXTRALIBS_EXIM=-L/usr/lib -liconv
in Local/Makefile but make still generates exactly the same error message (the
quotation block in this message, not in previous one).
I tried to disable use of tcpwrappers and libiconv but make still generates
exactly the same error message.
iconv version in use:
ilj@xerxes:~/downloads/software/exim/exim-4.69 % iconv --version
iconv (GNU libiconv 1.11)
...
What else should be checked?
--
Ivan Lezhnjov Jr.
Europe, Ukraine, Simferopol
Running
Source Mage GNU/Linux, kernel version 2.6.24 build #5
+----------------------------------------------------------------------+
Key ID 0x5811D90C
Key Fingerprint 2A52 5C8C 38BE C04F D8DE A169 19E2 E49A 5811 D90C
Use GPG Exercise Your Right To Privacy