php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29149 CURL extension can't be compiled as shared
Submitted: 2004-07-14 15:42 UTC Modified: 2004-12-29 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: fdsoft at pganet dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.0.0 OS: Mac OS X 10.3.4
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: fdsoft at pganet dot com
New email:
PHP Version: OS:

 

 [2004-07-14 15:42 UTC] fdsoft at pganet dot com
Description:
------------
I'm running Mac OS X 10.3.4 with curl 7.12.0 installed 
in /usr/local. PHP 4.3.8's version of the curl extension 
still compiles OK (as shared).

Trying to compile the curl extension *as a shared 
module* for PHP 5.0.0 results in the following error 
message:

gcc -flat_namespace -undefined suppress -o .libs/curl 
-bundle  .libs/interface.o .libs/multi.o .libs/streams.o  
-L/usr/local/lib /usr/local/lib/libcurl.dylib -lssl 
-lcrypto -lz
ld: multiple definitions of symbol _le_curl
.libs/interface.o definition of _le_curl in section 
(__DATA,__common)
.libs/multi.o definition of _le_curl in section 
(__DATA,__common)
ld: multiple definitions of symbol _le_curl_multi_handle
.libs/interface.o definition of _le_curl_multi_handle in 
section (__DATA,__common)
.libs/multi.o definition of _le_curl_multi_handle in 
section (__DATA,__common)
.libs/streams.o definition of _le_curl in section 
(__DATA,__common)
.libs/streams.o definition of _le_curl_multi_handle in 
section (__DATA,__common)
make: *** [curl.la] Error 1


Configure parameter used was --with-curl=shared,/usr/
local

Again, it doesn't occur if the CURL extension is built 
in statically, so it's no biggie.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-21 07:47 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip


 [2004-12-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-04-11 22:47 UTC] ruben at lingo dot com dot mx
Issue still exists. Curl can be compiled into the executable, but --with-curl=shared has no effect.

php-5.1.2
Red Hat Enterprise Linux WS release 4 (Nahant)  
curl-devel-7.12.1-8.rhel4 

This is the configuration:
./configure  --enable-fastcgi --enable-discard-path --enable-force-redirect --with-gd=shared --with-pgsql=shared --with-mysql=shared --enable-exif=shared --with-zlib-dir=/usr/lib --with-readline=shared --enable-soap=shared --enable-sqlite-utf8 --with-imap=shared --with-kerberos --with-imap-ssl --with-curl=shared  

Cheers
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 12:01:32 2025 UTC