Edit report at https://bugs.php.net/bug.php?id=51862&edit=1
ID: 51862 Updated by: fel...@php.net Reported by: mdobrinic at cozmanova dot com Summary: Error in Zend-module when linking -Status: Open +Status: Bogus Type: Bug Package: Compile Failure Operating System: Mac OSX 10.5.8 PHP Version: 5.2.13 Block user comment: N Private report: N New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2010-05-19 18:39:38] mdobrinic at cozmanova dot com Description: ------------ When trying to compile php, everything goes but linking produces this error: ld: duplicate symbol _yytext in Zend/zend_ini_scanner.o and Zend/zend_language_scanner.o for architecture i386 collect2: ld returned 1 exit status ld: duplicate symbol _yytext in Zend/zend_ini_scanner.o and Zend/zend_language_scanner.o for architecture x86_64 collect2: ld returned 1 exit status ld: duplicate symbol _yytext in Zend/zend_ini_scanner.o and Zend/zend_language_scanner.o for architecture ppc collect2: ld returned 1 exit status ld: duplicate symbol _yytext in Zend/zend_ini_scanner.o and Zend/zend_language_scanner.o for architecture ppc64 collect2: ld returned 1 exit status Test script: --------------- I have looked into other bug reports concerning this message, and came to the conclusion that the linked on Mac OSX is a bit more strict than on other platforms. To make the error go away, I modified the sourcefiles: Zend/zend_ini_scanner.c and Zend/zend_language_scanner.c Both zend_ini_scanner.c as well as zend_language_scanner.c contained a line with: char *yytext that I changed to become: extern char *yytext It's a quick-fix that makes the linker error go away, but I don't know whether it solves the problem. Expected result: ---------------- does this solve the problem, or does it only do away with the linker error? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=51862&edit=1