Ticket #25858 (closed defect: invalid)
curl still links with openssl 0.9.8
| Reported by: | dfingonnet@… | Owned by: | ryandesign@… |
|---|---|---|---|
| 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
comment:2 Changed 3 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 3 years ago by ryandesign@…
- Status changed from new to assigned
- Owner changed from macports-tickets@… to ryandesign@…
- Port changed from php5-curl to curl
- Summary changed from php5-curl works in command line but not in apache2 to curl 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.


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