Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

Courier compile fails with "/usr/bin/ld: cannot find -lperl"
https://forum.ivorde.com/courier-compile-fails-with-usr-bin-ld-cannot-find-lperl-t23.html
Page 1 of 1

Author:  debuser [ Wed Aug 12, 2009 6:37 pm ]
Post subject:  Courier compile fails with "/usr/bin/ld: cannot find -lperl"

I've tried to compile courier on a Debian system and it fails with lperl error:
Code:
$ make && make check
.............................
/bin/bash ./libtool --tag=CC   --mode=link gcc  -I./.. -I.. -I./../.. -I../.. -I./../../.. -I ../../.. -g -O2  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.10/CORE    -o perlfilter perlfilter.o ../libfilter/libfilter.a ../../../waitlib/libwaitlib.a ../../libs/libcommon.la ../../libs/libcourier.la -Wl,-E  -L/usr/local/lib  -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
libtool: link: gcc -I./.. -I.. -I./../.. -I../.. -I./../../.. -I ../../.. -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -o perlfilter perlfilter.o -Wl,-E  ../libfilter/libfilter.a ../../../waitlib/libwaitlib.a ../../libs/.libs/libcommon.a ../../libs/.libs/libcourier.a -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[6]: *** [perlfilter] Error 1
make[6]: Leaving directory `/tmp/courier-0.62.2/courier/filters/perlfilter'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/tmp/courier-0.62.2/courier/filters/perlfilter'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/courier-0.62.2/courier/filters'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/courier-0.62.2/courier/filters'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/courier-0.62.2/courier'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/courier-0.62.2/courier'
make: *** [all-recursive] Error 1
makeobj[0]: Leaving directory `/tmp/courier-0.62.2'


The configure script runs successfully, but the compiling fails.
Thanks for any info provided.

Author:  debuser [ Thu Aug 13, 2009 10:36 am ]
Post subject:  Re: Compiling courier on Debian Lenny fails

Seems that I needed to install libperl-dev package.

It needed the /usr/lib/libperl.so library which is installed by this package:

Code:
# dpkg -S /usr/lib/libperl.so
libperl-dev: /usr/lib/libperl.so

Author:  debuser [ Thu Aug 13, 2009 10:36 am ]
Post subject:  Re: Compiling courier on Debian Lenny fails

Code:
# apt-get install libperl-dev

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/