This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.3 MingW Crossed-Native Build Fails on fastjar


> > 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.)

BTW, if you're using 3.3/3.4, this should no longer be necessary for
MinGW as the GCC specs file itself adds -lmingwex. You *are* using the
3.3 cross-compiler to build the crossed native compiler, right?

Ranjit.

-- 
Ranjit Mathew        Email: rmathew AT hotmail DOT com
Bangalore,           
INDIA.               Web: http://ranjitmathew.tripod.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]