php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11390 Failed to compile php-4.0.5/main/internal_functions.c
Submitted: 2001-06-10 20:56 UTC Modified: 2001-06-12 01:15 UTC
From: mrmacman_g4 at mac dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.5 OS: Mac OS X (Darwin) MAY APPLY TO A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mrmacman_g4 at mac dot com
New email:
PHP Version: OS:

 

 [2001-06-10 20:56 UTC] mrmacman_g4 at mac dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-11 16:13 UTC] mrmacman_g4 at mac dot com
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          |
   | license@php.net so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Authors: Andi Gutmans <andi@zend.com>                                |
   |          Zeev Suraski <zeev@zend.com>                                |
   +----------------------------------------------------------------------+
 */


/* $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-12 01:15 UTC] sniper@php.net
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

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC