php: fork() not supported. USE="-java -qt" no go

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
User avatar
rizzo
Retired Dev
Retired Dev
Posts: 1067
Joined: Tue Apr 30, 2002 4:02 pm
Location: Manitowoc, WI, USA
Contact:

php: fork() not supported. USE="-java -qt" no go

Post by rizzo »

I'm getting the oft-reported error when trying to upgrade to php-core-4.3.4-r2 from 4.3.4. I also get the same error trying to install php (right now I only have mod_php installed, not full php).

The error:

Code: Select all

checking whether to enable pcntl support... yes
checking for fork... no
configure: error: pcntl: fork() not supported by this platform

!!! ERROR: dev-php/php-core-4.3.4-r2 failed.
!!! Function econf, Line 339, Exitcode 1
!!! econf failed
This error has been reported on this forum many times and often the solution was to remove java and qt support through USE="-java -qt". I've tried this and still get the problem.

Is anyone getting this anymore? The last post I saw was from June 2003.
User avatar
rizzo
Retired Dev
Retired Dev
Posts: 1067
Joined: Tue Apr 30, 2002 4:02 pm
Location: Manitowoc, WI, USA
Contact:

Post by rizzo »

Getting this for mod_php and php now as well.

:?
igoldtho
n00b
n00b
Posts: 22
Joined: Sun Apr 20, 2003 1:37 am

Post by igoldtho »

I'm getting a different error but still failing:

Code: Select all

/var/tmp/portage/php-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:3628: warning: passing arg 2 of `zend_register_resource' makes pointer from integer without a cast
{standard input}: Assembler messages:
{standard input}:520: Error: symbol `rc' is already defined
{standard input}:526: Error: symbol `rc' is already defined
{standard input}:532: Error: symbol `rc' is already defined
make: *** [ext/odbc/php_odbc.lo] Error 1
make: *** Waiting for unfinished jobs....
 
!!! ERROR: dev-php/php-4.3.4-r2 failed.
!!! Function php-sapi_src_compile, Line 450, Exitcode 2
!!! compile problem
Will be grateful for any assistance
User avatar
drjimmy42
Guru
Guru
Posts: 512
Joined: Mon Feb 03, 2003 10:24 pm
Location: Nashua, NH

Post by drjimmy42 »

I hate it when people just post a "me too" but I really have no idea what is going on here and I am getting the

Code: Select all

configure: error: pcntl: fork() not supported by this platform 
message. Any ideas?

John
User avatar
rizzo
Retired Dev
Retired Dev
Posts: 1067
Joined: Tue Apr 30, 2002 4:02 pm
Location: Manitowoc, WI, USA
Contact:

Post by rizzo »

drjimmy42 wrote:I hate it when people just post a "me too" but I really have no idea what is going on here and I am getting the

Code: Select all

configure: error: pcntl: fork() not supported by this platform 
message. Any ideas?

John
My error was actually in my Oracle setup. AFAIK it is set up fine, but php doesn't like something, so I just say USE="-oci8" for php related ebuilds.
User avatar
lisnalinchy
n00b
n00b
Posts: 20
Joined: Tue Apr 29, 2003 11:32 am

Post by lisnalinchy »

Having the same problem. I have tried the -qt and -java, tried recompiling every library associated with php and have recompiled everything php from using an empty tree, tried uninstalling blackdown-jdk, tried using the sun-jdk instead, but still have not managed to get past this issue. :(

Does anyone know anything more about the error itself? pcntl is process control isn't it? Is that an option of compulsory in php? Are there any other libraries that I dont know about that may cause this problem that I can have a go at?

Cheers

---

Well I decided that I couldnt be doing with this continual messing around trying to get things to work so I took the most drastic option - total system blitz and rebuilt from scratch. Now it works!
JohnnyD
n00b
n00b
Posts: 1
Joined: Mon Mar 29, 2004 10:34 pm
Location: Norg, The Netherlands
Contact:

Post by JohnnyD »

Hi,

had the same problem... but solved it :)

Solution: it turned out that my unixODBC had gone bad; reason: I did something stupid with my /usr dir, so I had to restore it from backup. Because of that, my /var/tmp/portage and/or portage database (?) was out of sync. What I did was systematically refresh all packages, installed on my system *after* the date from the backup, starting with packages php might use. And Hey Presto: It turned out that the trouble came from a missing unixODBC.

Is there a way to clean up a faulty portage database? It would have helped me :-)

Furthermore: It looks to me as if the php compile process gives a bit of a weird message, talking about a "fork" problem. It seems that this message is a clear indication that *some* of the packages needed by php are in a bad state... Happy Hunting! :roll:
Post Reply