|  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: 2016-11-19 15:33 UTC
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:
Status: Analyzed 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:
Solve the problem:
45 - 44 = ?
Subscribe to this entry?

 [2016-01-21 18:22 UTC] Christine dot Ross at healthstream dot com
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

# 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 \



Add a Patch

Pull Requests

Add a Pull Request


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]
-Status: Open +Status: Analyzed
 [2016-11-19 15:33 UTC]
Odd. zend_language_scanner.c is a generated file so your local toolchain is generating files with DOS line-endings?
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 23 14:01:23 2021 UTC