gcj does not build on Solaris (X11 headers incorrect)

Martin Kahlert martin.kahlert@infineon.com
Thu Feb 22 02:28:00 GMT 2001


On Thu, Feb 22, 2001 at 11:21:23PM +1300, Bryce McKinlay wrote:
> Martin Kahlert wrote:
> 
> > The newly built g++ seems to insist on correct C++, but you will have to wait some
> > time for SUN to change their headers.
> >
> > Any suggestions?
> 
> Read the FAQ:
> 
> http://gcc.gnu.org/fom_serv/cache/25.html
> 
>   [ bryce ]
> 
> P.S. Or you could update to the latest tree - the xlib peers are disabled by default
> as of today.

Thanks for your reply.

This patch for libjava/Makefile leads (for me) to a working gcj on Solaris:

*** Makefile.in.old	Tue Feb 20 08:17:41 2001
--- Makefile.in	Thu Feb 22 10:45:05 2001
***************
*** 157,163 ****
  
  WARNINGS = -W -Wall
  AM_CXXFLAGS = -fno-rtti -fvtable-thunks -fasynchronous-exceptions \
! 	-fdollars-in-identifiers \
  	@LIBGCJ_CXXFLAGS@ @EXCEPTIONSPEC@ @X_CFLAGS@ $(WARNINGS) -D_GNU_SOURCE
  
  @USING_GCC_TRUE@AM_CFLAGS = @USING_GCC_TRUE@@LIBGCJ_CFLAGS@ $(WARNINGS)
--- 157,163 ----
  
  WARNINGS = -W -Wall
  AM_CXXFLAGS = -fno-rtti -fvtable-thunks -fasynchronous-exceptions \
! 	-fdollars-in-identifiers -fpermissive \
  	@LIBGCJ_CXXFLAGS@ @EXCEPTIONSPEC@ @X_CFLAGS@ $(WARNINGS) -D_GNU_SOURCE
  
  @USING_GCC_TRUE@AM_CFLAGS = @USING_GCC_TRUE@@LIBGCJ_CFLAGS@ $(WARNINGS)

Thanks again,
Martin.

-- 
The early bird gets the worm. If you want something else for       
breakfast, get up later.



More information about the Java mailing list