php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14977 iconv library not propagated from PHP to Apache
Submitted: 2002-01-10 15:32 UTC Modified: 2002-04-22 23:47 UTC
From: muhlig at us dot edu dot pl Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: Solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: muhlig at us dot edu dot pl
New email:
PHP Version: OS:

 

 [2002-01-10 15:32 UTC] muhlig at us dot edu dot pl
PHP configure (please note '--with-iconv' presence):

./configure --with-zlib --with-mysql=/usr/local/hackphpmysql --with-apache=../../apache/apache_1.3.22 --with-ldap=/usr/local/ldap --enable-track-vars --enable-magic-quotes --enable-bcmath --with-gettext --with-iconv --with-xml --with-mcrypt --with-imap=/export/home/cto/software/imap/imap-2001a

making Apache module:

Apache make failure:

gcc  -DSOLARIS2=260 -DMOD_SSL=208105 -I/export/home/cto/software/php/php-4.0.6 -I/export/home/cto/software/php/php-4.0.6/main -I/export/home/cto/software/php/php-4.0.6/main -I/export/home/cto/software/php/php-4.0.6/Zend -I/export/home/cto/software/php/php-4.0.6/Zend -I/export/home/cto/software/php/php-4.0.6/TSRM -I/export/home/cto/software/php/php-4.0.6/TSRM -I/export/home/cto/software/php/php-4.0.6 -DEAPI -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -L/software/openssl/openssl-0.9.6c   \
      -o httpd buildmark.o modules.o modules/ssl/libssl.a modules/php4/libphp4.a modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a  -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -R/usr/local/lib -R/export/home/cto/software/imap/imap-2001a/c-client -R/usr/local/ldap/lib -R/usr/local/hackphpmysql/lib/mysql  -L/usr/ucblib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -L/usr/local/lib -L/export/home/cto/software/imap/imap-2001a/c-client -L/usr/local/ldap/lib -L/usr/local/hackphpmysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam -lc-client  -ldl -lmysqlclient -lz -lmcrypt -lltdl -lldap -llber -lpam -lintl -lz -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc   -lsocket -lnsl  -lssl -lcrypto
Undefined                       first referenced
 symbol                             in file
libiconv                            modules/php4/libphp4.a(iconv.o)  (symbol belongs to implicit dependency /usr/local/lib/libiconv.so.2)
libiconv_open                       modules/php4/libphp4.a(iconv.o)  (symbol belongs to implicit dependency /usr/local/lib/libiconv.so.2)
libiconv_close                      modules/php4/libphp4.a(iconv.o)  (symbol belongs to implicit dependency /usr/local/lib/libiconv.so.2)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/export/home/cto/software/apache/apache_1.3.22/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/export/home/cto/software/apache/apache_1.3.22'
make: *** [build] Error 2
# 

It's obvious: '-liconv' is missing from gcc invocation. The workaround fix is manual edit of Apache src/Makefile, adding -liconv to libraries.

Thank you.

Maciek

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-22 23:47 UTC] sniper@php.net
This should be fixed in PHP 4.2.0. Reopen if you still 
get this with it.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 16 11:01:28 2024 UTC