Conflict between GCC G++ and Solaris 2.6

Nathan Sidwell nathan@acm.org
Mon Aug 23 01:35:00 GMT 1999


Alexandre Oliva wrote:
> 
> On Aug 23, 1999, stefan.becker@nokia.com wrote:

> > Actually the problem lies deeper: When g++ is used as standard compiler
> > during configure (DDD uses ONLY C++ code) then most of the X11 checks fail,
> > because of the ANSI C++ violations, e.g. in X11/XUtils.h, which cause g++ to
> > abort when -fpermissive is NOT set. I have submitted a bug report that the
> > autoconf tests should be updated to include -fpermissive.
> 
> Nope, the proper fix is to use `f-isystem /usr/openwin/include' instead
> of `-I/usr/openwin/include'
Nope :-)

The fix is to correct autoconf so that it does not add -I/usr/openwin include
to the include path, but allow the compiler to see them in /usr/include via
the symbolic link that is 

nathan@manao:165>ls -ld /usr/include/X11 
   2 lrwxrwxrwx   1 root     root          22 Dec  2  1998 /usr/include/X11 -> ../openwin/include/X11/

The workaround for this is
./configure --x-libraries= --x-includes=

[I beleive the symbolic link is standard on solaris?]

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
        I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk


More information about the Gcc-bugs mailing list