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
