php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35234 Error "Command failed for target 'ext/xml/xml.lo'" during make process
Submitted: 2005-11-16 10:35 UTC Modified: 2005-11-16 15:33 UTC
From: agebosma at home dot nl Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.4.1 OS: Solaris 8
Private report: No CVE-ID: None
 [2005-11-16 10:35 UTC] agebosma at home dot nl
Description:
------------
I'm trying to compile php 4.4.1 on Solaris 8 but I'm getting the error 
"Command failed for target 'ext/xml/xml.lo'" during the make process. 
 
[snip] 
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1582: 
`XML_Char' undeclared (first use in this function) 
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1582: 
`encoded' undeclared (first use in this function) 
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c: In function 
`zif_utf8_decode': 
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1602: 
`XML_Char' undeclared (first use in this function) 
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1602: 
`decoded' undeclared (first use in this function) 
*** Error code 1 
make: Fatal error: Command failed for target 'ext/xml/xml.lo' 
 
 
If I look in the 'ext/xml/' folder, there's no file called 'xml.lo'. 
What can be the problem here? 
 
I used the following configuration with gcc 3.2.3: 
 
configure --prefix=/work/training/dg432/servsoft/php4 
--with-apxs2=/work/training/dg432/servsoft/apache2/bin/apxs 
--with-mysql=/work/training/dg432/servsoft/mysql4 --enable-calendar 
--enable-ftp --with-gettext --with-iconv 
--with-dom=/work/training/dg432/servsoft 
--with-dom-xslt=/work/training/dg432/servsoft 
--with-gd=/work/training/dg432/servsoft 
--with-freetype-dir=/work/training/dg432/servsoft 
--with-jpeg-dir=/work/training/dg432/servsoft 
--with-png-dir=/work/training/dg432/servsoft 
--with-zlib-dir=/work/training/dg432/servsoft --enable-gd-native-ttf 
 
Except for gettext and iconv I manually compiled all packaged myself. 
 
In addition to this, I got two warnings during the configuration process: 
"configure: warning: You will need bison 1.28" and "configure: warning: 
You will need bison 1.28 if you want to regenerate the Zend parser 
(found 1.27)" 
Could this have anything to do with it?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-16 10:40 UTC] tony2001@php.net
Please upload full error log somewhere and paste the link here.
 [2005-11-16 10:53 UTC] agebosma at home dot nl
The full error log of what? The cofiguration process or the make process?
I'm not a compilation expert, does the error log get created automatically somewhere somehow? If not, how can I create on?
 [2005-11-16 11:00 UTC] tony2001@php.net
I mean the make process.
`make 2>error.log` 
should work.
 [2005-11-16 11:34 UTC] agebosma at home dot nl
After creating and reading the log it appeared that there are more problems than I first expected: http://members.home.nl/akbosma/error.log
 [2005-11-16 11:37 UTC] tony2001@php.net
Looking at this line:
/work/training/dg432/servsoft/include/expat.h:18:28: expat_external.h: No such file or directory

I can say you have some problems with your system, because some files are definitely missing.
Doesn't look like PHP problem.
 [2005-11-16 15:33 UTC] agebosma at home dot nl
You where right, it appears expat 1.95.8 has a bug causing it to not install properly: http://sourceforge.net/tracker/index.php?func=detail&aid=1177957&group_id=10127&atid=110127

For what it's worth, thank you ;-) after fixing expat, php compiled properly.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 22:01:29 2024 UTC