bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible Bug in directory search for link libraries on x86_64 linux


From: John DeFranco
Subject: Possible Bug in directory search for link libraries on x86_64 linux
Date: Wed, 05 Apr 2006 13:56:03 -0700
User-agent: Thunderbird 1.5 (X11/20051201)

On x86_64 systems it would seem that the search path for link libraries should be : /lib64, /usr/lib64, /lib, /usr/lib, etc. If not you end up getting the 32 bit libraries included first and then a link error. For example (cut down to only include the pertinent segments):
cc   -g -o test  o cl_rba_uds_test.o /usr/lib/libm.so \
       /usr/lib/libdl.so   objs/linux/md80.cup.hp.com/debug/cl_chain.o \
        -Lobjs/linux/debug -lmylib
/usr/lib/libm.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

In this case -lm and -ldl where sepecified as dependencies in the makefile. The proper path for /usr/lib/libm.so and /usr/lib/libdl.so should have been /usr/lib64/libm.so and /usr/lib64/libdl.so.

According to the doc I should be able to set this by a couple of methods (VPATH seems to be one), but I would think this should work right without me having to do that.


--
===========
John DeFranco                  Hewlett Packard Company
address@hidden           Availability Clusters Solution Lab
phone: 408 447-7543            19111 Pruneridge Ave., M/S 4101
fax:   408 447-0056            Cupertino, CA 95014




reply via email to

[Prev in Thread] Current Thread [Next in Thread]