OCaml Forge
Issues
Search the entire project
This project's trackers
This project's releases
This project's news
Project
People
Advanced search
Log In
New Account
Home
My Page
Projects
Code Snippets
ocurl
Summary
Activity
Tracker
Lists
News
SCM
Files
Detail: [#1255] Incorrectly linked libcurl with when multiple versions are available
Issues: Browse
|
Download .csv
|
Monitor
[#1255] Incorrectly linked libcurl with when multiple versions are available
Date:
2013-02-07 20:56
Priority:
3
State:
Open
Submitted by:
Hezekiah Carty (
hcarty
)
Assigned to:
Nobody (None)
Hardware:
None
Resolution:
None
Severity:
normal
Version:
None
Component:
None
Operating System:
None
Product:
None
URL:
Summary:
Incorrectly linked libcurl with when multiple versions are available
Detailed description
Found/tested on OCaml 3.12.1 64bit, RHEL 5
ocurl's configure script cuts pieces out of the 'curl-config --libs' output. This can result in linking against a different version of libcurl than the one curl-config points to.
For example, if you have a system libcurl under /usr and a custom version under $HOME,
curl-config --libs | cut -d ' ' -f 2-
will drop the -L$HOME/path/to/lib flag. This will cause the library to link against the system libcurl.so under /usr.
Followup
Message
Date: 2013-02-25 18:37
Sender:
Hezekiah Carty
A similar error occurs on CentOS 6 using the system libcurl packages. The pipe through 'cut' drops the -lcurl which breaks linking.
Date: 2013-02-07 21:13
Sender:
Hezekiah Carty
And a patch against the latest master to implement the change.
Date: 2013-02-07 21:01
Sender:
Hezekiah Carty
A local fix seems to be to drop the pipe to cut from line 9 of configure.in/line 1797 of configure (latest git revision in master as of February 2, 2013). I don't know why cut was included here originally or what other negative effects this could have for other users.
Attached Files:
Attachments:
ocurl-configure.patch
Changes:
Field
Old Value
Date
By
File Added
203: ocurl-configure.patch
2013-02-07 21:13
hcarty