Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105265 - configure error in mod_php-4.4.0-r1 aborts installation
Summary: configure error in mod_php-4.4.0-r1 aborts installation
Status: RESOLVED DUPLICATE of bug 106120
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 08:56 UTC by Michael Zeising
Modified: 2005-09-20 00:32 UTC (History)
0 users

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 Michael Zeising 2005-09-08 08:56:13 UTC
> emerge mod_php
...
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...
configure: error: ZTS currently requires working POSIX threads. We were unable
to verify that your system supports Pthreads.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/mod_php-4.4.0-r1/work/php-4.4.0/config.log

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


...and my system does support pthreads ;) in configure.log can be found:

...
configure:2136: checking if compiler supports -R
configure:2151: gcc -o conftest -march=athlon64 -O2 -pipe -fomit-frame-pointer
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread   -L/us r/X11R6/lib -ltiff -L/usr/lib64 conftest.c -R
/usr/lib  -lxmlparse -lxmltok 1>&5
gcc: unrecognized option `-R'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib: No such file: File format not recognized
collect2: ld returned 1 exit status
configure: failed program was:
#line 2144 "configure"
#include "confdefs.h"

int main() {

; return 0; }
...
Comment 1 Luca Longinotti (RETIRED) gentoo-dev 2005-09-08 10:33:37 UTC
Please make sure that your system is up-to-date and that you ran revdep-rebuild
(from getoolkit).
Also please use the dev-lang/php packages for PHP support now, you can find more
informations about them here: http://forums.gentoo.org/viewtopic-t-377385.html
Best regards, CHTEKK.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-09 12:45:28 UTC
See above. If it still fails, reopen with emerge --info output and attach the
full config.log here.
Comment 3 Michael Zeising 2005-09-19 01:01:13 UTC
(In reply to comment #2)
> See above. If it still fails, reopen with emerge --info output and attach the
> full config.log here.

Sorry, system is up-to-date, I ran revdep-rebuild and dev-lang/php is properly
installed but mod_php fails to configure :(

here is my emerge --info output:

> emerge --info
Portage 2.0.52-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-ck4 x86_64)
=================================================================
System uname: 2.6.13-ck4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac alsa amd64 apache2 avi berkdb bitmap-fonts cdr crypt cups curl dvd
dvdr eds emboss emul-linux-x86 encode esd flac foomaticdb fortran gif gnome gpm
gstreamer gtk gtk2 hal imlib innodb ipv6 java jpeg libwww lm_sensors lzw
lzw-tiff mad mmap mozilla mp3 mpeg mysql ncurses nls ogg openal opengl pam
pdflib perl png python qt quicktime readline sdl sharedmem spell ssl tcpd
threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis
xine xml xml2 xpm xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY


and the full config.log:


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

configure:1656: checking host system type
configure:1756: checking for gcc
configure:1869: checking whether the C compiler (gcc -march=athlon64 -O2 -pipe
-fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -pthread  -L/usr/X11R6/lib -ltiff -L/usr/lib64) works
configure:1885: gcc -o conftest -march=athlon64 -O2 -pipe -fomit-frame-pointer
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread   -L/usr/X11R6/lib -ltiff -L/usr/lib64 conftest.c 
-lxmlparse -lxmltok 1>&5
/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)
configure:1911: checking whether the C compiler (gcc -march=athlon64 -O2 -pipe
-fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -pthread  -L/usr/X11R6/lib -ltiff -L/usr/lib64) is
a cross-compiler
configure:1916: checking whether we are using GNU C
configure:1925: gcc -E conftest.c
configure:1944: checking whether gcc accepts -g
configure:1977: checking whether gcc and cc understand -c and -o together
configure:1992: gcc -c conftest.c -o conftest.o 1>&5
configure:1993: gcc -c conftest.c -o conftest.o 1>&5
configure:1998: cc -c conftest.c 1>&5
configure:2000: cc -c conftest.c -o conftest.o 1>&5
configure:2001: cc -c conftest.c -o conftest.o 1>&5
configure:2028: checking how to run the C preprocessor
configure:2049: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2109: checking for AIX
configure:2136: checking if compiler supports -R
configure:2151: gcc -o conftest -march=athlon64 -O2 -pipe -fomit-frame-pointer
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread   -L/usr/X11R6/lib -ltiff -L/usr/lib64 conftest.c -R
/usr/lib  -lxmlparse -lxmltok 1>&5
gcc: unrecognized option `-R'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib: No such file: File format not recognized
collect2: ld returned 1 exit status
configure: failed program was:
#line 2144 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:2169: checking if compiler supports -Wl,-rpath,
configure:2184: gcc -o conftest -march=athlon64 -O2 -pipe -fomit-frame-pointer
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread   -L/usr/X11R6/lib -ltiff -L/usr/lib64 conftest.c
-Wl,-rpath,/usr/lib  -lxmlparse -lxmltok 1>&5
/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)
configure:2210: checking for re2c
configure:2239: checking whether ln -s works
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 -march=athlon64 -O2 -pipe -fomit-frame-pointer
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread   -L/usr/X11R6/lib -ltiff -L/usr/lib64 conftest.c -lfl  
-lxmlparse -lxmltok 1>&5
/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)
configure:2419: checking lex output file root
configure:2440: checking whether yytext is a pointer
configure:2459: gcc -o conftest -march=athlon64 -O2 -pipe -fomit-frame-pointer
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread   -L/usr/X11R6/lib -ltiff -L/usr/lib64 conftest.c 
-lxmlparse -lxmltok -lfl 1>&5
/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)
configure:2483: checking for working const
configure:2537: gcc -c -march=athlon64 -O2 -pipe -fomit-frame-pointer -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-pthread  conftest.c 1>&5
configure:2562: checking flex version
configure:2578: checking whether byte ordering is bigendian
configure:2671: checking whether to force non-PIC code in shared modules
configure:2808: checking for pthreads_cflags
configure:2871: checking for pthreads_lib
configure:3002: checking for AOLserver support
configure:3243: checking for Apache 1.x module support via DSO through APXS
configure:3546: checking for Apache 1.x module support
configure:4381: checking for mod_charset compatibility option
configure:4518: checking for Apache 2.0 filter-module support via DSO through APXS
configure:5340: checking for Apache 2.0 handler-module support via DSO through APXS
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2005-09-19 02:15:09 UTC
> Sorry, system is up-to-date, I ran revdep-rebuild and dev-lang/php is properly
> installed but mod_php fails to configure :(

Hi. Hmm ok, but why are you trying to install mod_php if dev-lang/php already is
installed properly? dev-lang/php with the "apache2" USE flag will install
mod_php for you, so please use that and do _not_ attempt to emerge
dev-php/mod_php, thanks. If some package require dev-php/mod_php, use emerge
-aDuvt world to see wich package depends upon dev-php/mod_php and put it into
/etc/portage/package.keywords, since mostly only the unstable (~ARCH) ebuilds
support dev-lang/php correctly now.

> gcc: unrecognized option `-R'
> /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
> /usr/lib: No such file: File format not recognized
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 2144 "configure"
> #include "confdefs.h"

Well the error is pretty obvious, it does not understand -R in GCC and fails to
find some files or to read them, so this seems very likely to be a GCC bug.
Best regards, CHTEKK.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-09-19 02:22:07 UTC
Re-assign...
Comment 6 SpanKY gentoo-dev 2005-09-19 20:07:37 UTC
i dont see anything here that is the fault of gcc ...

/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)

your xmlparse.so is clrealy broken by a mysql upgrade

configure:2151: gcc -o conftest -march=athlon64 -O2 -pipe -fomit-frame-pointer
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread   -L/usr/X11R6/lib -ltiff -L/usr/lib64 conftest.c -R
/usr/lib  -lxmlparse -lxmltok 1>&5
gcc: unrecognized option `-R'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib: No such file: File format not recognized

-R is not a gcc option, something is adding that (xml, php, something) ... the
/usr/lib error only comes up because -R is ignored
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-09-20 00:32:13 UTC
Invalid bug.

*** This bug has been marked as a duplicate of 106120 ***