Tried emerging mod_php on my stable system and it failed with a reference to libiconv, which should be part of glibc. Reproducible: Always Steps to Reproduce: 1. emerge mod_php Actual Results: : undefined reference to `libiconv_open' ext/iconv/iconv.lo(.text+0xa09): In function `php_iconv_string': : undefined reference to `libiconv' ext/iconv/iconv.lo(.text+0xa3b): In function `php_iconv_string': : undefined reference to `libiconv' ext/iconv/iconv.lo(.text+0xa5f): In function `php_iconv_string': : undefined reference to `libiconv_close' ext/xmlrpc/libxmlrpc/encodings.lo(.text+0xf2): In function `convert': : undefined reference to `libiconv_open' ext/xmlrpc/libxmlrpc/encodings.lo(.text+0x163): In function `convert': : undefined reference to `libiconv' ext/xmlrpc/libxmlrpc/encodings.lo(.text+0x178): In function `convert': : undefined reference to `libiconv_close' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/mod_php-4.3.2 failed. !!! Function php_src_compile, Line 330, Exitcode 2 !!! compile problem Expected Results: Should install.
Could you please attach the ENTIRE output of the 'emerge mod_php' operation, as well as 'emerge info'. Also attach the relevant /var/log/mod_php-*/work/php-*/config.log file. the iconv functions are part of glibc, but there is no 'libiconv' (the name is a relic from really old glibcs, not found in modern releases).
*** Bug 23415 has been marked as a duplicate of this bug. ***
For the person with the duplicate bug, could you please follow the instructions here and post up the required data, as the previous submitted didn't.
I can't give you the configlog. The dir isn't there simply. I run syslog-ng, may be that has something to do with it. Anyway: Emerge info: Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.21 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm gtk imlib jpeg kde gno me libg++ mikmod mmx motif mpeg ncurses nls oggvorbis opengl pdflib png quicktim e sdl slang spell svga truetype xml2 xmms xv zlib gdbm berkdb readline tetex tcp d pam libwww ssl perl python esd snmp -X -qt -java mysql gd imap" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe" CXXFLAGS="-march=pentium4 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
whoops, my bad, I typod the directory /var/tmp/portage/mod_php-*/work/php-*/config.log /var/tmp/portage/php-*/work/php-*/config.log I would also like the entire output of the emerge command. I recommend doing it as : "emerge PACKAGENAME 2>&1 | tee outputfile"
Created attachment 13805 [details] Config.log Config.log here
Created attachment 13806 [details] Emerge log Emerge log
I've been trying to get a new log file genterated but the current ebuild insists on installing apache 1.x even tho I have apache2 installed and the apache2 USE flag.
Eric: Please post your 'emerge info' output and try the latest 4.3.2-r2 of mod_php. 4.3.2-r2 is intended for Apache2 users at present. Frank: I'm wondering where the 'libiconv' is coming from. Could you please do: cd / grep -ril 'libiconv' * > OUTPUTFILE And attach that output here? Also, your previous capture didn't include the error that you got, it stopped just before that. so let's try that part again as well ( emerge mod_php 2>&1 3>&1 4&>1 ) 2>&1 3>&1 4&>1 | tee LOGFILE
i/apache/php_apache.c -o sapi/apache/php_apache.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Imain/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c main/internal_functions.c -o main/internal_functions.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Isapi/cli/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/sapi/cli/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Isapi/cli/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/sapi/cli/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/sapi/cli/getopt.c -o sapi/cli/getopt.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Imain/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c main/internal_functions_cli.c -o main/internal_functions_cli.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=link gcc -march=pentium4 -O3 -pipe -prefer-pic -rpath /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libs -export-symbols /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/sapi/apache/php.sym -avoid-version -module ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo ext/bcmath/number.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/crack/crack.lo ext/ctype/ctype.lo ext/dba/dba.lo ext/dba/dba_cdb.lo ext/dba/dba_db2.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo ext/dba/dba_flatfile.lo ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo ext/dbase/dbf_head.lo ext/dbase/dbf_rec.lo ext/dbase/dbf_misc.lo ext/dbase/dbf_ndx.lo ext/dbase/dbase.lo ext/dbx/dbx.lo ext/dbx/dbx_mysql.lo ext/dbx/dbx_odbc.lo ext/dbx/dbx_pgsql.lo ext/dbx/dbx_mssql.lo ext/dbx/dbx_fbsql.lo ext/dbx/dbx_oci8.lo ext/dbx/dbx_sybasect.lo ext/dio/dio.lo ext/domxml/php_domxml.lo ext/exif/exif.lo ext/filepro/filepro.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gettext/gettext.lo ext/iconv/iconv.lo ext/imap/php_imap.lo ext/mcrypt/mcrypt.lo ext/mhash/mhash.lo ext/mime_magic/mime_magic.lo ext/mysql/php_mysql.lo ext/openssl/openssl.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/pdf/pdf.lo ext/posix/posix.lo ext/pspell/pspell.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/snmp/snmp.lo ext/sockets/sockets.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/wddx/wddx.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo ext/xmlrpc/xmlrpc-epi-php.lo ext/xmlrpc/libxmlrpc/base64.lo ext/xmlrpc/libxmlrpc/simplestring.lo ext/xmlrpc/libxmlrpc/xml_to_dandarpc.lo ext/xmlrpc/libxmlrpc/xmlrpc_introspection.lo ext/xmlrpc/libxmlrpc/encodings.lo ext/xmlrpc/libxmlrpc/system_methods.lo ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.lo ext/xmlrpc/libxmlrpc/queue.lo ext/xmlrpc/libxmlrpc/xml_element.lo ext/xmlrpc/libxmlrpc/xmlrpc.lo ext/xmlrpc/libxmlrpc/xml_to_soap.lo ext/xslt/xslt.lo ext/xslt/sablot.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/apache/sapi_apache.lo sapi/apache/mod_php4.lo sapi/apache/php_apache.lo main/internal_functions.lo -lcrypt -lc-client -lssl -lcrypto -lsablot -lexpat -lexpat -lcrypt -lpspell -lpdf -lz -lpng -ljpeg -lmysqlclient -lmhash -lmcrypt -lltdl -lcrypt -lpam -lxsltbreakpoint -lxml2 -lxslt -lz -lndbm -lgdbm -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lnsl -lxmlparse -lxmltok -lxml2 -lz -lm -lnetsnmp -lcrypto -lm -lcrypt -lcrypt -o libphp4.la /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -march=pentium4 -O3 -pipe -export-symbols /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/sapi/apache/php.sym -avoid-version -module ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo ext/bcmath/number.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/crack/crack.lo ext/ctype/ctype.lo ext/dba/dba.lo ext/dba/dba_cdb.lo ext/dba/dba_db2.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo ext/dba/dba_flatfile.lo ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo ext/dbase/dbf_head.lo ext/dbase/dbf_rec.lo ext/dbase/dbf_misc.lo ext/dbase/dbf_ndx.lo ext/dbase/dbase.lo ext/dbx/dbx.lo ext/dbx/dbx_mysql.lo ext/dbx/dbx_odbc.lo ext/dbx/dbx_pgsql.lo ext/dbx/dbx_mssql.lo ext/dbx/dbx_fbsql.lo ext/dbx/dbx_oci8.lo ext/dbx/dbx_sybasect.lo ext/dio/dio.lo ext/domxml/php_domxml.lo ext/exif/exif.lo ext/filepro/filepro.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gettext/gettext.lo ext/iconv/iconv.lo ext/imap/php_imap.lo ext/mcrypt/mcrypt.lo ext/mhash/mhash.lo ext/mime_magic/mime_magic.lo ext/mysql/php_mysql.lo ext/openssl/openssl.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/pdf/pdf.lo ext/posix/posix.lo ext/pspell/pspell.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/snmp/snmp.lo ext/sockets/sockets.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/wddx/wddx.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo ext/xmlrpc/xmlrpc-epi-php.lo ext/xmlrpc/libxmlrpc/base64.lo ext/xmlrpc/libxmlrpc/simplestring.lo ext/xmlrpc/libxmlrpc/xml_to_dandarpc.lo ext/xmlrpc/libxmlrpc/xmlrpc_introspection.lo ext/xmlrpc/libxmlrpc/encodings.lo ext/xmlrpc/libxmlrpc/system_methods.lo ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.lo ext/xmlrpc/libxmlrpc/queue.lo ext/xmlrpc/libxmlrpc/xml_element.lo ext/xmlrpc/libxmlrpc/xmlrpc.lo ext/xmlrpc/libxmlrpc/xml_to_soap.lo ext/xslt/xslt.lo ext/xslt/sablot.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lc-client -lssl -lcrypto -lsablot -lexpat -lexpat -lcrypt -lpspell -lpdf -lz -lpng -ljpeg -lmysqlclient -lmhash -lmcrypt -lltdl -lcrypt -lpam -lxsltbreakpoint -lxml2 -lxslt -lz -lndbm -lgdbm -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lnsl -lxmlparse -lxmltok -lxml2 -lz -lm -lnetsnmp -lcrypto -lm -lcrypt -lcrypt -o sapi/cli/php /usr/lib/libc-client.a(osdep.o)(.text+0x9b48): In function `ssl_onceonlyinit': /var/tmp/portage/uw-imap-2002d/work/imap-2002d/c-client/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp' ext/iconv/iconv.lo(.text+0x974): In function `php_iconv_string': : undefined reference to `libiconv_open' ext/iconv/iconv.lo(.text+0x9c3): In function `php_iconv_string': : undefined reference to `libiconv' ext/iconv/iconv.lo(.text+0x9f7): In function `php_iconv_string': : undefined reference to `libiconv' ext/iconv/iconv.lo(.text+0xa1b): In function `php_iconv_string': : undefined reference to `libiconv_close' ext/xmlrpc/libxmlrpc/encodings.lo(.text+0xdc): In function `convert': : undefined reference to `libiconv_open' ext/xmlrpc/libxmlrpc/encodings.lo(.text+0x14c): In function `convert': : undefined reference to `libiconv' ext/xmlrpc/libxmlrpc/encodings.lo(.text+0x163): In function `convert': : undefined reference to `libiconv_close' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/mod_php-4.3.2 failed. !!! Function php_src_compile, Line 342, Exitcode 2 !!! compile problem That's all I can give you. The other question gave me this: grep -ril 'libiconv' * > OUTPUTFILE grep: warning: boot/boot: recursive directory loop grep: dev/.devfsd: Operation not permitted
Created attachment 13848 [details] emerge info results Attached my emerge info results. Tried the mod_php-4.3.2-r2 and it failed with the same compile error.
Frank/Eric: could both of you please search your systems for any reference to libiconv? ( for i in `find / \( -name '*.so' -o -name '*.a' -o -perm +111 \) -xtype f`; do echo FIND:$i 1>&2 nm $i |grep -i libiconv done; ) 2>&1 3>&1 4>&1 | tee outputfile and attach that outputfile ? I want to find where libiconv is being pulled in from.
That command does not work: -bash: syntax error near unexpected token `)'
It works fine for me Frank. I suspect you may have left off the '(' at the start of the first line. Just copy and paste all 4 lines to a terminal.
The only references that nm can find on my system is in /usr/lib/libaprutil-0.so, /usr/lib/libaprutil-0.a, and /usr/lib/libiconv.so. It seems that most of my symbols are stripped on this box. I didn't ever expect to be debuging on this box. I was looking throught the /ext/iconv/iconv.c and I found a reference to if glibc is found then include gnu/libc-version.h, but libc-version.h nor the features.h it includes has any reference to any of the libiconv functions. Don't know if it'd be anything to do with the glibc-2.3.1-r4 that is installed on this box? Don't know if that helps at all or if I'm even on the right track.
Whoa. /usr/lib/libiconv.so should not be there. could you please do: emerge -u gentoolkit qpkg -f /usr/lib/libiconv.so that should show what package it belongs to. could you paste up that answer here, and then also do: "emerge -p PACKAGENAME" with the package name that qpkg gave you?
Tychon root # emerge -u gentoolkit Calculating dependencies ...done! >>> Recording app-admin/gentoolkit in "world" favorites file... >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. Tychon root # Tychon root # qpkg -f /usr/lib/libiconv.so dev-libs/libiconv * Tychon root # emerge -p libiconv These are the packages that I would merge, in order: Calculating dependencies !!! all ebuilds that could satisfy "libiconv" have been masked. !!! Error calculating dependencies. Please correct. Tychon root #
Both of you, "emerge unmerge libiconv" emerge mod_php
/bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dba/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/libcdb/cdb.c -o ext/dba/libcdb/cdb.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dba/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/libcdb/cdb_make.c -o ext/dba/libcdb/cdb_make.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dba/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/libcdb/uint32.c -o ext/dba/libcdb/uint32.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dba/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dba/libflatfile/flatfile.c -o ext/dba/libflatfile/flatfile.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbase/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/dbf_head.c -o ext/dbase/dbf_head.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbase/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/dbf_rec.c -o ext/dbase/dbf_rec.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbase/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/dbf_misc.c -o ext/dbase/dbf_misc.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbase/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/dbf_ndx.c -o ext/dbase/dbf_ndx.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbase/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbase/dbase.c -o ext/dbase/dbase.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx.c -o ext/dbx/dbx.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx_mysql.c -o ext/dbx/dbx_mysql.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx_odbc.c -o ext/dbx/dbx_odbc.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx_pgsql.c -o ext/dbx/dbx_pgsql.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx_mssql.c -o ext/dbx/dbx_mssql.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx_fbsql.c -o ext/dbx/dbx_fbsql.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx_oci8.c -o ext/dbx/dbx_oci8.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dbx/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dbx/dbx_sybasect.c -o ext/dbx/dbx_sybasect.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dio/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dio/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/dio/dio.c -o ext/dio/dio.lo /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/domxml/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/domxml/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/domxml/php_domxml.c -o ext/domxml/php_domxml.lo In file included from /usr/include/libxml2/libxml/parser.h:649, from /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/domxml/php_domxml.h:25, from /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/domxml/php_domxml.c:33: /usr/include/libxml2/libxml/encoding.h:27:19: iconv.h: No such file or directory In file included from /usr/include/libxml2/libxml/parser.h:649, from /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/domxml/php_domxml.h:25, from /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/domxml/php_domxml.c:33: /usr/include/libxml2/libxml/encoding.h:132: parse error before "iconv_t" /usr/include/libxml2/libxml/encoding.h:132: warning: no semicolon at end of struct or union /usr/include/libxml2/libxml/encoding.h:133: warning: data definition has no type or storage class /bin/sh /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/exif/ -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/exif/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/include -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/main -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2 -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/TSRM -march=pentium4 -O3 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.2/work/php-4.3.2/ext/exif/exif.c -o ext/exif/exif.lo make: *** [ext/domxml/php_domxml.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/mod_php-4.3.2 failed. !!! Function php_src_compile, Line 342, Exitcode 2 !!! compile problem
You're not going to like me, but since dev-libs/libiconv overwrote parts of glibc, you'll have to reinstall glibc. You might be able to get away with "emerge -k glibc" but if that fails it's a full "emerge glibc" you need.
Well, can you tell me the risks of doing that. This is a production machine so I hope you understand I can not permit any downtime. Thnx in advance :)
run 'emerge -pk sys-libs/glibc' if you get output like this: "[binary R ] sys-libs/glibc-2.3.2-r1" If it wants to upgrade you, then try: emerge -pk '=sys-libs/glibc-YOURCURRENTVERSION' If you have binary as the first keyword, then it's good so far. If it is 'ebuild', then run: 'emerge -B sys-libs/glibc' (you might need to specify the version again). At the first available chance, then do: "emerge -K sys-libs/glibc" (again with your version specified if you need it). Depending how your system is set up, and how fast it is, the window for things not working quite right is a few seconds, and should only affect new processes from spawning correctly. Again, depending how the system is set up, the unmerge command might be causing problems already, so doing this very soon is advisable. dev-libs/libiconv should have never made it to the tree, due to the problems it causes with other programs (including gnome-vfs and evolution).
I can't find what installed libiconv. I grepped all of hte /usr/portage and my /var/db/pkg and nothing comes up. What ever I installed that pulled it as a depencancy is no longer on my system.
Eric: either way, unmerge libiconv and then mod_php should emerge fine.
Uninstalled libiconv, re-emerged glibc, and emerged mod_php. It worked. I just usally like to find out why it happened so I can avoid it next time. But this one looks like a mystery.
That did it :) Great
Resolved.
Verified by users.
Closing (very) old bug.