cannot find -lltdl

kalin m kalin at
Tue Jun 23 05:37:40 UTC 2009

hi all..

this is a bit awkward....

i'm building php 5.2.10 from source on freebsd 7.0. using:

./configure --with-layout=GNU 
--with-config-file-scan-dir=/usr/local/etc/php --disable-all 
--enable-libxml --with-libxml-dir=/usr/local --enable-reflection 
--program-prefix= --disable-cgi --with-apxs2=/etc/httpd/bin/apxs 
--with-regex=php --with-zend-vm=CALL --prefix=/usr/local 
--mandir=/usr/local/man --infodir=/usr/local/info/ --with-pcre-regex 
--with-mysql=/usr/local/mysql --with-curl --enable-ctype --enable-dom 
--enable-exif --enable-filter --with-gd --with-openssl --enable-json 
--with-iconv --with-mhash --with-mcrypt

the configuration runs fine but  the build breaks:
main/internal_functions.lo -lcrypt -lcrypt -lmysqlclient -lmhash 
-lmcrypt -lltdl -liconv -lpng -lz -lcurl -lssl -lcrypto -lm -lxml2 -lz 
-liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm -lcrypt 
-lcrypt  -o
/usr/bin/ld: cannot find -lltdl
*** Error code 1

Stop in /usr/local/src/php-5.2.10.

# locate ltdl

the thing is it already build once with the same configuration options. 
an hour ago. and it is working. but i need to add more stuff to this. if 
i take off --with-mcrypt it builds fine. i have mcrypt already and i 
need it. and don't want to reinstall without it....

any help?


More information about the freebsd-questions mailing list