PHP 4.0 Bug #5357: ld fails during compiling
| From: | bjoern at baer dot main dot de | Date: | Tue, 04 Jul 2000 13:10:38 +0000 |
| Subject: | PHP 4.0 Bug #5357: ld fails during compiling | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23308@lists.php.net to get a copy of this message | ||
From: bjoern@baer.main.de
Operating system: Linux 2.2.14 (SuSE)
PHP version: 4.0.1pl2
PHP Bug Type: Compile Failure
Bug description: ld fails during compiling
When trying to compile PHP4.0.1pl2 with --with-swf, I get the following error:
/bin/sh /usr/local/src/php-4.0.1pl2/libtool --silent --mode=link gcc -g -O2 -o libphp4.la -rpath
/usr/local/src/php-4.0.1pl2/libs -export-symbols /usr/local/src/php-4.0.1pl2/sapi/apache/php.sym
-avoid-version -L/usr/local/libswf -R /usr/local/libswf stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/db/libdb.la ext/dbase/libdbase.la
ext/gd/libgd.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/standard/libstandard.la ext/swf/libswf.la ext/sysvsem/libsysvsem.la
ext/sysvshm/libsysvshm.la ext/xml/libxml.la -lgdbm -lpam -ldl -lswf -lttf -lgd -lresolv -lm -ldl
-lcrypt -lnsl -lresolv
/usr/i486-linux/bin/ld: cannot open -lswf: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.1pl2'
make: *** [all-recursive] Error 1
libswf.a is in /usr/local/libswf/lib/ and swf.h is in /usr/local/libswf/include/. My configure
command is:
./configure \
--with-apxs=/usr/sbin/apxs \
--with-mysql \
--with-swf=/usr/local/libswf \
--with-gd=/usr \
--with-dbase=yes \
--with-dom=/usr \
--enable-dba \
--enable-sysvshm \
--enable-sysvsem \
--enable-debug=no \
--enable-safe-mode=no \
--with-ftp=yes \
--enable-url-fopen-wrapper=yes \
--enable-track-vars=yes \
--enable-versioning \
--enable-session
make
As I'm not a real linux expert, I don't know what's going wrong while compiling.