"Building GCJ for Windows" Scripts Issues (was Re: compiling gcj 4.0.2 for windows on unbuntu)

Ranjit Mathew rmathew@gmail.com
Mon Jul 24 17:01:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohan Embar wrote:
> 
> I downloaded your scripts today and they fail. You need to add
> "--without-x --disable-java-awt" to cfgxgcc.sh and cfgwingcc.sh,
> otherwise (and you can verify this by checking config.status and
> Makefile in your libjava build directory if you still have one lying around)
> X_CFLAGS gets set to -I/usr/include and this gets added to the compiler
> flags list. I'm guessing that you have an older gcc installed on your build
> machine and that the erroneous headers you're picking up don't conflict 
> enough with the MinGW ones to stop the build in its tracks. Just a guess,
> though.

Thanks for pointing that out. I've (re)added
"--without-x --disable-java-awt" to my cfg{x,w}gcc.sh scripts.

The libjava Makefile in my build folder had X_CFLAGS set
to just "/usr/X11R6/include" and that's probably why I
never saw this issue.

On your build machine, try this (in a suitably junk folder):

  touch Imakefile
  xmkmf
  grep INCROOT Makefile

On my machine, I see:

  INCROOT = /usr/X11R6/include

On your machine, you probably have "/usr/include" in there too.

Thanks,
Ranjit.

- --
Ranjit Mathew       Email: rmathew AT gmail DOT com

Bangalore, INDIA.     Web: http://rmathew.com/




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFExPzTYb1hx2wRS48RAm13AKCgp3gfQqSHtJgI9LxBpuVg5CCPwACeIVuG
2Hf8RjXQlIOpEMGud/B+0Kw=
=lSvU
-----END PGP SIGNATURE-----



More information about the Java mailing list