From: Operating system: Mac OSX 10.5.8 PHP version: 5.2.13 Package: Compile Failure Bug Type: Bug Bug description:Error in Zend-module when linking
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 bug report at http://bugs.php.net/bug.php?id=51862&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51862&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51862&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51862&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51862&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51862&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51862&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51862&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51862&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51862&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51862&r=support Expected behavior: http://bugs.php.net/fix.php?id=51862&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51862&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51862&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51862&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51862&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51862&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51862&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51862&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51862&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51862&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51862&r=mysqlcfg