From: Operating system: Debian PHP version: 5.4.0RC7 Package: Compile Failure Bug Type: Bug Bug description:Unable to compile pdo-mysql
Description: ------------ Compilation error. I get this if I omit --with-pdo-mysql too, I think --with-pdo- sqlite is default. In such case I get a different error: ... Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo - lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lrt -lxml2 -lxml2 -lxml2 - lcrypt -lxml2 -lxml2 -lxml2 -lcrypt -o sapi/cli/php ext/pdo_sqlite/.libs/pdo_sqlite.o: In function `get_module': /usr/local/src/php-5.4.0RC7/ext/pdo_sqlite/pdo_sqlite.c:74: multiple definition of `get_module' ext/pdo/.libs/pdo.o:/usr/local/src/php-5.4.0RC7/ext/pdo/pdo.c:171: first defined here collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Test script: --------------- $ ./configure --enable-fpm --enable-cli --enable-mbstring --enable-inline-optimization --with-pdo-mysql $ make && make install Expected result: ---------------- Generating files configure: creating ./config.status ,,,,,, Actual result: -------------- ..... Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo - lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lrt -lxml2 -lxml2 -lxml2 - lcrypt -lxml2 -lxml2 -lxml2 -lcrypt -o sapi/cli/php ext/pdo_sqlite/.libs/pdo_sqlite.o: In function `get_module': /usr/local/src/php-5.4.0RC7/ext/pdo_sqlite/pdo_sqlite.c:74: multiple definition of `get_module' ext/pdo/.libs/pdo.o:/usr/local/src/php-5.4.0RC7/ext/pdo/pdo.c:171: first defined here collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 -- Edit bug report at https://bugs.php.net/bug.php?id=61051&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61051&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61051&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61051&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61051&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61051&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61051&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61051&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61051&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61051&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61051&r=support Expected behavior: https://bugs.php.net/fix.php?id=61051&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61051&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61051&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61051&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61051&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61051&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61051&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61051&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61051&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61051&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61051&r=mysqlcfg