Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerging PHP 4.2.3
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
Vann
Guru
Guru


Joined: 04 Aug 2002
Posts: 357

PostPosted: Fri Nov 22, 2002 3:18 pm    Post subject: Emerging PHP 4.2.3 Reply with quote

When I emerge php 4.2.3 I get this error:

gcc -I. -I/var/tmp/portage/php-4.2.3/work/php-4.2.3/ext/dba -I/var/tmp/portage/php-4.2.3/work/php-4.2.3/main -I/var/tmp/portage/php-4.2.3/work/php-4.2.3 -I/var/tmp/portage/php-4.2.3/work/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/include/mysql -I/var/tmp/portage/php-4.2.3/work/php-4.2.3/ext/xml/expat -I/var/tmp/portage/php-4.2.3/work/php-4.2.3/TSRM -march=athlon-xp -O3 -mmmx -msse -m3dnow -pipe -c dba_db3.c && touch dba_db3.lo
dba_db3.c: In function `dba_open_db3':
dba_db3.c:77: warning: passing arg 2 of pointer to function from incompatible pointer type
dba_db3.c:77: incompatible type for argument 4 of indirect function call
dba_db3.c:77: too few arguments to function
make[3]: *** [dba_db3.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/php-4.2.3/work/php-4.2.3/ext/dba'
make[2]: *** [all-recursive] Error 1


Any ideas about how to resolve this?
Back to top
View user's profile Send private message
Craigo
Apprentice
Apprentice


Joined: 09 Aug 2002
Posts: 249
Location: /dev/life

PostPosted: Fri Nov 22, 2002 5:09 pm    Post subject: Reply with quote

Looks like your compliation flags is a bit too bleedin' edge... try cutting it down?

look at freehackers.org for the safe compliation code.. I use it all the time =)

-/Craigo/-
Back to top
View user's profile Send private message
Vann
Guru
Guru


Joined: 04 Aug 2002
Posts: 357

PostPosted: Fri Nov 22, 2002 8:11 pm    Post subject: Nope Reply with quote

I get the exact same error when I tone down the CFLAGS (just -march and -O2) or when I don't use them at all.
Back to top
View user's profile Send private message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Sat Nov 23, 2002 4:03 pm    Post subject: Reply with quote

I'm also getting the same errors when compiling with any number of possible combinations of CFLAGS for my procesor (Athlon/GCC-3.2)

I was just able to compile it on my server which is using PII/GCC-2.95, but still doesnt solve my althon systems problem
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Back to top
View user's profile Send private message
Vann
Guru
Guru


Joined: 04 Aug 2002
Posts: 357

PostPosted: Thu Dec 05, 2002 5:26 pm    Post subject: Cause Reply with quote

I have found the cause. PHP 4.2.3 fails to compile when DB >= 4.1 is installed. I'm not sure if there is a fix, though.
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