Re: libgcj.so: undefined reference to `ip'

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 12/16/2010 03:09 AM, Xingxing Pan wrote:
> Hi, guys.
>
> I'm compiling gcc-4.4.2 on arm similar platform and getting a fail
> during the link stage.
> Using command `nm' to read symbols in libgcj.so, i find the symbol
> `ip' is undefined.
> I grep the libjava directory, but cannot find the definition for `ip'.
> Could someone tell me where its definition and use which library to
> resolve the reference in libgcj.so?

Go through all the object files in the build dir:

find . -name '*.o' | while read i
do
echo $i
nm $i | egrep '\<ip\>'
done

You may get a lot of false positives, but see how that goes.

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.