This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: javax.mail, classpath and classpathx
On Thu, 2003-10-30 at 19:37, chris burdess wrote:
> Ãyvind Harboe wrote:
> > I have now finally been able to compile my test app, but it fails with
> > the error message below. I did have to remove all the ftp classes from
> > inetlib.jar as they didn't compile.
>
> i have compiled inetlib to a native shared object with gcj 3.4 (from cvs
> head) - no problems with the ftp classes whether from a jar or the
> sources. if you have further information on this let me know.
I spoke too soon. Arrghh...
The problem is not in compiling inetlib.o, but when I try to link
everything together.
[oyvind@famine testgcc]$
/datal/gcc/build/crossgcc/bin/i686-pc-mingw32-gcj -c --classpath
jsse.jar:javax-security.jar -o inetlib.o inetlib.jar
[oyvind@famine testgcc]$
/datal/gcc/build/crossgcc/bin/i686-pc-mingw32-gcj --main=Send -o send
activation.o gnumail.o inetlib.o javax-security.o send.o smtp.o jsse.o
inetlib.o(.text+0x7ff4): In function
`ZN3gnu4inet3ftp22CompressedOutputStream5writeEi':
/home/oyvind/testgcc/inetlib.jar: undefined reference to
`gnu::inet::ftp::DTPOutputStream::write(JArray<char>*, int, int)'
inetlib.o(.text+0x820f): In function
`ZN3gnu4inet3ftp22CompressedOutputStream5writeEP6JArrayIcEii':
/home/oyvind/testgcc/inetlib.jar: undefined reference to
`gnu::inet::ftp::DTPOutputStream::write(JArray<char>*, int, int)'
And my workaround:
[oyvind@famine testgcc]$ zip -d inetlib.jar *ftp*
deleting: gnu/inet/ftp/
deleting: gnu/inet/ftp/DTP.class
deleting: gnu/inet/ftp/ActiveModeDTP.class
deleting: gnu/inet/ftp/DTPOutputStream.class
deleting: gnu/inet/ftp/DTPInputStream.class
deleting: gnu/inet/ftp/FTPConnection.class
deleting: gnu/inet/ftp/FTPResponse.class
deleting: gnu/inet/ftp/FTPException.class
deleting: gnu/inet/ftp/PassiveModeDTP.class
deleting: gnu/inet/ftp/FTPURLConnection.class
deleting: gnu/inet/ftp/FTPURLStreamHandler.class
deleting: gnu/inet/ftp/CompressedOutputStream.class
deleting: gnu/inet/ftp/StreamOutputStream.class
deleting: gnu/inet/ftp/StreamInputStream.class
deleting: gnu/inet/ftp/CompressedInputStream.class
deleting: gnu/inet/ftp/BlockOutputStream.class
deleting: gnu/inet/ftp/BlockInputStream.class
[oyvind@famine testgcc]$
/datal/gcc/build/crossgcc/bin/i686-pc-mingw32-gcj -c --classpath
jsse.jar:javax-security.jar -o inetlib.o inetlib.jar
[oyvind@famine testgcc]$
/datal/gcc/build/crossgcc/bin/i686-pc-mingw32-gcj --main=Send -o send
activation.o gnumail.o inetlib.o javax-security.o send.o smtp.o jsse.o
[oyvind@famine testgcc]$