Mailing List Archive

exim-4.92RC1 on Ubuntu 18.04
Hola!

It's actually my very first time to manually compile anything on Linux so I
request for help.
I am trying to compile the RC on Ubuntu 18.04.1 and it fails as below,
which I cannot make head or tails on since I am not such a Linux guy!

.....
gcc lookups/lf_quote.c
gcc lookups/lf_check_file.c
gcc lookups/lf_sqlperform.c
gcc local_scan.c
gcc version.c
gcc -o exim
smtp_in.o: In function `smtp_start_session':
smtp_in.c:(.text+0x3f15): undefined reference to `hosts_ctl'
collect2: error: ld returned 1 exit status
Makefile:661: recipe for target 'exim' failed
make[1]: *** [exim] Error 1
make[1]: Leaving directory '/home/wash/exim-4.92-RC1/build-Linux-x86_64'
Makefile:35: recipe for target 'all' failed
make: *** [all] Error 2
root@lists:/home/wash/exim-4.92-RC1#

--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft."
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: exim-4.92RC1 on Ubuntu 18.04 [ In reply to ]
On 16/12/2018 15:54, Odhiambo Washington via Exim-users wrote:
> smtp_in.o: In function `smtp_start_session':
> smtp_in.c:(.text+0x3f15): undefined reference to `hosts_ctl'
> collect2: error: ld returned 1 exit status

hosts_ctl() should be supplied by the libwrap library; you
must be building with USE_TCP_WRAPPERS defined but have
not included the library. The lines in the Makefile just
below USE_TCP_WRAPPERS have comments implying that the need
for an explicit mention of the library varies across platforms.

Few people actually use tcpwrappers these days, I think; full
firewalling with iptables or similar is more common.
--
Cheers,
Jeremy


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: exim-4.92RC1 on Ubuntu 18.04 [ In reply to ]
Odhiambo Washington via Exim-users <exim-users@exim.org> (So 16 Dez 2018 16:54:51 CET):
> Hola!
>
> It's actually my very first time to manually compile anything on Linux so I
> request for help.
> I am trying to compile the RC on Ubuntu 18.04.1 and it fails as below,
> which I cannot make head or tails on since I am not such a Linux guy!

Can you post your Local/Makefile?

> smtp_in.o: In function `smtp_start_session':
> smtp_in.c:(.text+0x3f15): undefined reference to `hosts_ctl'
> collect2: error: ld returned 1 exit status

hosts_ctl() is part of the tcpwrapper, isn't it?
Do you have libwrap0-dev installed on your system?

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
Re: exim-4.92RC1 on Ubuntu 18.04 [ In reply to ]
On Sun, 16 Dec 2018 at 19:38, Jeremy Harris via Exim-users <
exim-users@exim.org> wrote:

> On 16/12/2018 15:54, Odhiambo Washington via Exim-users wrote:
> > smtp_in.o: In function `smtp_start_session':
> > smtp_in.c:(.text+0x3f15): undefined reference to `hosts_ctl'
> > collect2: error: ld returned 1 exit status
>
> hosts_ctl() should be supplied by the libwrap library; you
> must be building with USE_TCP_WRAPPERS defined but have
> not included the library. The lines in the Makefile just
> below USE_TCP_WRAPPERS have comments implying that the need
> for an explicit mention of the library varies across platforms.
>
> Few people actually use tcpwrappers these days, I think; full
> firewalling with iptables or similar is more common.
> --
> Cheers,
> Jeremy
>

Thank you, Jeremy.

That sorted it out. Now just to watch the log files for anything....

--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: exim-4.92RC1 on Ubuntu 18.04 [ In reply to ]
On Sun, 16 Dec 2018 at 20:43, Heiko Schlittermann via Exim-users <
exim-users@exim.org> wrote:

> Odhiambo Washington via Exim-users <exim-users@exim.org> (So 16 Dez 2018
> 16:54:51 CET):
> > Hola!
> >
> > It's actually my very first time to manually compile anything on Linux
> so I
> > request for help.
> > I am trying to compile the RC on Ubuntu 18.04.1 and it fails as below,
> > which I cannot make head or tails on since I am not such a Linux guy!
>
> Can you post your Local/Makefile?
>
> > smtp_in.o: In function `smtp_start_session':
> > smtp_in.c:(.text+0x3f15): undefined reference to `hosts_ctl'
> > collect2: error: ld returned 1 exit status
>
> hosts_ctl() is part of the tcpwrapper, isn't it?
> Do you have libwrap0-dev installed on your system?
>

I managed to fix it with Jeremy's help. Thank you for looking into it.


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/