Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

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
Advanced search
7 posts • Page 1 of 1
Author
Message
rizzo
Retired Dev
Retired Dev
User avatar
Posts: 1067
Joined: Tue Apr 30, 2002 4:02 pm
Location: Manitowoc, WI, USA
Contact:
Contact rizzo
Website

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

  • Quote

Post by rizzo » Mon Jan 05, 2004 4:23 pm

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.
Top
rizzo
Retired Dev
Retired Dev
User avatar
Posts: 1067
Joined: Tue Apr 30, 2002 4:02 pm
Location: Manitowoc, WI, USA
Contact:
Contact rizzo
Website

  • Quote

Post by rizzo » Fri Jan 09, 2004 3:34 pm

Getting this for mod_php and php now as well.

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

  • Quote

Post by igoldtho » Mon Jan 12, 2004 8:15 am

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
Top
drjimmy42
Guru
Guru
User avatar
Posts: 512
Joined: Mon Feb 03, 2003 10:24 pm
Location: Nashua, NH

  • Quote

Post by drjimmy42 » Mon Feb 16, 2004 3:35 am

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
Top
rizzo
Retired Dev
Retired Dev
User avatar
Posts: 1067
Joined: Tue Apr 30, 2002 4:02 pm
Location: Manitowoc, WI, USA
Contact:
Contact rizzo
Website

  • Quote

Post by rizzo » Mon Feb 16, 2004 3:38 am

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.
Top
lisnalinchy
n00b
n00b
User avatar
Posts: 20
Joined: Tue Apr 29, 2003 11:32 am

  • Quote

Post by lisnalinchy » Thu Feb 19, 2004 5:09 pm

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!
Top
JohnnyD
n00b
n00b
Posts: 1
Joined: Mon Mar 29, 2004 10:34 pm
Location: Norg, The Netherlands
Contact:
Contact JohnnyD
Website

  • Quote

Post by JohnnyD » Mon Mar 29, 2004 10:45 pm

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:
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy