Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 38082

Summary: None of the php packages build: "fork() not supported" - oracle brokenness
Product: Gentoo Linux Reporter: Don Seiler (RETIRED) <rizzo>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config.log from php-4.3.4 (for mod_php-4.3.4-r2)

Description Don Seiler (RETIRED) gentoo-dev 2004-01-13 07:13:58 UTC
When trying to build or update php-core, php, or mod_php, I now get a fork() error during config:

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

!!! ERROR: dev-php/mod_php-4.3.4-r2 failed.
!!! Function econf, Line 339, Exitcode 1
!!! econf failed

I've read the forums and tried the suggested USE="-java -qt" in various permutations but nothing changes the result.  I currently have mod_php-4.3.4-r1 installed but even trying to re-install that same version gives this error.

emerge info:
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r8, 2.4.24)
=================================================================
System uname: 2.4.24 i686 Intel(R) Pentium(R) 4 CPU 1400MHz
Gentoo Base System version 1.4.3.12
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/co
nfig /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/sh
are/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/ge
neric/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qm
ail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.linux.no/ http
://gentoo.inode.at/ http://ftp.gentoo.or.kr/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 apm avi berkdb cdr cjk crypt cups curl
 dga directfb encode ethereal faad fbcon fbdev flash foomaticdb gd gd-bundled gd
bm ggi gif gpm gstreamer gtk gtk2 guile imlib innodb java jpeg junit ldap libg++
 libwww mad mbox memlimit mikmod motif moznocompose moznoirc moznomail mpeg mysq
l ncurses nls oci8 odbc offensive oggvorbis opengl oss pam perl png python qt qt
mt quicktime readline ruby samba sdl slang slp smooth spell sse ssl svga tcltk t
cpd tetex tiff truetype usb wmf x86 xinerama xml xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-01-13 11:01:42 UTC

*** This bug has been marked as a duplicate of 15816 ***
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-13 12:56:20 UTC
do revdep-rebuild and it will probably fix it.
Comment 3 Don Seiler (RETIRED) gentoo-dev 2004-01-13 14:22:24 UTC
I did revdep-rebuild and it built 3 packages dealing with directfb stuff.  It failed to rebuild PyOpenGL.  I don't think that's related.

Regardless it still fails.

Seeing as how the solutions put forth in the other bug don't work here, I'm going to re-open this.

I'll post my config log later.
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-01-13 14:23:59 UTC
Created attachment 23755 [details]
config.log from php-4.3.4 (for mod_php-4.3.4-r2)

Here's the config.log
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2004-01-13 15:12:59 UTC
this is a java problem afaik
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2004-01-13 15:14:06 UTC

*** This bug has been marked as a duplicate of 15816 ***
Comment 7 Don Seiler (RETIRED) gentoo-dev 2004-01-21 08:56:08 UTC
Martin you say it is a java problem and mark it duplicate as vapier did but I'd like to know what I'm supposed to do with my java to fix the situation.  The solutions in Bug 15816 do NOTHING to correct my problem.
Comment 8 Don Seiler (RETIRED) gentoo-dev 2004-01-21 09:39:03 UTC
FWIW:

# java-config -J    
/opt/blackdown-jdk-1.4.1/bin/java
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-21 11:55:38 UTC
looking at your config.log, something is NOT right with your oracle install.
/var/tmp/portage/mod_php-4.3.4-r2/temp/ccfwCwde.o(.text+0xa): In function `main':
: undefined reference to `OCIEnvNlsCreate'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -locijdbc8

for having php working at the moment, do
USE="-oci8" emerge mod_php

php-core is not used anymore as of the newest mod_php/php.

if you want to debug your oracle stuff, look at the config.log and run some of those test pairs of source + gcc compile lines to see what error output you get yourself (not all of the output is present in the config.log). also doing that manual testing, remove other libraries from the gcc compile line one at a time to see where it stops.
Comment 10 Don Seiler (RETIRED) gentoo-dev 2004-01-21 12:04:40 UTC
yegads that did it.  Never once considered Oracle to be an issue.  Works for tora.  ebrostig will tell me that Oracle is not supported in gcc3 as well.  I'll dig around and post back if I find anything.
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-21 12:09:36 UTC
gonna close this properly
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-21 12:10:08 UTC
oracle brokeness