php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30774 Linker errors in Zend/zend.o and others
Submitted: 2004-11-13 19:34 UTC Modified: 2004-11-14 00:38 UTC
From: creinig at sunsite dot dk Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.9 OS: Debian/Sarge
Private report: No CVE-ID: None
 [2004-11-13 19:34 UTC] creinig at sunsite dot dk
Description:
------------
Linker throws many undefined references in the language 
core. Error outputs: 
http://sunsite.dk/~creinig/phperror/php-4.3.9-make-errors 
 
Tried also with php4-STABLE-200411131730 -- there it throws 
a flex internal error: 
 
conflicts: 2 shift/reduce 
flex: fatal internal error, bad line in skeleton file 
make: *** [Zend/zend_ini_scanner.c] Error 1 
 
Configure call: 
../php-4.3.9/configure 
--prefix=/home/creinig/apachetest/install/php-4.3.9 \ 
  --with-fastcgi \ 
  --enable-force-cgi-redirect \ 
  --enable-discard-path \ 
  --with-config-file-path=/home/creinig/apachetest/install/php-4.3.9/etc 
\ 
  --enable-safe-mode \ 
  --with-openssl \ 
  --with-zlib \ 
  --enable-memory-limit 
 
The snapshot was configured with the same line, with the 
dirnames adapted. 
 
$ uname -a 
Linux loke 2.6.8-1-mckinley-smp #1 SMP Tue Sep 14 22:36:10 
MDT 2004 ia64 GNU/Linux 
 
$ gcc --version 
gcc (GCC) 3.3.4 (Debian 1:3.3.4-13) 
 
$ flex --version 
flex 2.5.31 
 
 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-13 20:01 UTC] creinig at sunsite dot dk
Tried with php-5.0.2. On the first and second tries I got 
the same flex internal error in Zend/zend_ini_scanner.c as 
with the php4 snapshot (just with 4 shift/reduce mentioned 
instead of 2). 
 
Third try (after redirecting make stdout to a file) it 
skipped that error and continued until stopping at this: 
 
FATAL: can't create sapi/cgi/libfcgi/fcgi_stdio.o: No such 
file or directory 
make: *** [sapi/cgi/libfcgi/fcgi_stdio.lo] Error 1 
 
sapi/cgi/ is an empty dir at that place. 
 
"make clean ; make" repeats that error 
 
 
I realize that these are probably all independent build 
errors and thus should be separated into several bug 
reports. But that's IMHO better decided by someone familiar 
with the beast. In any case someone should have a *really* 
close look at the PHP build process, as it seems to be 
broken in several places.
 [2004-11-13 20:10 UTC] creinig at sunsite dot dk
Played a bit more with the php-5.0.2 build. The first 2 
"make" calls after doing a "rm -r *" in the separate build 
dir and calling configure yield the flex error, from the 
third try on it continues to the missing libfcgi dir. 
(tried this sequence twice now, with identical behavior 
each time)
 [2004-11-13 20:15 UTC] tony2001@php.net
What version of bison do you have ?
 [2004-11-13 20:38 UTC] creinig at sunsite dot dk
$ bison --version 
bison (GNU Bison) 1.875a
 [2004-11-13 20:43 UTC] tony2001@php.net
Please try bison 1.28, 1.35, or 1.75, as PHP supports only these versions.
 [2004-11-14 00:38 UTC] derick@php.net
This has nothing to do with bison, but flex. PHP only works with 2.5.4 and not with 2.5.31, this is not a bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 06:00:01 2025 UTC