php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61051 Unable to compile pdo-mysql
Submitted: 2012-02-10 21:04 UTC Modified: 2012-02-10 21:55 UTC
From: php at martins-creations dot co dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.4.0RC7 OS: Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at martins-creations dot co dot uk
New email:
PHP Version: OS:

 

 [2012-02-10 21:04 UTC] php at martins-creations dot co dot uk
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-10 21:55 UTC] php at martins-creations dot co dot uk
-Status: Open +Status: Closed
 [2012-02-10 21:55 UTC] php at martins-creations dot co dot uk
make clean :<
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 04 18:01:29 2025 UTC