php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17690 ext/domxml/config.m4 does not check that the library actually links properly
Submitted: 2002-06-11 01:06 UTC Modified: 2002-06-18 04:54 UTC
From: kv_m at rambler dot ru Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0CVS-2002-06-11 OS: FreeBSD 4.5
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: kv_m at rambler dot ru
New email:
PHP Version: OS:

 

 [2002-06-11 01:06 UTC] kv_m at rambler dot ru
./buildconf

./configure --disable-cli --with-tsrm-pth --with-dom=/usr/local --with-dom-xslt=/usr/local --with-dom-exslt=/usr/local --with-exec-dir=/usr/local/php/bin --with-mnogosearch=/usr/local/mnsh --enable-dbg=shared --with-dbg-profiler  --enable-inline-optimization --with-freetype-dir=/usr/local --enable-trans-sid --enable-versioning --enable-ftp --with-xml --with-magic-quotes --enable-track-vars --enable-gd-native-ttf --with-png-dir=/usr/local --with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-gettext=/usr/local --with-bz2=/usr/local --with-zlib=/usr/local --with-mysql=/usr/local/mysql --enable-calendar --enable-safe-mode --enable-sysvsem --enable-sysvshm --with-config-file-path=/usr/local/php/ --with-exec-dir=/usr/local/php/bin --with-mod_charset --enable-bcmath --with-iconv=/usr/local

checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for freetype(2)... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking for jpeg_read_header in -ljpeg... no
configure: error: Problem with libjpeg.(a|so). Please check config.log for more
information.

I do replace in configure (all -ljpeg on -ljpeg -liconv)

checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for freetype(2)... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking for jpeg_read_header in -ljpeg -liconv... yes
checking for png_write_image in -lpng... yes

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-11 06:45 UTC] sniper@php.net
What WAS in config.log that made you make that change?!


 [2002-06-13 00:38 UTC] kv_m at rambler dot ru
config.log before change

configure:24844: checking for GD support
configure:24884: checking for the location of libjpeg
configure:24924: checking for the location of libpng
configure:24964: checking for the location of libXpm
configure:25004: checking for FreeType 1.x support
configure:25044: checking for freetype(2)
configure:25084: checking for T1lib support
configure:25124: checking whether to enable truetype string function in GD
configure:27068: checking for jpeg_read_header in -ljpeg
configure:27087: gcc -o conftest -g -O2  -DUSE_EXPAT 
      -L/usr/local/lib
      -R/usr/local/lib -L/usr/local/lib conftest.c -ljpeg  -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
/usr/local/lib/libxml2.so: undefined reference to `libiconv_open'
/usr/local/lib/libxml2.so: undefined reference to `libiconv_close'
/usr/local/lib/libxml2.so: undefined reference to `libiconv'
configure: failed program was:
#line 27076 "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 jpeg_read_header();

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

config.log after change

configure:24844: checking for GD support
configure:24884: checking for the location of libjpeg
configure:24924: checking for the location of libpng
configure:24964: checking for the location of libXpm
configure:25004: checking for FreeType 1.x support
configure:25044: checking for freetype(2)
configure:25084: checking for T1lib support
configure:25124: checking whether to enable truetype string function in GD
configure:27068: checking for jpeg_read_header in -ljpeg -liconv
configure:27087: gcc -o conftest -g -O2  -DUSE_EXPAT 
      -L/usr/local/lib
      -R/usr/local/lib -L/usr/local/lib conftest.c -ljpeg -liconv  -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:27269: checking for png_write_image in -lpng
configure:27288: gcc -o conftest -g -O2  -DUSE_EXPAT 
      -L/usr/local/lib -lz -L/usr/local/lib
      -R/usr/local/lib -L/usr/local/lib conftest.c -lpng  -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28470: checking for gdImageString16 in -lgd
configure:28489: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28523: checking for gdImagePaletteCopy in -lgd
configure:28542: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28576: checking for gdImageCreateFromPng in -lgd
configure:28595: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28629: checking for gdImageCreateFromGif in -lgd
configure:28648: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
/tmp/ccchbViA.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to `gdImageCreateFromGif'
configure: failed program was:
#line 28637 "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:28682: checking for gdImageGif in -lgd
configure:28701: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
/tmp/cchLPD44.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to `gdImageGif'
configure: failed program was:
#line 28690 "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:28735: checking for gdImageWBMP in -lgd
configure:28754: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28788: checking for gdImageCreateFromJpeg in -lgd
configure:28807: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28841: checking for gdImageCreateFromXpm in -lgd
configure:28860: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28894: checking for gdImageCreateFromGd2 in -lgd
configure:28913: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:28947: checking for gdImageCreateTrueColor in -lgd
configure:28966: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:29000: checking for gdImageSetTile in -lgd
configure:29019: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:29053: checking for gdImageSetBrush in -lgd
configure:29072: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:29106: checking for gdImageStringTTF in -lgd
configure:29125: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:29159: checking for gdImageStringFT in -lgd
configure:29178: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:29212: checking for gdImageStringFTEx in -lgd
configure:29231: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
/tmp/cc9X5yAD.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to `gdImageStringFTEx'
configure: failed program was:
#line 29220 "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:29265: checking for gdImageColorClosestHWB in -lgd
configure:29284: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:29318: checking for gdImageColorResolve in -lgd
configure:29337: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
configure:29371: checking for gdImageGifCtx in -lgd
configure:29390: gcc -o conftest -g -O2  -DUSE_EXPAT  -L/usr/local/lib    -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd -lfreetype -lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm  -lcrypt 1>&5
/tmp/ccZbvl7K.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to `gdImageGifCtx'
configure: failed program was:
#line 29379 "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; }
 [2002-06-13 09:06 UTC] sniper@php.net
Reclassified as DOM XML problem. 

Now..what do these output:

/usr/local/bin/xml2-config --libs
/usr/local/bin/xml2-config --version




 [2002-06-14 00:29 UTC] kv_m at rambler dot ru
/usr/local/bin/xml2-config --libs

-L/usr/local/lib -lxml2 -lz -L/usr/local/lib -lm

/usr/local/bin/xml2-config --version

2.4.17


ls /usr/local/lib

charset.alias           libgmodule12.so         libtclstub83.a
deco                    libgmodule12.so.3       libucdagent.a
libRSAglue.a            libgthread12.a          libucdagent.so
libcharset.a            libgthread12.so         libucdagent.so.4
libcharset.la           libgthread12.so.3       libucdmibs.a
libcharset.so           libiconv.la             libucdmibs.so
libcharset.so.1         libiconv.so             libucdmibs.so.4
libcrypto.a             libiconv.so.2           libxml2.a
libcrypto.so            libintl.a               libxml2.la
libcrypto.so.2          libintl.so              libxml2.so
libexslt.a              libintl.so.1            libxml2.so.6
libexslt.la             libjpeg.a               libxslt.a
libexslt.so             libjpeg.so              libxslt.la
libexslt.so.7           libjpeg.so.9            libxslt.so
libfreetype.a           libltdl.a               libxslt.so.1
libfreetype.la          libltdl.la              libxsltbreakpoint.a
libfreetype.so          libltdl.so              libxsltbreakpoint.la
libfreetype.so.7        libltdl.so.4            libxsltbreakpoint.so
libgd.so                libpng.a                libxsltbreakpoint.so.1
libgd.so.2              libsnmp.a               libz.a
libgd.so.2.0.1          libsnmp.so              perl5
libgiconv.a             libsnmp.so.4            php
libgiconv.so            libssl.a                pkgconfig
libgiconv.so.2          libssl.so               pth
libglib12.a             libssl.so.2             tcl8.3
libglib12.so            libtcl83.a              xml2Conf.sh
libglib12.so.3          libtcl83.so             xsltConf.sh
libgmodule12.a          libtcl83.so.1
 [2002-06-15 20:26 UTC] sniper@php.net
Well that is pretty odd..how did you configure libxml2 ?
It should (?) have -liconv in that output if it really
requires it. 

btw. Why do you have both libgiconv and libiconv there in /usr/local/lib ? 

--Jani

 [2002-06-17 00:05 UTC] kv_m at rambler dot ru
Yes! I Have both libgiconv and libiconv there in
/usr/local/lib.

?? libgiconv.a     ?? 890162??Jan 23 06:10??
??@libgiconv.so    ??     14??Mar 11 21:32??
?? libgiconv.so.2  ?? 891280??Jan 23 06:10??
?? libiconv.la     ??    689??Mar 11 19:53??
??@libiconv.so     ??     13??Mar 11 19:53??
?? libiconv.so.2   ?? 896632??Mar 11 19:53??
 [2002-06-17 14:32 UTC] sniper@php.net
Yes, I can see that..I asked WHY do you have both..
I also asked about your libxml2 configure line..

 [2002-06-18 04:42 UTC] kv_m at rambler dot ru
./configure --prefix=/usr/local --with-zlib=/usr/local --with-iconv=/usr/local

in new CVS 06-18 all work correct
 [2002-06-18 04:54 UTC] mfischer@php.net
Considering closed then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 15:01:31 2024 UTC