Hi, emerge mod_php 4.3.2 exit with this error: "can not run test program while cross compiling". This is a 17723 bug clone? I alto tested it with USE="-qt -libwww -java" The output for emerge -v mod_php is: +X -cjk +crypt +curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix +java +jpeg +ldap -mcal +mysql +nls -oci8 -odbc +pam +pdflib -memlimit +png +postgres -qt -snmp +spell +ssl +tiff +truetype +xml2 -apache2 I use mysql 4.0.12.
Hi, I had this bug recently. In my case, the error message from configure was totally misleading. Can you look in /var/tmp/portage/mod_php-4.3.2/work/, and find the config.log file? If you attach it to this bug, it'll help show what the real problem is. Thanks, Stu --
Created attachment 14037 [details] config.log
Hi, this is my config.log. It seems a mysql problem... Thanks
You did NOT rebuild your system properly after you upgraded to mysql4 from mysql3. "emerge gentoolkit" then run "revdep-rebuild" and it will emerge stuff to fix the libraries.
revdep-rebuild didn't catch that this was in fact libwww needing to be rebuilt after the mysql upgrade. Just noting this just in case other people encounter it.
Edward Roper: gentoolkit-0.1.30 does catch libwww needed to be upgraded first.
*** Bug 24624 has been marked as a duplicate of this bug. ***
*** Bug 24653 has been marked as a duplicate of this bug. ***
*** Bug 24679 has been marked as a duplicate of this bug. ***
*** Bug 24689 has been marked as a duplicate of this bug. ***
*** Bug 24966 has been marked as a duplicate of this bug. ***
*** Bug 25363 has been marked as a duplicate of this bug. ***
*** Bug 25505 has been marked as a duplicate of this bug. ***
*** Bug 25496 has been marked as a duplicate of this bug. ***
I noticed that sometimes a `revdep-rebuild` aint enough, you need to `emerge libwww` again in some cases.
*** Bug 26335 has been marked as a duplicate of this bug. ***
*** Bug 28613 has been marked as a duplicate of this bug. ***
*** Bug 28611 has been marked as a duplicate of this bug. ***
*** Bug 29769 has been marked as a duplicate of this bug. ***
"I noticed that sometimes a `revdep-rebuild` aint enough, you need to `emerge libwww` again in some cases."
You might try running 'ldcheck', found at http://ldcheck.sourceforge.net. I wrote it specifically to find these problems. The cause is most likely the fact that upgrading from MySQL 3.x to 4.x broke libwww, which php & mod_php depend on. My tool would tell you all packages that have broken dependancies.
after emerge of mysql-4.1.12 revdep-rebuild does NOT report any broken packages (that it didnt report before). manual (re)emerge of libwww is neccessary. maybe this should be a warning in the mysql ebuild ?
I updated to mysql-4.1.14 from 4.0.25 today, which caused mod_php to think I was using a cross compiler. Manually emerging the latest version of libwww fixed it so that my revdep would compile mod_php.