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: Crossed-native build not picking up native runtime #include


Ranjit,

I think I figured it out.

I had told you that I hadn't rebuilt the cross compiler, deeming it to be
unneccessary. Here is what seems to have happened:

- when I had first configured the cross compiler, the --with-headers line in your
  configure script made it copy the headers I had unpacked into
  $XGCC_DIR/mingw32/include to $XGCC_DIR/mingw32/sys-include, which comes
  earlier in the include path

- later, I unpacked my new runtime, creating a new $XGCC_DIR/mingw32/include/dirent.h,
  but leaving the old one in $XGCC_DIR/mingw32/sys-include untouched

- the configure script for the crossed-native compiler merely defines a bogus
  prototype for scandir and tests for link-time existence of the function, which
  succeeds because scandir is present in my new library

- when trying to compile jcf-io.c, the compiler complains that scandir doesn't
  exist because it picks up the old dirent.h header in $XGCC_DIR/mingw32/sys-include

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/





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