From:             
Operating system: Centos 5.5 x86_64
PHP version:      5.3.3
Package:          ICONV related
Bug Type:         Bug
Bug description:compile problem with iconv

Description:
------------
I'm trying to compile php 5.3.3 with libiconv-1.13.1 and centos 5.5 x86_64
(64-bits)

My configure command is:



./configure  --prefix=/usr/local/php5 --with-libdir=lib64 --enable-bcmath
--with-bz2 --enable-calendar --with-curl
--with-config-file-path=/usr/local/etc/php5/cgi --enable-dba
--with-db4=/usr --enable-exif --with-libexpat-dir=/usr
--with-freetype-dir=/usr --enable-ftp --with-gettext=/usr --with-gd
--enable-gd-native-ttf --with-iconv --enable-inline-optimization
--with-jpeg-dir=/usr --with-kerberos --with-libxml-dir=/usr
--enable-magic-quotes --enable-mbregex --enable-mbstring --with-mcrypt
--with-mhash --with-mysql --with-mysqli
--with-mysql-sock=/var/lib/mysql/mysql.sock --with-openssl-dir=/usr
--with-pdo-mysql --with-pdo-pgsql --with-pear --with-pgsql
--with-png-dir=/usr --with-readline=/usr --enable-soap --enable-sockets
--enable-sqlite-utf8 --with-unixODBC=/usr --enable-wddx --with-xsl
--enable-zip --with-zlib



configure is ok



but when I use 'make' I'm facing with error:



nd_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo
Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo
Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo
Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo
Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo
sapi/cgi/fastcgi.lo main/internal_functions.lo -lcrypt -lz -lexslt -lexpat
-lexpat -lcrypt -lreadline -lncurses -lpq -lrt -lpq -lmysqlclient -lmcrypt
-lltdl -lfreetype -lpng -lz -ljpeg -lssl -lcrypto -ldb-4.3 -lcurl -lbz2 -lz
-lm -ldl -lnsl -lxml2 -lz -lm -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm -lmysqlclient -lz -lcrypt
-lnsl -lm -lssl -lcrypto -lodbc -lmysqlclient -lz -lcrypt -lnsl -lm -lssl
-lcrypto -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz
-lm -lxslt -lxml2 -lz -lm -lcrypt  -o sapi/cgi/php-cgi

ext/gd/libgd/gdkanji.o: In function `do_convert':

/root/src/php-5.3.3/ext/gd/libgd/gdkanji.c:350: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/gd/libgd/gdkanji.c:365: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/gd/libgd/gdkanji.c:381: undefined reference to
`libiconv_close'

ext/iconv/iconv.o: In function `_php_iconv_strlen':

/root/src/php-5.3.3/ext/iconv/iconv.c:592: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:615: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:649: undefined reference to
`libiconv_close'

ext/iconv/iconv.o: In function `php_iconv_string':

/root/src/php-5.3.3/ext/iconv/iconv.c:430: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:442: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:456: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:467: undefined reference to
`libiconv_close'

ext/iconv/iconv.o: In function `_php_iconv_strpos':

/root/src/php-5.3.3/ext/iconv/iconv.c:840: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:868: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:982: undefined reference to
`libiconv_close'

ext/iconv/iconv.o: In function `_php_iconv_appendl':

/root/src/php-5.3.3/ext/iconv/iconv.c:337: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:374: undefined reference to
`libiconv'

ext/iconv/iconv.o: In function `_php_iconv_substr':

/root/src/php-5.3.3/ext/iconv/iconv.c:712: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:736: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:791: undefined reference to
`libiconv_close'

/root/src/php-5.3.3/ext/iconv/iconv.c:795: undefined reference to
`libiconv_close'

/root/src/php-5.3.3/ext/iconv/iconv.c:744: undefined reference to
`libiconv_open'

ext/iconv/iconv.o: In function `_php_iconv_mime_decode':

/root/src/php-5.3.3/ext/iconv/iconv.c:1342: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:1453: undefined reference to
`libiconv_close'

/root/src/php-5.3.3/ext/iconv/iconv.c:1456: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:1811: undefined reference to
`libiconv_close'

/root/src/php-5.3.3/ext/iconv/iconv.c:1814: undefined reference to
`libiconv_close'

ext/iconv/iconv.o: In function `php_iconv_stream_filter_dtor':

/root/src/php-5.3.3/ext/iconv/iconv.c:2440: undefined reference to
`libiconv_close'

ext/iconv/iconv.o: In function `_php_iconv_mime_encode':

/root/src/php-5.3.3/ext/iconv/iconv.c:1032: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:1046: undefined reference to
`libiconv_open'

/root/src/php-5.3.3/ext/iconv/iconv.c:1304: undefined reference to
`libiconv_close'

/root/src/php-5.3.3/ext/iconv/iconv.c:1307: undefined reference to
`libiconv_close'

/root/src/php-5.3.3/ext/iconv/iconv.c:1165: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:1117: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:1149: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:1307: undefined reference to
`libiconv_close'

/root/src/php-5.3.3/ext/iconv/iconv.c:1217: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:1248: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:1291: undefined reference to
`libiconv'

ext/iconv/iconv.o: In function `php_iconv_stream_filter_append_bucket':

/root/src/php-5.3.3/ext/iconv/iconv.c:2590: undefined reference to
`libiconv'

/root/src/php-5.3.3/ext/iconv/iconv.c:2590: undefined reference to
`libiconv'

ext/iconv/iconv.o:/root/src/php-5.3.3/ext/iconv/iconv.c:2512: more
undefined references to `libiconv' follow

ext/iconv/iconv.o: In function `php_iconv_stream_filter_ctor':

/root/src/php-5.3.3/ext/iconv/iconv.c:2466: undefined reference to
`libiconv_open'

collect2: ld returned 1 exit status

make: *** [sapi/cgi/php-cgi] Error 1



Please give a solution to this issue.



Regards,

Parsa


-- 
Edit bug report at http://bugs.php.net/bug.php?id=52611&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52611&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52611&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52611&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52611&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52611&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52611&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52611&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52611&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52611&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52611&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52611&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52611&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52611&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52611&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52611&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52611&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52611&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52611&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52611&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52611&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52611&r=mysqlcfg

Reply via email to