YAQ on /usr/bin/ld

Labitt, Bruce labittb1 at tycoelectronics.com
Wed Jul 23 13:21:04 EDT 2008



-----Original Message-----
From: Bill McGonigle [mailto:bill at bfccomputing.com] 
Sent: Wednesday, July 23, 2008 12:54 PM
To: Labitt, Bruce
Cc: gnhlug-discuss at mail.gnhlug.org
Subject: Re: YAQ on /usr/bin/ld

On Jul 23, 2008, at 09:36, Labitt, Bruce wrote:

> libpcre.so and libpcre.a are in /lib64.  Why doesn't ld find it?,
> especially since I did pass the argument -L/lib64 ?
>
> Or am I looking in the wrong place?
>
> For giggles I tried /usr/bin/ld -L/lib64 -lpcre and get
> /usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching
> for -lpcre
> /usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when  
> searching for
> -lpcre
> /usr/bin/ld: cannot find -lpcre

Is it actually in /lib64, or in a subdirectory of it?  I don't  
believe ld recurses.  Try:

   ldconfig -v

to see what it thinks it's searching, at least by default.

You can add more paths in /etc/ld.so.conf.d/ files.

-Bill

-----
Bill McGonigle, Owner           Work: 603.448.4440
BFC Computing, LLC              Home: 603.448.1668
bill at bfccomputing.com		Cell: 603.252.2606
http://www.bfccomputing.com/    Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

[Labitt, Bruce] Bill, thanks for responding.  I was wondering why the
list was so quiet.  Everyone is really working hard, or on vacation?

Running as root, ldconfig sees libpcre.so in both /lib and /lib64.  /lib
is seen before /lib64.  What does this mean?

WRT adding paths, how does one name the file?  I presume the contents
are the desired path.

Regards,
-Bruce




More information about the gnhlug-discuss mailing list