Opened 14 years ago

Closed 14 years ago

#25858 closed defect (invalid)

curl still links with openssl 0.9.8

Reported by: dfingonnet@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: curl

Description

Hello,

I've just installed php5-curl:

sudo port install php5-curl

But I get with apache2 :

Call to undefined function curl_version()

The same script works like a charm in command line.

/opt/local/bin/php -r 'var_dump(curl_version());'

Any idea ?

Change History (5)

comment:1 Changed 14 years ago by dfingonnet@…

I found the problem but don't know how to deal with it. In my apache/php logs, when I start apache, I get :

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so, 9): Library not loaded: /opt/local/lib/libssl.0.9.8.dylib
  Referenced from: /opt/local/lib/libcurl.4.dylib
  Reason: image not found in Unknown on line 0

comment:2 Changed 14 years ago by dfingonnet@…

the file /opt/local/lib/libssl.0.9.8.dylib doesn't exist But this one does /opt/local/lib/libssl.1.0.0.dylib

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Port: curl added; php5-curl removed
Status: newassigned
Summary: php5-curl works in command line but not in apache2curl still links with openssl 0.9.8

Remember to Cc ports' maintainers (in this case, that's me).

Your curl is still linking with the old openssl. That should have been fixed by r69520. I also increased the revision of php5-curl in r70108 to prompt a rebuild of that port.

Please selfupdate to make sure your MacPorts and port definitions are up to date:

sudo port selfupdate

View the list of outdated ports:

port outdated

php5-curl should be listed. Hopefully so is curl.

If curl is not listed, force it to upgrade anyway with:

sudo port clean curl
sudo port -n upgrade --force curl

Upgrade all other outdated ports:

sudo port clean outdated
sudo port upgrade outdated

Then restart the web server and try again.

comment:4 Changed 14 years ago by dfingonnet@…

It works !

Thanks Ryan

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed

Good, glad you got it working.

Note: See TracTickets for help on using tickets.