#49572 [Opn->Asn]: use of C++ style comments causes build failure
| From: | pajoye@php.net | Date: | Wed, 16 Sep 2009 18:56:05 +0000 |
| Subject: | #49572 [Opn->Asn]: use of C++ style comments causes build failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142435@lists.php.net to get a copy of this message | ||
ID: 49572
Updated by: pajoye@php.net
Reported By: mamfelt at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: AIX 6.1
PHP Version: 5.2SVN-2009-09-16 (snap)
-Assigned To:
+Assigned To: srinatar
New Comment:
Can you simply commit the fix please? All affected branches? :-)
Previous Comments:
------------------------------------------------------------------------
[2009-09-16 18:50:13] srinatar@php.net
thanks for reporting this bug. this issue seems to be brought in with
svn commit r280638
you can work around this issue - for now - by using -qcpluscmt within
the CFLAGS
export CFLAGS=-qcpluscmt
./configure ...
gmake
------------------------------------------------------------------------
[2009-09-16 17:15:22] mamfelt at gmail dot com
Description:
------------
A C++ style comment in main/streams/memory.c causes a build failure.
Reproduce code:
---------------
in /php5.2-200909161430/main/streams/memory.c:
self->innerstream = php_stream_memory_create_rel(mode);
php_stream_auto_cleanup(self->innerstream); // do not warn if
innerstream is GC'ed before stream
((php_stream_memory_data*)self->innerstream->abstract)->owner_ptr =
&self->innerstream;
Corrected as:
self->innerstream = php_stream_memory_create_rel(mode);
php_stream_auto_cleanup(self->innerstream); /* do not warn if
innerstream is GC'ed before stream */
((php_stream_memory_data*)self->innerstream->abstract)->owner_ptr =
&self->innerstream;
Expected result:
----------------
A normal build
Actual result:
--------------
prj/php5.2-200909161430/main/streams/memory.c", line 566.53: 1506-046
(S) Syntax error.
"/data/home/michael/prj/php5.2-200909161430/main/streams/memory.c",
line 566.105: 1506-209 (S) Character constants must end before the end
of a line.
"/data/home/michael/prj/php5.2-200909161430/main/streams/memory.c",
line 566.88: 1506-076 (W) Character constant 'ed before stream' has more
than 4 characters. No more than rightmost 4 characters are used.
....
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49572&edit=1