linker warnings on Mac OS X

John Gabriele john3g@bestweb.net
Thu Jul 8 18:45:00 GMT 2004


I'm using gcj 3.4.0 on Mac OS X and just successfully built
pdftk ( http://www.accesspdf.com/pdftk/ ) with help from
the maintainer. My gcj is installed in /usr/local/gcj, and
/usr/local/gcj/bin is *not* in my $PATH (so the makefiles
contain full path names for gcj and g++).
pdftk seems to be written in Java but then has one C++ file
(pdftk.cc) to build at the end.
The last lines of output in my terminal window give a bunch of
linker warnings:
[snip]
/usr/local/gcj/bin/g++ pdftk.cc ../itext-1.1/com/lowagie/text/pdf/pdf.a 
../itext-1.1/com/lowagie/text/text.a 
../itext-1.1/com/lowagie/text/pdf/pdf.a 
../itext-1.1/com/lowagie/text/pdf/codec/codec.a 
../itext-1.1/com/lowagie/text/pdf/wmf/wmf.a 
../itext-1.1/com/lowagie/text/markup/markup.a 
../itext-1.1/java_local/security/security.a 
../itext-1.1/gnu_local/java/security/provider/provider.a 
../itext-1.1/gnu_local/java/security/security.a 
../itext-1.1/gnu/gcj/convert/convert.a -I../itext-1.1 -lgcj -liconv 
-DPDFTK_VER=0.941 -o pdftk
/usr/bin/ld: warning multiple definitions of symbol _sqrt
/usr/local/gcj/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../ 
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _sqrt
/usr/lib/libSystem.dylib(sqrt970.o) definition of _sqrt
/usr/bin/ld: warning multiple definitions of symbol _log
/usr/local/gcj/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../ 
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _log
/usr/lib/libSystem.dylib(tableLogD.o) definition of _log
/usr/bin/ld: warning multiple definitions of symbol _rint
/usr/local/gcj/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../ 
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _rint
/usr/lib/libSystem.dylib(rndint.o) definition of _rint
/usr/bin/ld: warning multiple definitions of symbol _rintf
/usr/local/gcj/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../ 
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _rintf
/usr/lib/libSystem.dylib(rndint.o) definition of _rintf
/usr/bin/ld: warning multiple definitions of symbol _exp
/usr/local/gcj/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../ 
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _exp
/usr/lib/libSystem.dylib(tableExpD.o) definition of _exp
/usr/bin/ld: warning multiple definitions of symbol _scalbn
/usr/local/gcj/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../ 
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _scalbn
/usr/lib/libSystem.dylib(scalb.o) definition of _scalbn
/usr/bin/ld: warning multiple definitions of symbol _copysign
/usr/local/gcj/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../ 
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _copysign
/usr/lib/libSystem.dylib(copysign.o) definition of _copysign
Are these serious? The executable built and seems to work fine.
By the way, looking in my /usr/local/gcj/bin directory, I see no "ar" 
tool.
Hmm... no "ld" either. Why are they missing? The pdftk build uses 
these, so
I guess it's ok that /usr/bin/ar and /usr/bin/ld are being used along 
with
the rest of the tools in /usr/local/gcj/bin, right?
Thanks,
---J


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /