php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19973 compile zlib and pcre as shared fails
Submitted: 2002-10-18 05:37 UTC Modified: 2003-02-09 12:51 UTC
Votes:7
Avg. Score:4.7 ± 0.7
Reproduced:7 of 7 (100.0%)
Same Version:3 (42.9%)
Same OS:2 (28.6%)
From: info at dialcom dot pl Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2002-10-18 OS: RedHat 7.2 (kernel 2.4.19)
Private report: No CVE-ID: None
 [2002-10-18 05:37 UTC] info at dialcom dot pl
I've tried to complile additional modules for as shared with the latest snap (18.10.2002) http://snaps.php.net/php4-latest.tar.gz and the operation failed - the same with php version 4.2.3 produces all chosen modules without any problems
here's what I've done:

./configure --with-apache=/usr/src/apache_1.3.27 --with-mysql=shared,/usr --enable-dba=shared --with-db3=/usr --with-gd=shared --with-zlib=shared,/usr --with-pcre-regex=shared --with-curl=shared,/usr --enable-bcmath=shared --enable-posix=shared  --enable-calendar=shared --enable-ctype=shared --enable-filepro=shared  --enable-shmop=shared  --enable-sysvsem=shared  --enable-sysvshm=shared --with-xml=shared  --enable-wddx=shared  --with-domxml=shared,/usr --enable-ftp=shared  --enable-sockets=shared   --enable-yp=shared  --enable-dbase=shared  --enable-exif=shared

and then:
make

and I've got this error:
ext/standard/image.o: In function `php_handle_swc':
/usr/src/php-4.3.0-021018/ext/standard/image.c:222: undefined reference to `uncompress'
/usr/src/php-4.3.0-021018/ext/standard/image.c:242: undefined reference to `uncompress'
ext/standard/aggregation.o: In function `aggregate_methods':
/usr/src/php-4.3.0-021018/ext/standard/aggregation.c:103: undefined reference to `pcre_get_compiled_regex'
/usr/src/php-4.3.0-021018/ext/standard/aggregation.c:126: undefined reference to `php_pcre_exec'
ext/standard/aggregation.o: In function `aggregate_properties':
/usr/src/php-4.3.0-021018/ext/standard/aggregation.c:209: undefined reference to `pcre_get_compiled_regex'
/usr/src/php-4.3.0-021018/ext/standard/aggregation.c:232: undefined reference to `php_pcre_exec'
main/SAPI.o: In function `sapi_header_op':
/usr/src/php-4.3.0-021018/main/SAPI.c:519: undefined reference to `zlib_globals'
main/SAPI.o: In function `sapi_send_headers':
/usr/src/php-4.3.0-021018/main/SAPI.c:668: undefined reference to `zlib_globals'
/usr/src/php-4.3.0-021018/main/SAPI.c:669: undefined reference to `zlib_globals'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


without options:
--with-zlib=shared,/usr --with-pcre-regex=shared 
the whole thing compiles fine

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-27 23:08 UTC] oden dot eriksson at linux-mandrake dot com
Same thing on Mandrake 9.0
 [2003-02-09 10:12 UTC] moriyoshi@php.net
See bug #22136 & bug #22131
 [2003-02-09 12:51 UTC] moriyoshi@php.net
Wrong status.
Dupe of bug #21151 => please see that page for further info.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 23:01:30 2024 UTC