php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71427 v5.6.# version fails, Sun CC, cannot initialize function: SCNG
Submitted: 2016-01-21 18:22 UTC Modified: 2021-10-10 04:22 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: Christine dot Ross at healthstream dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.6.17 OS: Sparc Solaris 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
5 + 32 = ?
Subscribe to this entry?

 
 [2016-01-21 18:22 UTC] Christine dot Ross at healthstream dot com
Description:
------------
No problem building php 5.5.# with same configure script.  Build fails with 5.6.#, Sun CC 12.3.  Same results in v5.6.10 and 5.6.17.  I tried without enabling opcache but that didn't help.

Lots of white space character errors before it fails on line 70.  I saw something about flex and re2c so I installed re2c, and it didn't help.

Any help would be appreciated.

"Zend/zend_language_scanner.l", line 66: warning: invalid white space character in directive
"Zend/zend_language_scanner.l", line 67: warning: invalid white space character in directive
"Zend/zend_language_scanner.l", line 68: warning: invalid white space character in directive
"Zend/zend_language_scanner.l", line 69: warning: invalid white space character in directive
"Zend/zend_language_scanner.l", line 70: warning: function prototype parameters must have types
"Zend/zend_language_scanner.l", line 70: warning: old-style declaration or incorrect type for: SCNG
"Zend/zend_language_scanner.l", line 70: cannot initialize function: SCNG
"Zend/zend_language_scanner.l", line 70: undefined symbol: x




#!/bin/sh
#
# Configure PHP
#
PATH=/usr/bin:/usr/local/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sbin:/usr/dt/bin; export PATH
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/ssl/lib; export LD_LIBRARY_PATH
LD_RUN_PATH=/usr/local/ssl/lib:/usr/local/lib; export LD_RUN_PATH
#
env     CC=cc CXX=CC  \
        ./configure \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-mysql=mysqlnd \
        --with-pear \
        --with-libxml-dir=/usr \
        --with-mysqli=mysqlnd \
        --with-pdo-mysql=mysqlnd \
        --enable-mbstring \
        --with-curl \
        --with-gd \
        --with-jpeg-dir=/usr/lib \
        --enable-soap \
        --with-openssl=/usr/local/ssl \
        --enable-zip \
        --with-iconv=/opt/local \
        --enable-opcache

#!/end
#


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 16:01 UTC] zhaojz721 at gmail dot com
Looks like this was due to zend_language_scanner.c being in dos format. Using dos2unix on the file fixed the problem.
 [2016-11-19 15:33 UTC] rasmus@php.net
-Status: Open +Status: Analyzed
 [2016-11-19 15:33 UTC] rasmus@php.net
Odd. zend_language_scanner.c is a generated file so your local toolchain is generating files with DOS line-endings?
 [2021-09-28 09:34 UTC] cmb@php.net
-Status: Analyzed +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-09-28 09:34 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-10-10 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC