Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems emerging PHP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
NIKOLAY
n00b
n00b


Joined: 31 Oct 2003
Posts: 10

PostPosted: Sat Feb 07, 2004 12:19 am    Post subject: Problems emerging PHP Reply with quote

When I try to emerge PHP 4.3.4-r4 or mod_php 4.3.4-r2 It shows the same following error (in the ./configure step):

This is for PHP:
Code:

...
...
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/php-4.3.4-r4 failed.
!!! Function econf, Line 339, Exitcode 1
!!! econf failed



This is for mod_php:
Code:
...
...
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.4-r2 failed.
!!! Function econf, Line 339, Exitcode 1
!!! econf failed



I've tried to disable all my Cflags and nothing changes. Anybody could tell me what this error message means??
Thanks!
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Sat Feb 07, 2004 4:43 am    Post subject: Reply with quote

Are you using distcc or anything? You may want to disable distcc if you are using it. Do you have the program /bin/test? I wonder if it's trying to run a different program called test... if you type 'which test' does it point to /bin/test? Maybe try re-emerging coreutils which contains the 'test' program.
Back to top
View user's profile Send private message
putzmanjr19
n00b
n00b


Joined: 21 Jan 2003
Posts: 21

PostPosted: Sat Feb 07, 2004 5:29 am    Post subject: Reply with quote

Have you built any sort of cross compiler for making windows binaries or anything? Distcc might also be a problem, but I don't think it is called on at all during ./configure. I've never run into this problem and I've run distcc on and off over my time with gentoo.
Back to top
View user's profile Send private message
|rt|
n00b
n00b


Joined: 10 Aug 2003
Posts: 14

PostPosted: Mon Feb 09, 2004 10:18 pm    Post subject: Reply with quote

I'm getting a simular error

Code:

checking for c++... g++
checking whether the C++ compiler (g++ -march=athlon-xp -O2 -pipe -L/usr/lib -ldb-4.0  -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386 -L/opt/blackdown-jdk-1.4.1/jre/lib/i386 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

!!! ERROR: dev-php/mod_php-4.3.4-r4 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed


I emerged the previous version of mod_php to double check that this wasn't due to a slot problem.
Back to top
View user's profile Send private message
netshade
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2004
Posts: 90
Location: Sweden

PostPosted: Wed Feb 11, 2004 9:27 am    Post subject: mod_php-4.3.4-r4 Reply with quote

checking for c++... g++
checking whether the C++ compiler (g++ -march=i686 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -L/usr/lib -ldb-4.0 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

!!! ERROR: dev-php/mod_php-4.3.4-r4 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed

Help? :P My system is running a board, and it was announced as up and running 2 days ago. Now it's not since I can't get php / apache2 up (mod_php can't be loaded anymore.. )
_________________
From where the shadows turn into nightmare, netshade greets you...
Back to top
View user's profile Send private message
|rt|
n00b
n00b


Joined: 10 Aug 2003
Posts: 14

PostPosted: Wed Feb 11, 2004 6:15 pm    Post subject: Reply with quote

I got this from https://forums.gentoo.org/viewtopic.php?t=104302

but if you do this it will compile

USE="-qt" emerge mod_php
Back to top
View user's profile Send private message
netshade
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2004
Posts: 90
Location: Sweden

PostPosted: Wed Feb 11, 2004 10:46 pm    Post subject: Reply with quote

Thanks! ;) That took care of my problem, so I'm a happy boardrunner again.
_________________
From where the shadows turn into nightmare, netshade greets you...
Back to top
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Thu Feb 12, 2004 6:47 pm    Post subject: Reply with quote

A re-emerge libwww fixed things for me. For more info see: https://bugs.gentoo.org/show_bug.cgi?id=14397
_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum