Bug #17690 Updated: ext/domxml/config.m4 does not check that the library actually links properly
| From: | sniper@php.net | Date: | Thu, 13 Jun 2002 13:06:39 +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-10330@lists.php.net to get a copy of this message | ||
ID: 17690
Updated by: sniper@php.net
-Summary: GD & ICONV configuration error
Reported By: kv_m@rambler.ru
-Status: Open
+Status: Feedback
-Bug Type: GD related
+Bug Type: DOM XML related
Operating System: FreeBSD 4.5
PHP Version: 4.0CVS-2002-06-11
New Comment:
Reclassified as DOM XML problem.
Now..what do these output:
/usr/local/bin/xml2-config --libs
/usr/local/bin/xml2-config --version
Previous Comments:
------------------------------------------------------------------------
[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; }
------------------------------------------------------------------------
[2002-06-11 06:45:24] sniper@php.net
What WAS in config.log that made you make that change?!
------------------------------------------------------------------------
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