Patch to enable libgcj.dll for MinGW

Andrew Haley aph@redhat.com
Wed Sep 7 09:27:00 GMT 2005


TJ Laurenzo writes:
 > > It occurs to me that I made an assumption that this is still a
 > > problem. I originally noticed the problem on an earlier 4.1 source
 > > drop and kept the patch when I moved to HEAD. I'm going to rebuild
 > > against HEAD without any changes to gjavah.c and see what happens.
 > > I'll feel really dumb if this has already been fixed somewhere else.
 > > It's worth checking anyway. Stay tuned.
 > I just rebuilt the dll against against CVS headand verified that
 > without this patch the mingw build fails:
 > java/util/.libs/logging.o:logging.list:(.text+0x250): multiple
 > definition of `java::util::logging::Logger::getName(java::lang::String*,
 > void)'
 > java/util/logging/.libs/natLogger.o:natLogger.cc:(.text$_ZN4java4util7logging6Logger7getNameEPNS_4lang6StringEv[java::util::logging::Logger::getName(java::lang::String*,
 > void)]+0x0): first defined here
 > 
 > So, Andrew, if you figure out which macro will do the trick for
 > detecting this problem, do let me know.
OK. This is going to be a bit tricky. Please rebuild gjavah.o with
the options "-save-temps -Wp,-dD" and mail me (not the list!) 
I did it like this, with cut 'n paste:
zapata:~/gcc/build/gcc $ rm java/gjavah.o 
zapata:~/gcc/build/gcc $ make !$
make java/gjavah.o
gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -I. -Ijava -I/home/aph/gcc/gcc/gcc -I/home/aph/gcc/gcc/gcc/java -I/home/aph/gcc/gcc/gcc/../include -I/home/aph/gcc/gcc/gcc/../libcpp/include /home/aph/gcc/gcc/gcc/java/gjavah.c -o java/gjavah.o
zapata:~/gcc/build/gcc $ gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -I. -Ijava -I/home/aph/gcc/gcc/gcc -I/home/aph/gcc/gcc/gcc/java -I/home/aph/gcc/gcc/gcc/../include -I/home/aph/gcc/gcc/gcc/../libcpp/include /home/aph/gcc/gcc/gcc/java/gjavah.c -o java/gjavah.o -save-temps -Wp,-dD
zapata:~/gcc/build/gcc $ ls gjavah.i 
gjavah.i
Andrew.


More information about the Java mailing list

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