Subject: Re: pkg/36018: devel/glib2 from 2006Q4 will not compile on solaris express
To: None <pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: pkgsrc-bugs
Date: 03/16/2007 11:53:06
 /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/include/sys/types.h:45,
>                  from giounix.c:38:
> /usr/include/sys/feature_tests.h:353:2: #error "Compiler or options invalid 
for pre-UNIX 03 X/Open applications         and pre-2001 POSIX applications"
> 
> [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
> /usr/pkgsrc/devel/glib2/work/.gcc/bin/gcc -DHAVE_CONFIG_H -I. -I.. 
"-DG_LOG_DOMAIN=\"GLib\"" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED 
-DGLIB_COMPILATION "-DPREFIX=\"/usr/pkg\"" "-DPKGLOCALEDIR=\"lib\"" 
"-DPKG_SYSCONFDIR=\"/usr/pkg/etc\"" 
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -D_REENTRANT -O -Wall -MT 
giounix.lo -MD -MP -MF .deps/giounix.Tpo -c giounix.c -fPIC -DPIC -o 
.libs/giounix.o -std=gnu99 -L/usr/pkgsrc/devel/glib2/work/.buildlink/lib 
> 
> [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
> /usr/pkg/bin/libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. 
"-DG_LOG_DOMAIN=\"GLib\"" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED 
-DGLIB_COMPILATION "-DPREFIX=\"/usr/pkg\"" "-DPKGLOCALEDIR=\"lib\"" 
"-DPKG_SYSCONFDIR=\"/usr/pkg/etc\"" 
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -D_REENTRANT -O -Wall -MT 
giounix.lo -MD -MP -MF .deps/giounix.Tpo -c -o giounix.lo giounix.c 

> >Fix:
> none that I'm aware of.

Problem is with c99
for Solaris change this line:
USE_LANGUAGES=          c c++ c99

to

USE_LANGUAGES=          c c++

Gilles