ID: 11390 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Failure Operating system: PHP Version: 4.0.5 Assigned To: Comments: This is fixed in PHP 4.0.6. You can try the latest release candidate from: http://www.php.net/~andi/php-4.0.6RC3.tar.gz --Jani Previous Comments: --------------------------------------------------------------------------- [2001-06-11 16:13:34] [EMAIL PROTECTED] THE CODE IS LISTED HERE: /* -*- C -*- +----------------------------------------------------------------------+ | PHP version 4.0 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2001 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available at through the world-wide-web at | | http://www.php.net/license/2_02.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Andi Gutmans <[EMAIL PROTECTED]> | | Zeev Suraski <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ /* $Id: internal_functions.c.in,v 1.19 2001/02/26 18:14:30 andi Exp $ */ #include "php.h" #include "php_main.h" #include "zend_modules.h" #include "internal_functions_registry.h" #include "zend_compile.h" #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include "ext/mysql/php_mysql.h"n#include "ext/pcre/php_pcre.h"n#include "ext/posix/php_posix.h"n#include "ext/session/mod_mm.h"n#include "ext/session/php_session.h"n#include "ext/standard/php_standard.h"n#include "ext/xml/php_xml.h" zend_module_entry *php_builtin_extensions[] = { phpext_xml_ptr, phpext_standard_ptr, phpext_session_ptr, phpext_posix_ptr, phpext_pcre_ptr, phpext_mysql_ptr, }; #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *)) int php_startup_internal_extensions(void) { return php_startup_extensions(php_builtin_extensions, EXTCOUNT); } int php_global_startup_internal_extensions(void) { return php_global_startup_extensions(php_builtin_extensions, EXTCOUNT); } int php_global_shutdown_internal_extensions(void) { return php_global_shutdown_extensions(php_builtin_extensions, EXTCOUNT); } /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */ THE FIX CHANGED LINE 32 TO THESE LINES: #include "ext/mysql/php_mysql.h" #include "ext/pcre/php_pcre.h" #include "ext/posix/php_posix.h" #include "ext/session/mod_mm.h" #include "ext/session/php_session.h" #include "ext/standard/php_standard.h" #include "ext/xml/php_xml.h" --------------------------------------------------------------------------- [2001-06-10 20:56:20] [EMAIL PROTECTED] MAY APPLY TO ALL PLATFORMS Commands: gnutar -xzvf ~/Downloads/php-4.0.5.tar.gz cd php-4.0.5 ./configure --with-mysql=/Applications/MySQL-3.23 --with-apxs make the error was /bin/sh /var/root/Downloads/php-4.0.5/libtool --silent --mode=compile cc -I. -I/var/root/Downloads/php-4.0.5/main -I/var/root/Downloads/php-4.0.5/main -I/var/root/Downloads/php-4.0.5 -I/usr/include/httpd -I/var/root/Downloads/php-4.0.5/Zend -I/Applications/MySQL-3.23/include/mysql -I/var/root/Downloads/php-4.0.5/ext/xml/expat/xmltok -I/var/root/Downloads/php-4.0.5/ext/xml/expat/xmlparse -I/var/root/Downloads/php-4.0.5/TSRM -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -DHARD_SERVER_LIMIT=1024 -DEAPI -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c internal_functions.c internal_functions.c:32: `#include' expects "FILENAME" or <FILENAME> make[2]: *** [internal_functions.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 in that file on line 32 there was a string of #include statements where the returns were replaced by the char "n" I replaced the "n"'s with line endings and the problem was solved. The software compiled successfully with that one change. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11390&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]