Bug 202202 - ld can't find libcurl on x86_64
ld can't find libcurl on x86_64
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: binutils (Show other bugs)
5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-11 11:18 EDT by Ben
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-08-11 11:23:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ben 2006-08-11 11:18:46 EDT
Description of problem:

ld can't seem to find libcurl on x86_64, even though it is installed.

Version-Release number of selected component (if applicable):

GNU ld version 2.16.91.0.6 20060212
  Supported emulations:
   elf_x86_64
   elf_i386
   i386linux

lrwxrwxrwx 1 root root     16 Apr  4 08:01 /usr/lib64/libcurl.so.3 ->
libcurl.so.3.0.0
-rwxr-xr-x 1 root root 235792 Mar 21 01:58 /usr/lib64/libcurl.so.3.0.0





How reproducible:

Always.

Steps to Reproduce:

The final results of 

ld -o foo foo.o -t --verbose -lcurl

show that ld is looking in the right directories, but it cannot seem to find
libcurl, which is clearly installed. (Default curl rpm install.):

ld: mode elf_x86_64
attempt to open foo.o succeeded
foo.o
attempt to open /usr/x86_64-redhat-linux/lib64/libcurl.so failed
attempt to open /usr/x86_64-redhat-linux/lib64/libcurl.a failed
attempt to open /usr/local/lib64/libcurl.so failed
attempt to open /usr/local/lib64/libcurl.a failed
attempt to open /lib64/libcurl.so failed
attempt to open /lib64/libcurl.a failed
attempt to open /usr/lib64/libcurl.so failed
attempt to open /usr/lib64/libcurl.a failed
attempt to open /usr/x86_64-redhat-linux/lib/libcurl.so failed
attempt to open /usr/x86_64-redhat-linux/lib/libcurl.a failed
attempt to open /usr/lib64/libcurl.so failed
attempt to open /usr/lib64/libcurl.a failed
attempt to open /usr/local/lib/libcurl.so failed
attempt to open /usr/local/lib/libcurl.a failed
attempt to open /lib/libcurl.so failed
attempt to open /lib/libcurl.a failed
attempt to open /usr/lib/libcurl.so failed
attempt to open /usr/lib/libcurl.a failed
ld: cannot find -lcurl
Comment 1 Jakub Jelinek 2006-08-11 11:23:30 EDT
What you have installed is just the runtime library.
You really need also /usr/lib64/libcurl.so symlink if you want to link against it.
Such symlinks are usually included in *-devel packages, together with the
header files for that package.  So, try to install libcurl-devel.

Note You need to log in before you can comment on or make changes to this bug.