This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCC 3.3 MingW Crossed-Native Build Fails on fastjar
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java at gcc dot gnu dot org
- Date: Sat, 15 Feb 2003 06:56:29 +0530
- Subject: Re: GCC 3.3 MingW Crossed-Native Build Fails on fastjar
- References: <A0YUTRMG4XC3V76QMGCONF006ZYEBVU.3e4d17c0@p733>
> The build fails on fastjar with the following unresolved symbols:
>
> jartool.o(.text+0x12ed):jartool.c: undefined reference to `opendir'
> jartool.o(.text+0x14b0):jartool.c: undefined reference to `readdir'
> jartool.o(.text+0x153a):jartool.c: undefined reference to `closedir'
These are defined in the MinGW extra library libmingwex.a - you need
to add -lmingwex to $LIBS in fastjar's configure script when it detects
MinGW. If you have my GCJ 3.2 patches handy, just look for the part
where it says "$LIBS = $LIBS -lregex -lmingwex" and "extrapolate" it
to your current snapshot. (You don't need -lregex now.)
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore,
INDIA. Web: http://ranjitmathew.tripod.com/