Mail Archives: geda-help/2014/04/27/17:11:00
On 14-04-27 04:53 PM, Peter Stuge wrote:
>
>> (2) I was going insane with the error "library xxx not found"
> The problem is that symbols can not be found, not the library.
> The symbols can't be found because the library isn't being linked.
Hold on --- I'm not sure I follow. When you compile, if some
modules / src files invoke a certain function from a library,
then one must link the library that contains that function
(I guess by "the symbols" you're referring to the functions
and global variables that are part of the library, right?)
So, you need to run at some point:
gcc [switches] -o outputfile -lxxx (assuming that library xxx
contains the requested functions/symbols).
If you don't link xxx, you get compiler (linker) errors referring
to "undefined symbol" or "undefined external symbol"
If library xxx can't be found, then you in principle get "could
not find library xxx" ....
So, am I understanding correctly, that when attempting to
compile, you get "undefined symbol" for some symbols from
glibc?? To me, that spells "defective Makefile" --- how is that
possible? Did you run ./configure and made sure that it ran
entirely without reporting any errors?
Again, I would double check the symlinks --- in my case, there
was a *mysteriously missing* symlink related to the libs, and
I was getting that weird error message (I think it was "lib not
found" .... but I wonder now, it may have been missing/undefined
symbols). Depending on how the linker checks whether a library
is present, the wrong error message could show up.
Like I said, there was absolutely no valid reason or explanation
for the missing symlinks --- yet they were missing! I wonder if a
similar thing is happening here.
Carlos
--
- Raw text -