ID: 37462
User updated by: ionut dot aivanesei at amdocs dot com
Reported By: ionut dot aivanesei at amdocs dot com
Status: Open
Bug Type: Compile Failure
Operating System: AIX 5.1.3
-PHP Version: 5.1.2
+PHP Version: 5.1.4
New Comment:
The same errors I have also with 5.1.4 PHP version.
With 5.1.4 there are also other two compilation errors:
----------
"Zend/zend_language_parser.c", line 2585.1: 1506-046 (S) Syntax error.
make: 1254-004 The error code from the last command is 1.
"Zend/zend_ini_parser.c", line 1081.1: 1506-046 (S) Syntax error.
make: 1254-004 The error code from the last command is 1.
----------
The line containing ';' needs to be removed, otherwise make will fail
with error shown above.
Ionutz
Previous Comments:
------------------------------------------------------------------------
[2006-05-17 12:29:09] ionut dot aivanesei at amdocs dot com
I found this line on 'configure' on line 12053 [from 113777]:
--------------------------------------------------
...
case $host_alias in
*aix*)
BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg
\`echo \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) | sed
's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 ==
\"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1)
!= \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL)
--mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS)
\$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym
\$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS)
\$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
;;
...
--------------------------------------------------
This is from 'confiure' for PHP 5.1.2
Thanks,
Ionutz
------------------------------------------------------------------------
[2006-05-17 08:16:02] ionut dot aivanesei at amdocs dot com
In the 'make' output there are 2 line like
-----
echo '\
\
-----
and this are exactly the lines where BUILD_CLI and BUILD_CGI should be
executed. If you look to the definition of BUILD_CLI and BUILD_CGI you
will see that it start with "echo '\...".
------------------------------------------------------------------------
[2006-05-17 08:13:13] [EMAIL PROTECTED]
So what exactly is wrong there?
------------------------------------------------------------------------
[2006-05-17 08:06:57] ionut dot aivanesei at amdocs dot com
I think something is wrong with the Makefile generated by configure. I
will show you some line where is defined BUILD_CLI and BUILD_CGI (both
were not compiled):
----------------------------------------
...
SAPI_CLI_PATH = sapi/cli/php
BUILD_CLI = echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg `echo
$(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) | sed
's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'` | $(AWK) '{ if ((($$2 == "T")
|| ($$2 == "D") || ($$2 == "B")) && (substr($$3,1,1) != ".")) { print
$$3 } }' | sort -u >> php.sym && $(LIBTOOL) --mode=link $(CC)
-export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)
$(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym
$(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) $(EXTRA_LIBS)
$(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH)INSTALL_CLI = $(mkinstalldirs)
$(INSTALL_ROOT)$(bindir); $(INSTALL) -m 0755 $(SAPI_CLI_PATH)
$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)
SAPI_CGI_PATH = sapi/cgi/php
BUILD_CGI = echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg `echo
$(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) | sed
's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'` | $(AWK) '{ if ((($$2 == "T")
|| ($$2 == "D") || ($$2 == "B")) && (substr($$3,1,1) != ".")) { print
$$3 } }' | sort -u >> php.sym && $(LIBTOOL) --mode=link $(CC)
-export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)
$(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym
$(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS)
$(ZEND_EXTRA_LIBS) -o $(SAPI_CGI_PATH)
...
----------------------------------------
And also some strange line in the end of the 'make' command:
----------------------------------------
...
/bin/sh [...]/_sources/php/php-5.1.2/libtool --silent
--preserve-dup-deps --mode=compile cc -Isapi/cgi/
-I[...]/_sources/php/php-5.1.2/sapi/cgi/ -DPHP_ATOM_INC
-I[...]/_sources/php/php-5.1.2/include
-I[...]/_sources/php/php-5.1.2/main -I[...]/_sources/php/php-5.1.2
-I[...]/libxml2/include/libxml2
-I[...]/_sources/php/php-5.1.2/ext/date/lib
-I[...]/_sources/php/php-5.1.2/TSRM -I[...]/_sources/php/php-5.1.2/Zend
-I/usr/include -g -c [...]/_sources/php/php-5.1.2/sapi/cgi/getopt.c
-o sapi/cgi/getopt.lo
/bin/sh [...]/_sources/php/php-5.1.2/libtool --silent
--preserve-dup-deps --mode=compile cc -Imain/
-I[...]/_sources/php/php-5.1.2/main/ -DPHP_ATOM_INC
-I[...]/_sources/php/php-5.1.2/include
-I[...]/_sources/php/php-5.1.2/main -I[...]/_sources/php/php-5.1.2
-I[...]/libxml2/include/libxml2
-I[...]/_sources/php/php-5.1.2/ext/date/lib
-I[...]/_sources/php/php-5.1.2/TSRM -I[...]/_sources/php/php-5.1.2/Zend
-I/usr/include -g -c main/internal_functions.c -o
main/internal_functions.lo
echo '\
\
/bin/sh [...]/_sources/php/php-5.1.2/libtool --silent
--preserve-dup-deps --mode=compile cc -Isapi/cli/
-I[...]/_sources/php/php-5.1.2/sapi/cli/ -DPHP_ATOM_INC
-I[...]/_sources/php/php-5.1.2/include
-I[...]/_sources/php/php-5.1.2/main -I[...]/_sources/php/php-5.1.2
-I[...]/libxml2/include/libxml2
-I[...]/_sources/php/php-5.1.2/ext/date/lib
-I[...]/_sources/php/php-5.1.2/TSRM -I[...]/_sources/php/php-5.1.2/Zend
-I/usr/include -g -c [...]/_sources/php/php-5.1.2/sapi/cli/php_cli.c
-o sapi/cli/php_cli.lo
/bin/sh [...]/_sources/php/php-5.1.2/libtool --silent
--preserve-dup-deps --mode=compile cc -Isapi/cli/
-I[...]/_sources/php/php-5.1.2/sapi/cli/ -DPHP_ATOM_INC
-I[...]/_sources/php/php-5.1.2/include
-I[...]/_sources/php/php-5.1.2/main -I[...]/_sources/php/php-5.1.2
-I[...]/libxml2/include/libxml2
-I[...]/_sources/php/php-5.1.2/ext/date/lib
-I[...]/_sources/php/php-5.1.2/TSRM -I[...]/_sources/php/php-5.1.2/Zend
-I/usr/include -g -c
[...]/_sources/php/php-5.1.2/sapi/cli/php_cli_readline.c -o
sapi/cli/php_cli_readline.lo
/bin/sh [...]/_sources/php/php-5.1.2/libtool --silent
--preserve-dup-deps --mode=compile cc -Isapi/cli/
-I[...]/_sources/php/php-5.1.2/sapi/cli/ -DPHP_ATOM_INC
-I[...]/_sources/php/php-5.1.2/include
-I[...]/_sources/php/php-5.1.2/main -I[...]/_sources/php/php-5.1.2
-I[...]/libxml2/include/libxml2
-I[...]/_sources/php/php-5.1.2/ext/date/lib
-I[...]/_sources/php/php-5.1.2/TSRM -I[...]/_sources/php/php-5.1.2/Zend
-I/usr/include -g -c [...]/_sources/php/php-5.1.2/sapi/cli/getopt.c
-o sapi/cli/getopt.lo
/bin/sh [...]/_sources/php/php-5.1.2/libtool --silent
--preserve-dup-deps --mode=compile cc -Imain/
-I[...]/_sources/php/php-5.1.2/main/ -DPHP_ATOM_INC
-I[...]/_sources/php/php-5.1.2/include
-I[...]/_sources/php/php-5.1.2/main -I[...]/_sources/php/php-5.1.2
-I[...]/libxml2/include/libxml2
-I[...]/_sources/php/php-5.1.2/ext/date/lib
-I[...]/_sources/php/php-5.1.2/TSRM -I[...]/_sources/php/php-5.1.2/Zend
-I/usr/include -g -c main/internal_functions_cli.c -o
main/internal_functions_cli.lo
echo '\
\
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
----------------------------------------
I think BUILD_CLI and BUILD_CGI are wrong.
Can you please check?
Thanks,
Ionutz
------------------------------------------------------------------------
[2006-05-17 07:25:23] [EMAIL PROTECTED]
Cannot reproduce it.
Please try to investigate it yourself.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37462
--
Edit this bug report at http://bugs.php.net/?id=37462&edit=1