Bug #71427 [Opn->Ana]: v5.6.# version fails, Sun CC, cannot initialize function: SCNG

From: Date: Sat, 19 Nov 2016 15:33:41 +0000
Subject: Bug #71427 [Opn->Ana]: v5.6.# version fails, Sun CC, cannot initialize function: SCNG
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205474@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71427&edit=1 ID: 71427 Updated by: rasmus@php.net Reported by: Christine dot Ross at healthstream dot com Summary: v5.6.# version fails, Sun CC, cannot initialize function: SCNG -Status: Open +Status: Analyzed Type: Bug Package: Compile Failure Operating System: Sparc Solaris 10 PHP Version: 5.6.17 Block user comment: N Private report: N New Comment: Odd. zend_language_scanner.c is a generated file so your local toolchain is generating files with DOS line-endings? Previous Comments: ------------------------------------------------------------------------ [2016-11-18 16:01:58] 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-01-21 18:22:23] 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 # ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71427&edit=1

« previous php.bugs (#205474) next »