[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/37200: devel/glib2 fails on Solaris 5.9 due to compiler flags in sunpro.mk
The following reply was made to PR pkg/37200; it has been noted by GNATS.
From: Ulrich Habel <uli%habel.name@localhost>
Subject: Re: pkg/37200: devel/glib2 fails on Solaris 5.9 due to compiler
flags in sunpro.mk
Date: Thu, 25 Oct 2007 23:48:01 +0200 (CEST)
On Thu, 25 Oct 2007, Bernd Ernesti wrote:
> Do you use cc from /opt/SUNWspro/bin/cc (where there could be a link to it
> in /usr/bin) or is cc a wrapper?
> I still suspect it is a problem with one or two compiler versions and not
> the OS
admin@sun-install ~ > which cc
admin@sun-install ~ > file /opt/SUNWspro/bin/cc
/opt/SUNWspro/bin/cc: ELF 32-bit MSB executable SPARC32PLUS Version 1,
V8+ Required, dynamically linked, stripped
It's the only compiler which has been installed. However I think it has
been explained in the manpage already. Due to incompatible header files in
/usr/include for Solaris 8 and 9 the option -xc99 won't work as it
specifies "all". There are two options - "none" which won't be a good idea
as parts of c99 are supported and we should make a use of them if they are
available. "no_lib" is the option of choice I think.
If it doesn't break Solaris 10 we would get some more packages on the
Solaris platform with this change, at least for Solaris 8/9.
btw - I tested it on Solaris 8:
root@cms-stage-admin / # cc -xc99 main.c
cc: -xc99=lib is not available on SunOS 5.8
root@cms-stage-admin / #
same compiler version as on Solaris 9.
So, right now we need someone with Solaris 8/9 and a SUNWpro compiler to
confirm it - however it has been proven that the patch is wrong as Solaris
8 needs to be excluded from the setting of "-xc99" as well.
After the confirmation we can decide if a change just enables
Solaris 10 or excludes Solaris 8/9.
The change from sketch@ broke pkgsrc-2007Q2/3.
btw. there had been alot updates for SunPro compiler 11. I updated it - I
never noticed the error on my pkgsrc-2007Q2 builds so far. I'll check the
Main Index |
Thread Index |