Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78677 - mod php 4.3.10 failed to compile when running "./configure"
Summary: mod php 4.3.10 failed to compile when running "./configure"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on: 78678
Blocks:
  Show dependency tree
 
Reported: 2005-01-19 06:26 UTC by Nicolas Steinmetz
Modified: 2005-01-21 15:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Steinmetz 2005-01-19 06:26:54 UTC
With last stable version of Apache2 & PHP & MySQL

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... 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 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/bitypes.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

!!! ERROR: dev-php/mod_php-4.3.10 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

What forced me to reinstall apache / php /mysql was that next to mysql upgrade, apache failed to start because of an error with libmysqlclient.so in 

Reproducible: Always
Steps to Reproduce:
1.emerge apache mysql php mod_php
2.
3.

Actual Results:  
Failed to (re)install PHP :-(

Expected Results:  
Nice install from php and mod_php ;-)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-01-19 07:16:52 UTC
Nicolas, see Bug 78678
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-20 15:02:39 UTC
attach your config.log
Comment 3 Nicolas Steinmetz 2005-01-20 22:38:39 UTC
No config.log found and as it was linked to bug 78678 - it's now solved... :)
Comment 4 Sebastian Redl 2005-01-21 09:17:47 UTC
Nevertheless, this bug remains: PHP 4.3.10 refuses to compile if the compiler is determined to be a cross compiler (which, for some reason, it always is on my system).
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-21 15:36:39 UTC
Sebastian Redl: that's PHP not generating the correct error message as usual. Attach your config.log as originally requested.
Comment 6 Sebastian Redl 2005-01-21 15:50:14 UTC
Never mind, I figured the problem out.

My problem was that the simple test program created to test the compiler already linked against libxmlparse, which in turn required libmysqlclient.so.12, but as I recently upgraded to 4.1, I only had 14. So running the program failed and configure thought it was dealing with a cross compiler.

My fault for not running revdep-rebuild earlier.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-21 15:52:01 UTC
closing as invalid thanks to responses from users.