Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86107 - mod_php 4.3.10 fails to build (as does 4.3.10-r1), dies on config with cross compiling error.
Summary: mod_php 4.3.10 fails to build (as does 4.3.10-r1), dies on config with cross ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 96566 106159 107007 110724 110792 113469 116263 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-21 02:34 UTC by Vrai Stacey
Modified: 2005-12-21 04:02 UTC (History)
7 users (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 Vrai Stacey 2005-03-21 02:34:48 UTC
I've been unable to emerge mod_php 4.3.10 (and 4.3.10-r1) - it always fails during the config stage whilst running the system checks:

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

I think the problem is related to a missing unix.h file - but don't know enough about automake/autoconf to figure out what it's looking for.


Reproducible: Always
Steps to Reproduce:
1. sudo emerge mod_php




Content of /var/tmp/portage/mod_php-4.3.10/work/php-4.3.10/config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1638: checking host system type
configure:1726: checking for gcc
configure:1839: checking whether the C compiler (gcc -O2 -mcpu=i686
-fomit-frame-pointer -march=athlon-xp -pipe  -L/usr/X11R6/lib -ltiff -L/usr/lib)
works
configure:1855: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:1881: checking whether the C compiler (gcc -O2 -mcpu=i686
-fomit-frame-pointer -march=athlon-xp -pipe  -L/usr/X11R6/lib -ltiff -L/usr/lib)
is a cross-compiler
configure:1886: checking whether we are using GNU C
configure:1895: gcc -E conftest.c
configure:1914: checking whether gcc accepts -g
configure:1947: checking whether gcc and cc understand -c and -o together
configure:1962: gcc -c conftest.c -o conftest.o 1>&5
configure:1963: gcc -c conftest.c -o conftest.o 1>&5
configure:1968: cc -c conftest.c 1>&5
configure:1970: cc -c conftest.c -o conftest.o 1>&5
configure:1971: cc -c conftest.c -o conftest.o 1>&5
configure:1998: checking how to run the C preprocessor
configure:2019: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2079: checking for AIX
configure:2106: checking if compiler supports -R
configure:2121: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -R
/usr/lib  -lxmlparse -lxmltok 1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 2114 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:2139: checking if compiler supports -Wl,-rpath,
configure:2154: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c
-Wl,-rpath,/usr/lib  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:2180: checking for re2c
configure:2211: checking for ranlib
configure:2239: checking whether ln -s works
configure:2264: checking for mawk
configure:2264: checking for gawk
configure:2298: checking for bison
configure:2332: checking bison version
configure:2342: checking for flex
configure:2376: checking for yywrap in -lfl
configure:2395: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lfl  
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:2419: checking lex output file root
configure:2440: checking whether yytext is a pointer
configure:2459: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok -lfl 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:2483: checking for working const
configure:2537: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:2562: checking flex version
configure:2726: checking for pthreads_cflags
configure:2789: checking for pthreads_lib
configure:2915: checking for AOLserver support
configure:3135: checking for Apache 1.x module support via DSO through APXS
configure:3418: checking for Apache 1.x module support
configure:4199: checking for member fd in BUFF *
configure:4218: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe   conftest.c 1>&5
configure:4212:19: httpd.h: No such file or directory
configure: In function `main':
configure:4214: error: `conn_rec' undeclared (first use in this function)
configure:4214: error: (Each undeclared identifier is reported only once
configure:4214: error: for each function it appears in.)
configure:4214: error: `c' undeclared (first use in this function)
configure: failed program was:
#line 4211 "configure"
#include "confdefs.h"
#include <httpd.h>
int main() {
conn_rec *c; int fd = c->client->fd;
; return 0; }
configure:4242: checking for mod_charset compatibility option
configure:4309: checking for Apache 2.0 filter-module support via DSO through APXS
configure:5051: checking for Apache 2.0 handler-module support via DSO through APXS
configure:5794: checking for Caudium support
configure:6104: checking for CLI build
configure:6164: checking for embedded SAPI library support
configure:6347: checking for Zeus ISAPI support
configure:6557: checking for NSAPI support
configure:6878: checking for PHTTPD support
configure:7087: checking for Pi3Web support
configure:7396: checking for Roxen/Pike support
configure:7645: checking for Servlet support
configure:8123: checking for thttpd
configure:8329: checking for TUX
configure:8543: checking for webjames
configure:8944: checking for chosen SAPI module
configure:9849: checking for missing declarations of reentrant functions
configure:9858: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:9883: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:9908: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:9933: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:9958: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:9982: checking for sendmail
configure:10023: checking whether system uses EBCDIC
configure:10116: checking for socket
configure:10144: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:10373: checking for htonl
configure:10401: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:10630: checking for gethostname
configure:10658: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:10887: checking for gethostbyaddr
configure:10915: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:11144: checking for yp_get_default_domain
configure:11172: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
/var/tmp/portage/mod_php-4.3.10/temp/ccCWiv5e.o(.text+0xa): In function `main':
: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 11149 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char yp_get_default_domain(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_yp_get_default_domain) || defined
(__stub___yp_get_default_domain)
choke me
#else
yp_get_default_domain();
#endif

; return 0; }
configure:11190: checking for __yp_get_default_domain
configure:11218: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
/var/tmp/portage/mod_php-4.3.10/temp/ccBynPot.o(.text+0xa): In function `main':
: undefined reference to `__yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 11195 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __yp_get_default_domain(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___yp_get_default_domain) || defined
(__stub_____yp_get_default_domain)
choke me
#else
__yp_get_default_domain();
#endif

; return 0; }
configure:11256: checking for yp_get_default_domain in -lnsl
configure:11275: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lnsl  
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:11402: checking for dlopen
configure:11430: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:11660: checking for sin in -lm
configure:11679: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lm  
-lxmlparse -lxmltok 1>&5
configure:11672: warning: conflicting types for built-in function `sin'
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:11713: checking for res_search
configure:11741: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lm 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
/var/tmp/portage/mod_php-4.3.10/temp/cchDOXrf.o(.text+0xa): In function `main':
: undefined reference to `res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 11718 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char res_search(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char res_search();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_res_search) || defined (__stub___res_search)
choke me
#else
res_search();
#endif

; return 0; }
configure:11759: checking for __res_search
configure:11787: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lm 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
/var/tmp/portage/mod_php-4.3.10/temp/ccA4g3pt.o(.text+0xa): In function `main':
: undefined reference to `__res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 11764 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __res_search(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __res_search();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___res_search) || defined (__stub_____res_search)
choke me
#else
__res_search();
#endif

; return 0; }
configure:11825: checking for res_search in -lresolv
configure:11844: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lresolv
 -lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:11961: checking for res_search in -lbind
configure:11980: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lbind 
-lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 11969 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char res_search();

int main() {
res_search()
; return 0; }
configure:12000: checking for __res_search in -lbind
configure:12019: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lbind 
-lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 12008 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __res_search();

int main() {
__res_search()
; return 0; }
configure:12097: checking for res_search in -lsocket
configure:12116: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lsocket
 -lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -lsocket
collect2: ld returned 1 exit status
configure: failed program was:
#line 12105 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char res_search();

int main() {
res_search()
; return 0; }
configure:12136: checking for __res_search in -lsocket
configure:12155: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lsocket
 -lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -lsocket
collect2: ld returned 1 exit status
configure: failed program was:
#line 12144 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __res_search();

int main() {
__res_search()
; return 0; }
configure:12249: checking for inet_aton
configure:12277: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lm 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:12645: checking for dn_skipname
configure:12673: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lm 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
/var/tmp/portage/mod_php-4.3.10/temp/cc4F4JKg.o(.text+0xa): In function `main':
: undefined reference to `dn_skipname'
collect2: ld returned 1 exit status
configure: failed program was:
#line 12650 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dn_skipname(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dn_skipname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dn_skipname) || defined (__stub___dn_skipname)
choke me
#else
dn_skipname();
#endif

; return 0; }
configure:12691: checking for __dn_skipname
configure:12719: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lm 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
/var/tmp/portage/mod_php-4.3.10/temp/ccfWVsCu.o(.text+0xa): In function `main':
: undefined reference to `__dn_skipname'
collect2: ld returned 1 exit status
configure: failed program was:
#line 12696 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __dn_skipname(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __dn_skipname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___dn_skipname) || defined (__stub_____dn_skipname)
choke me
#else
__dn_skipname();
#endif

; return 0; }
configure:12757: checking for dn_skipname in -lresolv
configure:12776: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lresolv
 -lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
/var/tmp/portage/mod_php-4.3.10/temp/ccvaXpKI.o(.text+0xa): In function `main':
: undefined reference to `dn_skipname'
collect2: ld returned 1 exit status
configure: failed program was:
#line 12765 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dn_skipname();

int main() {
dn_skipname()
; return 0; }
configure:12796: checking for __dn_skipname in -lresolv
configure:12815: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lresolv
 -lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:12893: checking for dn_skipname in -lbind
configure:12912: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lbind 
-lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 12901 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dn_skipname();

int main() {
dn_skipname()
; return 0; }
configure:12932: checking for __dn_skipname in -lbind
configure:12951: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lbind 
-lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 12940 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __dn_skipname();

int main() {
__dn_skipname()
; return 0; }
configure:13039: checking for ANSI C header files
configure:13052: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13147: checking for dirent.h that defines DIR
configure:13160: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:13185: checking for opendir in -ldir
configure:13204: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -ldir 
-lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -ldir
collect2: ld returned 1 exit status
configure: failed program was:
#line 13193 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
configure:13270: checking for fclose declaration
configure:13279: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5
configure:13355: checking for dirent.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for ApplicationServices/ApplicationServices.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13361:53: ApplicationServices/ApplicationServices.h: No such file or
directory
configure: failed program was:
#line 13360 "configure"
#include "confdefs.h"
#include <ApplicationServices/ApplicationServices.h>
configure:13355: checking for sys/param.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/types.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/time.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for netinet/in.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for alloca.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for arpa/inet.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for arpa/nameser.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for assert.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for crypt.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for fcntl.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for grp.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for ieeefp.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13361:20: ieeefp.h: No such file or directory
configure: failed program was:
#line 13360 "configure"
#include "confdefs.h"
#include <ieeefp.h>
configure:13355: checking for langinfo.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for limits.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for locale.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for monetary.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for mach-o/dyld.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13361:25: mach-o/dyld.h: No such file or directory
configure: failed program was:
#line 13360 "configure"
#include "confdefs.h"
#include <mach-o/dyld.h>
configure:13355: checking for netdb.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for pwd.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for resolv.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for signal.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for stdarg.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for stdlib.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for string.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for syslog.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sysexits.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/bitypes.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/file.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/mman.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/mount.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/poll.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/resource.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/select.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/socket.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/statfs.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/statvfs.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/vfs.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/sysexits.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13361:26: sys/sysexits.h: No such file or directory
configure: failed program was:
#line 13360 "configure"
#include "confdefs.h"
#include <sys/sysexits.h>
configure:13355: checking for sys/varargs.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13361:25: sys/varargs.h: No such file or directory
configure: failed program was:
#line 13360 "configure"
#include "confdefs.h"
#include <sys/varargs.h>
configure:13355: checking for sys/wait.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for unistd.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for unix.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13361:18: unix.h: No such file or directory
configure: failed program was:
#line 13360 "configure"
#include "confdefs.h"
#include <unix.h>
configure:13355: checking for utime.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/utsname.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for sys/ipc.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13355: checking for dlfcn.h
configure:13365: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13394: checking for fopencookie
configure:13422: gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer
-march=athlon-xp -pipe   -L/usr/X11R6/lib -ltiff -L/usr/lib conftest.c -lm 
-lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld:
warning: libmysqlclient.12, needed by /usr/X11R6/lib/libxmlparse.so, not found
(try using -rpath or -rpath-link)
configure:13453: gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp
-pipe  conftest.c 1>&5



Output from emerge info mod_php:

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.7-gentoo-r12 i686)
=================================================================
System uname: 2.6.7-gentoo-r12 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 13:54:08)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aac aalib alsa apache2 apm arts avi berkdb bitmap-fonts
bonobo cdr crypt cups curl dba directfb dvd emboss encode esd fam flac flash
font-server foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml
guile imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod mmx
mmx2 motif mp3 mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl php
png python qt quicktime readline samba scanner sdl slang spell sse ssl svga
tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-21 08:38:03 UTC
your libs are broken (possibly xmlparse and mysql)
use revdep-rebuild to find and fix them.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-20 00:46:45 UTC
*** Bug 96566 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-16 02:07:55 UTC
*** Bug 106159 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-23 12:15:46 UTC
*** Bug 107007 has been marked as a duplicate of this bug. ***
Comment 5 Torsten Kaiser 2005-10-20 14:37:25 UTC
I just had the same problem as Bug 107007, but I did run revdep-rebuild after
the mysql upgrade. It only complained about openoffices private python, but no
other errors.

But I still got the 'can not run test program while cross compiling' error, as
the repoter of this bug and Bug 107007

In the config.log I found:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: libmysqlclient.so.12, needed by /usr/X11R6/lib/libxmlparse.so, not
found (try using -rpath or -rpath-link)

Trying to determine, what went wrong I got these results:

bardioc php-4.4.0 # locate libxmlparse.so
/usr/lib/libxmlparse.so.0
/usr/lib/libxmlparse.so
/usr/lib/libxmlparse.so.0.1.0
bardioc php-4.4.0 # equery belongs /usr/lib/libxmlparse.so
[ Searching for file(s) /usr/lib/libxmlparse.so in *... ]
bardioc php-4.4.0 # equery belongs /usr/X11R6/lib/libxmlparse.so
[ Searching for file(s) /usr/X11R6/lib/libxmlparse.so in *... ]
bardioc php-4.4.0 # equery belongs /usr/lib64/libxmlparse.so
[ Searching for file(s) /usr/lib64/libxmlparse.so in *... ]
net-libs/libwww-5.4.0-r3 (/usr/lib64/libxmlparse.so -> libxmlparse.so.0.1.0)

Is revdep-rebuild broken on AMD64, because of the symlinks /usr/lib64 -> lib and
/usr/X11R6 -> ../usr ?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-10-22 10:43:10 UTC
(In reply to comment #5)

People, stop posting to an INVALID bug closed ages ago. Everyone with this
problem needs to run revdep-rebuild and/or revdep-rebuild
--library="libmysqlclient.so.12" to fix the problem.
Comment 7 Wendall Cada 2005-10-25 22:07:28 UTC
revdep-rebuild does not find or resolve this issue. It should, but does not.
Jakub, is this a revdep-rebuild bug?

Wendall
Comment 8 Luca Longinotti (RETIRED) gentoo-dev 2005-10-26 01:54:06 UTC
revdep-rebuild had some issues with the recent MySQL upgrade, if "revdep-rebuild
--soname=libmysqlclient.so.12" does not help, try reemerging net-libs/libwww
manually, and then reemerge php/mod_php, that should fix it.
Best regards, CHTEKK.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-10-28 10:13:44 UTC
*** Bug 110724 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-10-29 11:00:33 UTC
*** Bug 110792 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 06:39:53 UTC
*** Bug 113469 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 07:17:43 UTC
*** Bug 113469 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2005-12-21 04:02:42 UTC
*** Bug 116263 has been marked as a duplicate of this bug. ***