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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 14:01:30 2024 UTC