Add to Favourites Add to Favourites    Print this Article Print this Article

FreeBSD 10, exim complie error: perl.c:(.text+0x17c0): undefined reference to `Perl_save_strlen'

When compiling exim on FreeBSD 10, if you get this error:

gcc -o exim
perl.o: In function `call_perl_cat':
perl.c:(.text+0x17c0): undefined reference to `Perl_save_strlen'
collect2: error: ld returned 1 exit status
*** Error code 1

it's due to exim 4.85 not yet supporting perl 5.20.

Reported fix:

pkg install perl5.18
cd /usr/local/directadmin/custombuild
mkdir -p custom/exim
wget -O custom/exim/Makefile

Then the following line needs to be added to custom/exim/Makefile:

and after that, the ./build exim should work.

Was this answer helpful?

Also Read