I was unable to upgrade mysql and was told to read the documentation here: http://www.gentoo.org/doc/en/mysql-upgrading.xml I followed all of the steps and once I ran: revdep-rebuild it tried to build php and then failed with the following message: ... checking for sys/wait.h... yes checking for unistd.h... yes checking for unix.h... no checking for utime.h... yes checking for sys/utsname.h... yes checking for sys/ipc.h... yes checking for dlfcn.h... yes checking for fopencookie... yes configure: error: can not run test program while cross compiling !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/php-4.4.0-r4/work/php-4.4.0/config.log !!! ERROR: dev-php/php-4.4.0-r4 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT ... See attached log file Reproducible: Always Steps to Reproduce: 1. Follow the tutorial mentioned 2. emerge php 3. Actual Results: Failed >>> emerge (2 of 2) dev-php/php-4.4.0-r4 to / >>> Downloading http://gentoo.osuosl.org/distfiles/php-pcrelib-new-secpatch.tar.bz2 --17:09:43-- http://gentoo.osuosl.org/distfiles/php-pcrelib-new-secpatch.tar.bz2 => `/usr/portage/distfiles/php-pcrelib-new-secpatch.tar.bz2' Resolving gentoo.osuosl.org... 64.50.238.52, 64.50.236.52 Connecting to gentoo.osuosl.org[64.50.238.52]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 357,619 [application/x-tar] 100%[===================================================================================================>] 357,619 558.13K/s 17:09:44 (557.96 KB/s) - `/usr/portage/distfiles/php-pcrelib-new-secpatch.tar.bz2' saved [357,619/357,619] >>> Downloading http://gentoo.osuosl.org/distfiles/php-4.4.0.tar.bz2 --17:09:44-- http://gentoo.osuosl.org/distfiles/php-4.4.0.tar.bz2 => `/usr/portage/distfiles/php-4.4.0.tar.bz2' Resolving gentoo.osuosl.org... 64.50.236.52, 64.50.238.52 Connecting to gentoo.osuosl.org[64.50.236.52]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4,086,074 [application/x-tar] 100%[===================================================================================================>] 4,086,074 1.99M/s 17:09:46 (1.98 MB/s) - `/usr/portage/distfiles/php-4.4.0.tar.bz2' saved [4,086,074/4,086,074] >>> md5 files ;-) php-4.3.11-r1.ebuild >>> md5 files ;-) php-4.3.11-r3.ebuild >>> md5 files ;-) php-4.3.11-r4.ebuild >>> md5 files ;-) php-4.4.0-r1.ebuild >>> md5 files ;-) php-4.4.0-r3.ebuild >>> md5 files ;-) php-4.3.11.ebuild >>> md5 files ;-) php-4.4.0-r4.ebuild >>> md5 files ;-) php-4.4.0.ebuild >>> md5 files ;-) files/php-4.3.4-amd64hack.diff >>> md5 files ;-) files/php4.3.11-gd_safe_mode.patch >>> md5 files ;-) files/digest-php-4.3.11-r1 >>> md5 files ;-) files/digest-php-4.3.11-r3 >>> md5 files ;-) files/digest-php-4.3.11-r4 >>> md5 files ;-) files/digest-php-4.4.0-r1 >>> md5 files ;-) files/digest-php-4.4.0-r3 >>> md5 files ;-) files/digest-php-4.4.0-r4 >>> md5 files ;-) files/php4.3.11-globals_overwrite.patch >>> md5 files ;-) files/php4.3.11-curl_safemode.patch >>> md5 files ;-) files/php-4.3.11-gmp.patch >>> md5 files ;-) files/digest-php-4.3.11 >>> md5 files ;-) files/php-4.3.11-flash.patch >>> md5 files ;-) files/digest-php-4.4.0 >>> md5 files ;-) files/php4.3.11-fopen_wrappers.patch >>> md5 files ;-) files/php4.3.11-pcre-security.patch >>> md5 files ;-) files/php4.3.11-imap-symlink.diff >>> md5 files ;-) files/php4.3.11-pspell-ext-segf.patch >>> md5 files ;-) files/php4.3.11-phpinfo_xss.patch >>> md5 files ;-) files/php4.3.11-session_save_path-segf.patch >>> md5 files ;-) files/php4.4.0-curl_safemode.patch >>> md5 files ;-) files/php4.4.0-fopen_wrappers.patch >>> md5 files ;-) files/php4.4.0-gd_safe_mode.patch >>> md5 files ;-) files/php4.4.0-globals_overwrite.patch >>> md5 files ;-) files/php4.4.0-imap-symlink.diff >>> md5 files ;-) files/php4.4.0-pcre-security.patch >>> md5 files ;-) files/php4.4.0-phpinfo_xss.patch >>> md5 files ;-) files/php4.4.0-pspell-ext-segf.patch >>> md5 files ;-) files/php4.4.0-session_save_path-segf.patch >>> md5 src_uri ;-) php-4.4.0.tar.bz2 >>> md5 src_uri ;-) php-4.3.6-includepath.diff >>> md5 src_uri ;-) php-pcrelib-new-secpatch.tar.bz2 >>> Unpacking source... * If you have both freetds and mssql in your USE flags, parts of PHP * may not behave correctly, or may give strange warnings. You have * been warned! It's recommended that you pick ONE of them. For sybase * support, chose 'freetds'. For mssql support choose 'mssql'. >>> Unpacking php-4.4.0.tar.bz2 to /var/tmp/portage/php-4.4.0-r4/work * uclibctoolize() is depreciated, please just use elibtoolize()! * Running elibtoolize in: php-4.4.0 * Applying portage-1.4.1.patch ... * Applying sed-1.4.3.patch ... * Applying uclibc-conf-1.2.0.patch ... [ ok ]ing php-4.3.4-amd64hack.diff ... [ ok ]ing php4.4.0-pspell-ext-segf.patch ... [ ok ]ing php4.4.0-gd_safe_mode.patch ... [ ok ]ing php4.4.0-curl_safemode.patch ... [ ok ]ing php4.4.0-globals_overwrite.patch ... [ ok ]ing php4.4.0-phpinfo_xss.patch ... [ ok ]ing php4.4.0-fopen_wrappers.patch ... [ ok ]ing php4.4.0-session_save_path-segf.patch ... >>> Unpacking php-pcrelib-new-secpatch.tar.bz2 to /var/tmp/portage/php-4.4.0-r4/work [ ok ]ing php4.4.0-pcre-security.patch ... * Updating bundled PCRE library >>> Source unpacked. * Enabling NBDM * Enabling DB4 * Using INI file: /etc/php/cli-php4/php.ini * econf: updating php-4.4.0/config.guess with /usr/share/gnuconfig/config.guess * econf: updating php-4.4.0/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=x86_64-pc-linux-gnu --disable-cgi --enable-cli --with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr --without-ming --without-sybase --with-gdbm=/usr --without-java --without-mcal --without-unixODBC --with-pgsql=/usr --with-snmp=/usr --enable-ucd-snmp-hack --without-gmp --without-mssql --without-crack --without-pdflib --with-gd --enable-gd-native-ttf --with-png=/usr --with-png-dir=/usr --with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif --with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-freetype-dir=/usr --with-ttf=/usr --with-t1lib=/usr --with-gettext --with-pspell=/usr --with-openssl=/usr --without-imap --without-ldap --with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --without-kerberos --with-pam --disable-memory-limit --enable-ipv6 --without-yaz --disable-debug --with-curlwrappers --with-curl=/usr --enable-dbx --with-zlib=/usr --with-zlib-dir=/usr --with-sablot=/usr --enable-xslt --with-xslt-sablot --with-xmlrpc --enable-wddx --with-xml --enable-mbstring=all --enable-mbregex --with-bz2=/usr --with-cdb --enable-pcntl --enable-bcmath --enable-calendar --enable-dbase --enable-filepro --enable-ftp --with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-iconv --enable-shmop --enable-dio --enable-yp --with-readline=/usr --with-ncurses=/usr --enable-inline-optimization --enable-track-vars --enable-trans-sid --enable-versioning --with-config-file-path=/etc/php/cli-php4 --libdir=/usr/lib64/php --with-pear=/usr/lib/php creating cache ./config.cache checking host system type... x86_64-pc-linux-gnu Updated main/php_version.h checking for gcc... gcc checking whether the C compiler (gcc -O2 -ltiff -L/usr/lib64) works... yes checking whether the C compiler (gcc -O2 -ltiff -L/usr/lib64) is a cross-compiler... yes checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for re2c... exit 0; checking whether ln -s works... yes checking for gawk... gawk checking for bison... bison -y checking bison version... 1.875 (ok) checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking flex version... 2.5.4 (ok) checking whether byte ordering is bigendian... unknown checking whether to force non-PIC code in shared modules... no checking for pthreads_cflags... checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking for mod_charset compatibility option... no checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... no checking for Caudium support... no checking for CLI build... yes checking for embedded SAPI library support... no checking for Zeus ISAPI support... no checking for NSAPI support... no checking for PHTTPD support... no checking for Pi3Web support... no checking for Roxen/Pike support... no checking for Servlet support... no checking for thttpd... no checking for TUX... no checking for webjames... no checking for CGI build... no checking for chosen SAPI module... cli Running system checks checking for missing declarations of reentrant functions... done checking for sendmail... /usr/sbin/sendmail checking whether system uses EBCDIC... no checking for socket... yes checking for htonl... yes checking for gethostname... yes checking for gethostbyaddr... yes checking for yp_get_default_domain... no checking for __yp_get_default_domain... no checking for yp_get_default_domain in -lnsl... yes checking for dlopen... yes checking for sin in -lm... yes checking for res_search... no checking for __res_search... no checking for res_search in -lresolv... no checking for __res_search in -lresolv... yes checking for res_search in -lbind... no checking for __res_search in -lbind... no checking for res_search in -lsocket... no checking for __res_search in -lsocket... no checking for inet_aton... yes checking for dn_skipname... no checking for __dn_skipname... no checking for dn_skipname in -lresolv... no checking for __dn_skipname in -lresolv... yes checking for dn_skipname in -lbind... no checking for __dn_skipname in -lbind... no checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for fclose declaration... ok checking for inttypes.h... yes checking for stdint.h... yes checking for dirent.h... yes checking for ApplicationServices/ApplicationServices.h... no checking for sys/param.h... yes checking for sys/types.h... yes checking for sys/time.h... yes checking for netinet/in.h... yes checking for alloca.h... yes checking for arpa/inet.h... yes checking for arpa/nameser.h... yes checking for assert.h... yes checking for crypt.h... yes checking for fcntl.h... yes checking for grp.h... yes checking for ieeefp.h... no checking for langinfo.h... yes checking for limits.h... yes checking for locale.h... yes checking for monetary.h... yes checking for mach-o/dyld.h... no checking for netdb.h... yes checking for pwd.h... yes checking for resolv.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdlib.h... yes checking for string.h... yes checking for syslog.h... yes checking for sysexits.h... yes checking for sys/file.h... yes checking for sys/mman.h... yes checking for sys/mount.h... yes checking for sys/poll.h... yes checking for sys/resource.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/statfs.h... yes checking for sys/statvfs.h... yes checking for sys/vfs.h... yes checking for sys/sysexits.h... no checking for sys/varargs.h... no checking for sys/wait.h... yes checking for unistd.h... yes checking for unix.h... no checking for utime.h... yes checking for sys/utsname.h... yes checking for sys/ipc.h... yes checking for dlfcn.h... yes checking for fopencookie... yes configure: error: can not run test program while cross compiling !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/php-4.4.0-r4/work/php-4.4.0/config.log !!! ERROR: dev-php/php-4.4.0-r4 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message.
Created attachment 74408 [details] The log file here is the file that I was told to include when getting support...
revdep-rebuild --library libmysqlclient.so.12
I tried to run the suggested command and received more errors. # revdep-rebuild --library libmysqlclient.so.12 Apparently the --library flag is not supported in the version of emerge that I am running. I realized that I had the libmysqlclient.so.14 module but not the libmysqlclient.so.12. So I did the following and everything compiled just fine. ln -s /usr/lib64/libmysqlclient.so.14 /usr/lib64/libmysqlclient.so.12 I got everything running just fine. Thanks for the help...
(In reply to comment #3) > So I did the following and everything compiled just fine. > > ln -s /usr/lib64/libmysqlclient.so.14 /usr/lib64/libmysqlclient.so.12 > > I got everything running just fine. Ugh, that's extreme evil! Those libs are not compatible! Remove the symlink and run 'revdep-rebuild --soname libmysqlclient.so.12' (or upgrade gentoolkit so that --library works, or just read the help next time before resorting to workarounds broken by design).