php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20354 cannot find -lX11
Submitted: 2002-11-11 03:47 UTC Modified: 2002-11-11 10:37 UTC
From: harley at harleyserver dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2002-11-11 OS: Sese 8
Private report: No CVE-ID: None
 [2002-11-11 03:47 UTC] harley at harleyserver dot de
Hello,
i have truble to complile php. I?ve no idea what?s wrong
with it. Can you help me to figure it out?

Version:
----------
php4-200211101739
and
php4-STABLE-latest (10-Nov-2002 17:41)

Configure Line:
------------------
./configure --prefix=/usr/share --datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include
--with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --disable-debug --enable-bcmath --enable-calendar --enable-ctype
--enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp
--enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-memory-limit
--enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid
--enable-versioning --enable-wddx --enable-yp --with-bz2 --with-dom=/usr/include/libxml2 --with-ftp --with-gdbm --with-gettext
--with-gmp --with-imap --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr --with-mcrypt --with-mysql --with-ndbm
--with-png-dir=/usr/lib --with-qtdom=/usr/lib/qt2 --with-snmp --with-t1lib --with-tiff-dir=/usr --with-ttf
--with-freetype-dir=/usr/include/freetype2 --with-xml --with-xpm --with-zlib=yes --with-openssl=/usr/local/ssl --with-curl=/usr/local --with-imap-ssl --with-gd=/usr
 --with-mm --with-apxs --with-pear

m -lssl -lcrypto  -o sapi/cli/php
/usr/i486-suse-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Fehler 1

LOG:
----
; return 0; }
configure:80148: checking whether dlsym() requires a leading underscore in symbol names
configure:80216: gcc -o conftest -g -O2  -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2/tmp/ccB0S65Q.o: In function `main':
/root/php4-200211101739/configure:14666: undefined reference to `dlopen'
/root/php4-200211101739/configure:14671: undefined reference to `dlsym'
/root/php4-200211101739/configure:14672: undefined reference to `dlsym'
collect2: ld returned 1 exit status
configure:80299: checking whether to enable thread-safety
configure:80303: checking whether to enable inline optimization for GCC
configure:80307: checking whether to enable a memory limit
configure:80311: checking whether to enable Zend debugging
configure:80315: checking whether to enable Zend multibyte
configure:80378: checking for inline
configure:80455: checking for stdarg.h
configure:81730: checking for working mkdir -p

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-11 10:09 UTC] sniper@php.net
Just drop the '--with-xpm-dir' out of your configure line
and this error goes away. (delete config.cache before you reconfigure!)

Or install the X11 devel rpms..

Not a bug.

 [2002-11-11 10:25 UTC] harley at harleyserver dot de
Hmm if i drop --with-xpm the same error appears.
 [2002-11-11 10:37 UTC] sniper@php.net
It's '--with-xpm-dir' btw. Not --with-xpm and it's still some problem within your system if libX11.so is not found.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 21:01:33 2025 UTC