php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5357 ld fails during compiling
Submitted: 2000-07-04 15:10 UTC Modified: 2000-08-18 19:05 UTC
From: bjoern at baer dot main dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: Linux 2.2.14 (SuSE)
Private report: No CVE-ID: None
 [2000-07-04 15:10 UTC] bjoern at baer dot main dot de
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-27 20:53 UTC] waldschrott@php.net
I?m no expert either, but are you sure that you?ve got all librarys at the right place, reading that error msg, I assume that it doesn?t find a SWF related file/directory...
 [2000-07-27 20:53 UTC] waldschrott@php.net
I?m no expert either, but are you sure that you?ve got all librarys at the right place, reading that error msg, I assume that it doesn?t find a SWF related file/directory...
 [2000-08-18 19:05 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 02:00:01 2026 UTC