SUMMARY: ELF Class error while compiling

From: Mike Brodbelt <mike_at_last.fm>
Date: Tue Feb 19 2008 - 11:44:46 EST
Mike Brodbelt wrote:

> # echo $LDFLAGS
> -L/usr/sfw/lib/amd64 -L/usr/local/lib/amd64 -R/usr/sfw/lib/amd64
> -R/usr/local/lib/amd64

<snip>

> So, I'm confused - it's building with a runtime link path of
> /usr/sfw/lib, and I can't seem to override this. Any advice would be
> much appreciated.

So, the problem turned out to be that the test program was linking
against a locally built 64-bit readline library, and when I'd built
that, I forgot to set the linker RPATH properly. Thanks to Francisco
Rocque who suggested some stuff that helped me find the problem. Lesson
learned - for runtime errors, "ldd -v" is your friend.

Mike
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Feb 19 11:45:09 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:10 EST