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: 2016-11-19 15:33 UTC
Votes:3
Avg. Score:5.0 ± 0.0
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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?
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 09:01:27 2019 UTC