Subject: Re: -std=gnu99 in compiler wrappers
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 08/12/2007 23:36:07
--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Mon, Feb 12, 2007 at 09:50:20AM +1300, Mark Davies wrote:
> The other package where c99 causes grief on Solaris is
> graphics/jasper.  The package itself builds with or without
> "USE_LANGUAGES=3Dc99" but if its on then one of the public jasper
> headers pulls in <stdbool.h> which then requires any package that uses
> jasper to also explicitly set USE_LANGUAGES=3Dc99.  This breaks
> ghostscript, netpbm and kdelibs at least.  The simplest fix in this
> case is to not set USE_LANGUAGES=3Dc99 for Solaris.

i just started using pkgsrc on Solaris again and hit this issue.

the simplest fix is actually to fix the problem in jasper.  that being
incorrect autoconf test for stdbool.h:

--- configure.ac.orig   2007-01-19 22:47:11.000000000 +0100
+++ configure.ac        2007-08-12 23:33:25.000000000 +0200
@@ -269,7 +269,8 @@ AC_CHECK_LIB(m, main)
 ############################################################

 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h limits.h unistd.h stdint.h stdbool.h io.h windows=
=2Eh sys/types.h sys/time.h stdlib.h stddef.h)
+AC_HEADER_STDBOOL
+AC_CHECK_HEADERS(fcntl.h limits.h unistd.h stdint.h io.h windows.h sys/typ=
es.h sys/time.h stdlib.h stddef.h)

 ############################################################
 # Check for typedefs, structures, and compiler characteristics.


i'll commit the regenerated 'configure' script shortly.


regards,

--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

--LZvS9be/3tNcYl/X
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFGv31HiwjDDlS8cmMRAl+XAJ9zZO1zSUttVqiFAvNQM444X4LpvACfWX5B
ePke/Qh3om3pKx6QvMIJzX0=
=mh0o
-----END PGP SIGNATURE-----

--LZvS9be/3tNcYl/X--