php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14553 cannot find -lX11 for GB compilation.
Submitted: 2001-12-16 18:07 UTC Modified: 2001-12-16 20:02 UTC
From: ediaz at isea-ing dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.0 OS: linux suse 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ediaz at isea-ing dot com
New email:
PHP Version: OS:

 

 [2001-12-16 18:07 UTC] ediaz at isea-ing dot com
ok, fist compile php 4.1.0 ok with this command line:

'./configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-imap=/programas/imap-2001a/' '--with-ftp' '--with-gettext'

It 's runing well, but....

i am going to compile php 4.1.0 with GD support.
remove the old directory a make another gunzip for all.

./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-imap=/programas/imap-2001a/ --with-ftp --with-gettext --with-gd

there is a error.

i install the library of gd, 

gd-1.8.3 System Environment/Libraries An autoloadable interface module for libgd  
gd-devel-1.8.3 System Environment/Libraries An autoloadable interface module for libgd-devel  

ok.

i going to configure the php, some of config out.
some is cached, but the no cached version is same.

checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
checking for the location of libjpeg... no
If configure fails try --with-jpeg-dir=<DIR>
checking for the location of libpng... no
If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... no
If configure fails try --with-freetype-dir=<DIR>
checking whether to include include FreeType 1.x support... no
checking whether to include T1lib support... no
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateFromGd2 in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... no
checking for gdImageSetTile in -lgd... yes
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringTTF in -lgd... yes
checking for gdImageStringFT in -lgd... no
checking for gdImageStringFTEx in -lgd... no
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... no
checking whether to include GNU gettext support... yes

his config.log zone..

configure:19304: checking whether to include GD support
configure:19491: checking whether to enable truetype string function in gd
configure:19544: checking for the location of libjpeg
configure:19740: checking for the location of libpng
configure:20034: checking for the location of libXpm
configure:20323: checking for freetype(2)
configure:20518: checking whether to include include FreeType 1.x support
configure:20717: checking whether to include T1lib support
configure:20977: checking for gdImageString16 in -lgd
configure:20996: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21020: checking for gdImagePaletteCopy in -lgd
configure:21039: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21063: checking for gdImageCreateFromPng in -lgd
configure:21082: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21106: checking for gdImageCreateFromGif in -lgd
configure:21125: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/tmp/ccVzH6zk.o: In function `main':
/datos/programas/programacion/php-4.1.0/configure:21121: undefined reference to `gdImageCreateFromGif'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21114 "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 gdImageCreateFromGif();

int main() {
gdImageCreateFromGif()
; return 0; }
configure:21149: checking for gdImageGif in -lgd
configure:21168: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/tmp/ccBOCCiz.o: In function `main':
/datos/programas/programacion/php-4.1.0/configure:21164: undefined reference to `gdImageGif'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21157 "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 gdImageGif();

int main() {
gdImageGif()
; return 0; }
configure:21192: checking for gdImageWBMP in -lgd
configure:21211: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21235: checking for gdImageCreateFromJpeg in -lgd
configure:21254: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21278: checking for gdImageCreateFromXpm in -lgd
configure:21297: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21321: checking for gdImageCreateFromGd2 in -lgd
configure:21340: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21364: checking for gdImageCreateTrueColor in -lgd
configure:21383: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/tmp/ccX1cei9.o: In function `main':
/datos/programas/programacion/php-4.1.0/configure:21379: undefined reference to `gdImageCreateTrueColor'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21372 "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 gdImageCreateTrueColor();

int main() {
gdImageCreateTrueColor()
; return 0; }
configure:21407: checking for gdImageSetTile in -lgd
configure:21426: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21450: checking for gdImageSetBrush in -lgd
configure:21469: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21493: checking for gdImageStringTTF in -lgd
configure:21512: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21536: checking for gdImageStringFT in -lgd
configure:21555: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/tmp/cczVGfbv.o: In function `main':
/datos/programas/programacion/php-4.1.0/configure:21551: undefined reference to `gdImageStringFT'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21544 "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 gdImageStringFT();

int main() {
gdImageStringFT()
; return 0; }
configure:21579: checking for gdImageStringFTEx in -lgd
configure:21598: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/tmp/ccEUbKfN.o: In function `main':
/datos/programas/programacion/php-4.1.0/configure:21594: undefined reference to `gdImageStringFTEx'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21587 "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 gdImageStringFTEx();

int main() {
gdImageStringFTEx()
; return 0; }
configure:21622: checking for gdImageColorClosestHWB in -lgd
configure:21641: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21665: checking for gdImageColorResolve in -lgd
configure:21684: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
configure:21708: checking for gdImageGifCtx in -lgd
configure:21727: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED  conftest.c -lgd  -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/tmp/ccGgSn55.o: In function `main':
/datos/programas/programacion/php-4.1.0/configure:21723: undefined reference to `gdImageGifCtx'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21716 "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 gdImageGifCtx();

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


and his is the make line.

/bin/sh /datos/programas/programacion/php-4.1.0/libtool --silent --mode=compile gcc  -I. -I/datos/programas/programacion/php-4.1.0/ -I/datos/programas/programacion/php-4.1.0/main -I/datos/programas/programacion/php-4.1.0 -I/usr/local/apache/include -I/datos/programas/programacion/php-4.1.0/Zend -I/programas/imap-2001a//c-client -I/datos/programas/programacion/php-4.1.0/ext/mysql/libmysql -I/datos/programas/programacion/php-4.1.0/ext/xml/expat  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED -I/datos/programas/programacion/php-4.1.0/TSRM -g -O2 -prefer-pic  -c stub.c
/bin/sh /datos/programas/programacion/php-4.1.0/libtool --silent --mode=link gcc  -I. -I/datos/programas/programacion/php-4.1.0/ -I/datos/programas/programacion/php-4.1.0/main -I/datos/programas/programacion/php-4.1.0 -I/usr/local/apache/include -I/datos/programas/programacion/php-4.1.0/Zend -I/programas/imap-2001a//c-client -I/datos/programas/programacion/php-4.1.0/ext/mysql/libmysql -I/datos/programas/programacion/php-4.1.0/ext/xml/expat  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED -I/datos/programas/programacion/php-4.1.0/TSRM -g -O2 -prefer-pic   -o libphp4.la -rpath /datos/programas/programacion/php-4.1.0/libs -avoid-version -L/programas/imap-2001a//c-client  -R /programas/imap-2001a//c-client stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/gd/libgd.la ext/gettext/libgettext.la ext/imap/libimap.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -lc-client -ldl -lcrypt -lpam -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
/usr/i486-suse-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/datos/programas/programacion/php-4.1.0'
make: *** [all-recursive] Error 1
.

Ok, i want said that the machin is a server a not have X, but it have x11 librarys.

xshared-4.0.2 X11 shared libs  

Can i send you more information, said me what?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-16 18:11 UTC] mfischer@php.net
> Ok, i want said that the machin is a server a not have X, but it have x11 librarys.

Obviousl it has not or it is misconfigured.

Please ask support questions at php-general@lists.php.net

Bogusifying.
 [2001-12-16 19:07 UTC] ediaz at isea-ing dot com
What it is the need of X11 for GD???
I didn't need for install the other version of php.
I did not need for install the rpm GD.
????
 [2001-12-16 19:13 UTC] ediaz at isea-ing dot com
ops and another cuestion..

why did not it fail the "./configure" command?
 [2001-12-16 20:02 UTC] ediaz at isea-ing dot com
This is a descripci?n of the xshared-4.0.2
Since some programs were linked with the X11 libraries but do work on a text
console as well (e.g. emacs), we have put the X11 dynamic libraries into an
extra package so you can use such programs without installing the entire
X11 system.

and this is the list of files.

servidor:/usr/X11R6/lib # ls
.               libX11.so.6    libXext.so.6.4   libXp.so.6         libXtst.so.6.1       libdps.so.1
..              libX11.so.6.2  libXfont.so.1    libXp.so.6.2       libXv.so.1           libdps.so.1.0
X11             libXIE.so.6    libXfont.so.1.3  libXpm.so.4        libXv.so.1.0         libdpstk.so.1
libICE.so.6     libXIE.so.6.0  libXft.so.1      libXpm.so.4.11     libXxf86dga.so.1     libdpstk.so.1.0
libICE.so.6.3   libXaw.so.6    libXft.so.1.0    libXrender.so.1    libXxf86dga.so.1.0   libpsres.so.1
libPEX5.so.6    libXaw.so.6.1  libXi.so.6       libXrender.so.1.0  libXxf86misc.so.1    libpsres.so.1.0
libPEX5.so.6.0  libXaw.so.7    libXi.so.6.0     libXt.so.6         libXxf86misc.so.1.0  libxrx.so.6
libSM.so.6      libXaw.so.7.0  libXmu.so.6      libXt.so.6.0       libXxf86vm.so.1      libxrx.so.6.3
libSM.so.6.0    libXext.so.6   libXmu.so.6.2    libXtst.so.6       libXxf86vm.so.1.0


Some people said me about disable xpm support suport, but i get the same for --without-xpm and ./configure always said me it is enabled.

checking for gdImageCreateFromXpm in -lgd... yes

i try too with --disable-xpm a i get the same line

Edu
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 19:01:31 2024 UTC