Unix Programming - Re: Linking in a module?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2007 > Re: Linking in a module?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Linking in a module?
Paul Pluzhnikov

2007-09-24, 1:25 am

red floyd <no.spam@here.dude> writes:
[vbcol=seagreen]
> Trespasser wrote:

Correct.
[vbcol=seagreen]

Well, what did you try, and on what OS?

Given the libelf.so.0 filename, you are almost assuredly on an ELF
platform. If so, this should do the trick:

# sh/ksh/bash/zsh syntax:
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

# csh/tcsh syntax:
setenv LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
[vbcol=seagreen]

How should *we* know that? Are you able to link or aren't you?
[vbcol=seagreen]

No. Maybe it should include '-lelf', but adding '-llibelf' will
make static linker look for liblibelf.{a,so}, which likely doesn't
exist on your system.
[vbcol=seagreen]

Try '-L/usr/local/lib -lelf' (there should be a /usr/local/lib/libelf.so,
which should be a symlink to something else).
[vbcol=seagreen]

You didn't tell us what you are doing, so we don't have a clue
either. Try reading this:

http://catb.org/~esr/faqs/smart-questions.html

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com