php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12153 Failure to find libraries
Submitted: 2001-07-13 17:21 UTC Modified: 2001-07-13 18:20 UTC
From: paulrees at page87 dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: SuSE Linux 7.1
Private report: No CVE-ID: None
 [2001-07-13 17:21 UTC] paulrees at page87 dot com
I cannot get php to successfully complete the configure script when I attempt to add GD support. 

===========================================================
My configure line is: 
===========================================================

./configure --with-apache=../apache_1.3.20 --with-mysql=/usr/local/mysql --with-expat --enable-magic-quotes --enable-memory-limit --with-gd=/usr/lib --with-zlib-dir=/usr/lib/include --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib=/usr/lib --x-libraries=/usr/X11R6/lib  --with-xpm-dir=/usr/X11R6/lib

===========================================================
The relevant output from configure is:
===========================================================

Configuring extensions
checking if the location of ZLIB install directory is defined... yes
checking whether to include ZLIB support... yes
checking for gzgets in -lz... yes
checking for fopencookie... yes
checking for ASPELL support... no
checking for bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking CCVS Support... no
checking whether to include cpdflib support... no
checking whether to include crack support... no
checking whether to enable ctype support... no
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking whether to include old xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no
checking whether to enable the bundled dbase library... no
checking whether to enable dbx support... no
checking for DOM support... no
checking whether to enable exif support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for fdftk support... no
checking whether to enable the bundled filePro support... no
checking whether to add fribidi support... no
checking whether to enable FTP support... no
checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_info_init in -lpng... yes
checking for the location of libXpm... yes
checking for XpmFreeXpmImage in -lXpm... no
configure: error: libXpm.(a|so) or libX11.(a|so) not found!

===========================================================
The relevant section of config.log is:
===========================================================

configure:17491: checking whether to include GD support
configure:17678: checking whether to enable truetype string function in gd
configure:17731: checking for the location of libjpeg
configure:17780: checking for jpeg_read_header in -ljpeg
configure:17801: gcc -o conftest -g -O2   -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib conftest.c -ljpeg
      -L/usr/lib/lib
     -lz -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 1>&5
configure:17927: checking for the location of libpng
configure:17980: checking for png_info_init in -lpng
configure:18001: gcc -o conftest -g -O2   -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib conftest.c -lpng
      -L/usr/lib/lib -lz -L/usr/lib/lib
     -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 1>&5
configure:18221: checking for the location of libXpm
configure:18269: checking for XpmFreeXpmImage in -lXpm
configure:18290: gcc -o conftest -g -O2   -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib conftest.c -lXpm
      -L/usr/X11R6/lib/lib -lX11
     -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 1>&5
/usr/i486-suse-linux/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
configure: failed program was:
#line 18279 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XpmFreeXpmImage();

int main() {
XpmFreeXpmImage()
; return 0; }

===========================================================

As near as I can tell, all required libraries are where thy should be...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-13 17:24 UTC] rasmus@php.net
--with-gd=/usr as per the example in the INSTALL file
 [2001-07-13 18:17 UTC] paulrees at page87 dot com
I had previously tried that, and also --with-gd=shared. I just tried it again. Same deal.


 [2001-07-13 18:20 UTC] rasmus@php.net
--with-xpm-dir=/usr/X11R6
--with-gd=/usr
--with-jpeg-dir=/usr
--with-zlib-dir=/usr
--with-png-dir=/usr
--with-zlib=/usr

Never put "lib" nor "include" as part of a --with flag.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC