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=c99" 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=c99. This breaks
> ghostscript, netpbm and kdelibs at least. The simplest fix in this
> case is to not set USE_LANGUAGES=c99 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.h
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/types.h
sys/time.h stdlib.h stddef.h)
############################################################
# Check for typedefs, structures, and compiler characteristics.
i'll commit the regenerated 'configure' script shortly.
regards,
--
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org> --
Attachment:
pgpdI4pz7js8B.pgp
Description: PGP signature