Bug #17690 Updated: ext/domxml/config.m4 does not check that the library actually links properly
| From: | sniper@php.net | Date: | Mon, 17 Jun 2002 18:32:28 +0000 |
| Subject: | Bug #17690 Updated: ext/domxml/config.m4 does not check that the library actually links properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10909@lists.php.net to get a copy of this message | ||
ID: 17690
Updated by: sniper@php.net
Reported By: kv_m@rambler.ru
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: FreeBSD 4.5
PHP Version: 4.0CVS-2002-06-11
New Comment:
Yes, I can see that..I asked WHY do you have both..
I also asked about your libxml2 configure line..
Previous Comments:
------------------------------------------------------------------------
[2002-06-17 00:05:23] kv_m@rambler.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-15 20:26:25] 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-14 00:29:41] kv_m@rambler.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-13 09:06:39] 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-13 00:38:33] kv_m@rambler.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; }
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17690
--
Edit this bug report at http://bugs.php.net/?id=17690&edit=1