Anyone else have this problem compiling PHP 4.3.3 from source under Linux
(I'm using Slackware 9.0)?
Under PHP 4.3.2 I had no compilation problems at all, but now all of the
sudden, compiling with GD support gives me the list of errors below.
My ./configure is:
../configure --with-pgsql=/usr/local/pgsql --with-ssl=/usr/local/ssl
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib
--with-gd --with-mcrypt=/usr/local/lib --with-java=/usr/local/java
--with-apxs2=/usr/local/apache2/bin/apxs
(Yes, I am using Apache 2)
I have the JPEG, PNG and ZLIB libraries under /usr/lib, but I have not
installed my own GD... want to use the one that comes with PHP. Again,
this worked before with 4.3.2, why not this one?
Errors from running 'make':
ext/mysql/libmysql/my_tempnam.lo(. text+0x5b): In function `my_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x47): In function `fatal_jpeg_err or':
: undefined reference to `jpeg_destroy'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x192): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_std_error '
ext/gd/libgd/gd_jpeg.lo(.tex t+0x206): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_CreateCom press'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x244): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_set_defau lts'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x261): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_set_quali ty'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x27f): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_simple_pr ogression'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x2f9): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_start_com press'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x37e): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_write_mar ker'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x495): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_write_sca nlines'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x5d3): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_write_sca nlines'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x61b): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_finish_co mpress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x62d): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_destroy_c ompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x703): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_std_error '
ext/gd/libgd/gd_jpeg.lo(.tex t+0x799): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_CreateDec ompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x7c2): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_read_head er'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x88e): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_start_dec ompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x982): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_read_scan lines'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xa33): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_finish_de compress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xa5c): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_destroy_d ecompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xa8e): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_destroy_d ecompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xd26): In function `jpeg_gdIOCtx_s rc':
: undefined reference to `jpeg_resync_to _restart'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Any ideas?
TIA,
- skubik.
(I'm using Slackware 9.0)?
Under PHP 4.3.2 I had no compilation problems at all, but now all of the
sudden, compiling with GD support gives me the list of errors below.
My ./configure is:
../configure --with-pgsql=/usr/local/pgsql --with-ssl=/usr/local/ssl
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib
--with-gd --with-mcrypt=/usr/local/lib --with-java=/usr/local/java
--with-apxs2=/usr/local/apache2/bin/apxs
(Yes, I am using Apache 2)
I have the JPEG, PNG and ZLIB libraries under /usr/lib, but I have not
installed my own GD... want to use the one that comes with PHP. Again,
this worked before with 4.3.2, why not this one?
Errors from running 'make':
ext/mysql/libmysql/my_tempnam.lo(. text+0x5b): In function `my_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x47): In function `fatal_jpeg_err or':
: undefined reference to `jpeg_destroy'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x192): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_std_error '
ext/gd/libgd/gd_jpeg.lo(.tex t+0x206): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_CreateCom press'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x244): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_set_defau lts'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x261): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_set_quali ty'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x27f): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_simple_pr ogression'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x2f9): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_start_com press'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x37e): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_write_mar ker'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x495): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_write_sca nlines'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x5d3): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_write_sca nlines'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x61b): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_finish_co mpress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x62d): In function `gdImageJpegCtx ':
: undefined reference to `jpeg_destroy_c ompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x703): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_std_error '
ext/gd/libgd/gd_jpeg.lo(.tex t+0x799): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_CreateDec ompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x7c2): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_read_head er'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x88e): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_start_dec ompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0x982): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_read_scan lines'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xa33): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_finish_de compress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xa5c): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_destroy_d ecompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xa8e): In function `gdImageCreateF romJpegCtx':
: undefined reference to `jpeg_destroy_d ecompress'
ext/gd/libgd/gd_jpeg.lo(.tex t+0xd26): In function `jpeg_gdIOCtx_s rc':
: undefined reference to `jpeg_resync_to _restart'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Any ideas?
TIA,
- skubik.
Comment