Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_php configure error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
k-dub
n00b
n00b


Joined: 18 Feb 2003
Posts: 67
Location: Frederick, CO

PostPosted: Sun Feb 23, 2003 6:34 am    Post subject: mod_php configure error Reply with quote

When I run
Code:
emerge -ab mod_php
I get the following error:
Code:
configure: error: can not run test program while cross compiling

!!! ERROR: dev-php/mod_php-4.3.1 failed.
!!! Function src_compile, Line 220, Exitcode 1
!!! bad ./configure


My "/etc/make.conf" file looks like this:
Code:

USE="apm alsa apache2 arts berkdb cdr cups encode -ethereal gd gif -gnome gtk -gtk2 java kde ncurses oav oggvorbis opengl oss pam perl php pic png python qt qtmt readline samba sdl slp -snmp socks5 spell ssl truetype usb X xml xml2 zlib"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -falign-functions=4 -fomit-frame-pointer -frerun-loop-opt -funroll-loops"
CXXFLAGS="${CFLAGS}"
PORTDIR_OVERLAY=/usr/local/portage
CONFIG_PROTECT="/etc /usr/share/config /usr/kde/3/share/config /var/MailRoot -/var/MailRoot/bin -/var/MailRoot/docs"


I've got Apache 2.0.44 installed. I don't understand what's wrong. Any suggestions?
Back to top
View user's profile Send private message
addi
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2002
Posts: 112
Location: waterloo, on, canada

PostPosted: Thu Feb 27, 2003 2:14 am    Post subject: try this: Reply with quote

go to /usr/portage/dev/php/mod_php

and emerge the latest 4.3.1 there...

it's currently 4.3.1-r2 for me...

be aware that i've had session issues with 4.3.0 and 4.3.1 (specifically, if I put session_start() in any of my scripts, it crashes apache 2.0.44)
_________________
James Addison
http://www.pjsoft.ca
Back to top
View user's profile Send private message
Cryonic
n00b
n00b


Joined: 27 Feb 2003
Posts: 21

PostPosted: Thu Feb 27, 2003 2:17 am    Post subject: Reply with quote

I had this issue with php and 'use qt'

https://forums.gentoo.org/viewtopic.php?t=37984
Back to top
View user's profile Send private message
k-dub
n00b
n00b


Joined: 18 Feb 2003
Posts: 67
Location: Frederick, CO

PostPosted: Thu Feb 27, 2003 6:57 pm    Post subject: Reply with quote

Solution found! :D

It turs out there is a log file (config.log) created when
Code:
./configure
is run. I checked that and found the source of my problem. I was able to compile successfully with
Code:
USE="-qt"
.

That error message isn't very helpful, is it? :?
Back to top
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Sun Mar 09, 2003 10:17 am    Post subject: Reply with quote

Using -qt or -java doesn't seem to help me.

emerge mod_php wrote:
configure: error: can not run test program while cross compiling

!!! ERROR: dev-php/mod_php-4.3.1-r1 failed.
!!! Function src_compile, Line 219, Exitcode 1
!!! bad ./configure


Any other ideas?
Back to top
View user's profile Send private message
k-dub
n00b
n00b


Joined: 18 Feb 2003
Posts: 67
Location: Frederick, CO

PostPosted: Wed Mar 12, 2003 9:59 pm    Post subject: Reply with quote

I had two problems. The first was fixed with
Code:
USE="-qt"
. The second problem was that something in mod_php was looking for a MySQL 3.x library, and I had MySQL 4.0.10 installed at the time. Downgrading to the stable MySQL release fixed that problem and then mod_php could install.
Back to top
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Thu Mar 13, 2003 3:24 pm    Post subject: Reply with quote

Same here. For some reason, MySQL 4 had installed itself - but once MySQL 3 reinstalled mod_php worked fine. Why did we get mysql 4, which reverted to 3? Weird.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Mar 13, 2003 6:11 pm    Post subject: Reply with quote

I believe MySQL 4 was briefly unmasked, basically by accident.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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