From:             [EMAIL PROTECTED]
Operating system: Solaris 2.6
PHP version:      4.0.6
PHP Bug Type:     Compile Failure
Bug description:  iconv library not propagated from PHP to Apache

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

-- 
Edit bug report at: http://bugs.php.net/?id=14977&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to