Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Apr 14, 2021 5:45 am


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - Courier compile fails with "/usr/bin/ld: cannot find -lperl"
Author Message
Post subject: Re: Compiling courier on Debian Lenny fails  |  Post Posted: Thu Aug 13, 2009 10:36 am
Code:
# apt-get install libperl-dev
Post subject: Re: Compiling courier on Debian Lenny fails  |  Post Posted: Thu Aug 13, 2009 10:36 am
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
Post subject: Courier compile fails with "/usr/bin/ld: cannot find -lperl"  |  Post Posted: Wed Aug 12, 2009 6:37 pm
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.
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO