Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2009 01:10:14 -0400
From:      kalin m <kalin@el.net>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   cannot find -lltdl
Message-ID:  <4A4063B6.1000104@el.net>

next in thread | raw e-mail | index | archive | help


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 libphp5.la
/usr/bin/ld: cannot find -lltdl
*** Error code 1

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

# locate ltdl
/usr/local/share/aclocal/ltdl.m4
/usr/local/share/libtool/libltdl
...........

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?

thanks...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A4063B6.1000104>