View previous topic :: View next topic |
Author |
Message |
k-dub n00b
Joined: 18 Feb 2003 Posts: 67 Location: Frederick, CO
|
Posted: Sun Feb 23, 2003 6:34 am Post subject: mod_php configure error |
|
|
When I run 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 |
|
|
addi Tux's lil' helper
Joined: 06 Jun 2002 Posts: 112 Location: waterloo, on, canada
|
Posted: Thu Feb 27, 2003 2:14 am Post subject: try this: |
|
|
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 |
|
|
Cryonic n00b
Joined: 27 Feb 2003 Posts: 21
|
|
Back to top |
|
|
k-dub n00b
Joined: 18 Feb 2003 Posts: 67 Location: Frederick, CO
|
Posted: Thu Feb 27, 2003 6:57 pm Post subject: |
|
|
Solution found!
It turs out there is a log file (config.log) created when is run. I checked that and found the source of my problem. I was able to compile successfully with .
That error message isn't very helpful, is it? |
|
Back to top |
|
|
Caffeine Guru
Joined: 17 Jul 2002 Posts: 401 Location: Melbourne, Australia
|
Posted: Sun Mar 09, 2003 10:17 am Post subject: |
|
|
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 |
|
|
k-dub n00b
Joined: 18 Feb 2003 Posts: 67 Location: Frederick, CO
|
Posted: Wed Mar 12, 2003 9:59 pm Post subject: |
|
|
I had two problems. The first was fixed with . 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 |
|
|
Caffeine Guru
Joined: 17 Jul 2002 Posts: 401 Location: Melbourne, Australia
|
Posted: Thu Mar 13, 2003 3:24 pm Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Mar 13, 2003 6:11 pm Post subject: |
|
|
I believe MySQL 4 was briefly unmasked, basically by accident. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|