* problem with anything to do with gnulib on Solaris UNIX
@ 2023-03-03 8:51 Dennis Clarke
2023-03-03 9:14 ` strict C99 (was: problem with anything to do with gnulib on Solaris UNIX) Bruno Haible
0 siblings, 1 reply; 2+ messages in thread
From: Dennis Clarke @ 2023-03-03 8:51 UTC (permalink / raw)
To: bug-gnulib
Good day gnulib and or diffutils folks :
Minor issue on ye old sparcv9 Solaris 10 where the compile of diffutils
goes perfect in strict C99 mode. The testsuite fails when it tries to go
after the gnulib-tests and that stops the show.
So I ripped out the gnulib-tests from the Makefile.foo and that
seems to solve everything just fine :
pollux$ pwd
/usr/local/build/diffutils-3.9_SunOS5.10_sun4u.003
pollux$
pollux$ uname -a
SunOS pollux 5.10 Generic_150400-67 sun4u sparc SUNW,UltraAX-i2
pollux$
I had already built all this before so :
pollux$ diff --version
diff (GNU diffutils) 3.9
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.
pollux$
pollux$ diff -u Makefile.am.orig Makefile.am
--- Makefile.am.orig 2023-01-02 01:18:33.000000000 +0000
+++ Makefile.am 2023-03-02 20:02:23.462045738 +0000
@@ -19,7 +19,7 @@
ALL_RECURSIVE_TARGETS =
EXTRA_DIST = bootstrap exgettext ChangeLog-2008 cfg.mk dist-check.mk
-SUBDIRS = lib src tests doc man po gnulib-tests
+SUBDIRS = lib src tests doc man po
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
pollux$
pollux$ diff -u Makefile.in.orig Makefile.in
--- Makefile.in.orig 2023-01-15 21:23:10.000000000 +0000
+++ Makefile.in 2023-03-02 20:02:34.704443677 +0000
@@ -1643,7 +1643,7 @@
top_srcdir = @top_srcdir@
ALL_RECURSIVE_TARGETS = distcheck-hook
EXTRA_DIST = bootstrap exgettext ChangeLog-2008 cfg.mk dist-check.mk
-SUBDIRS = lib src tests doc man po gnulib-tests
+SUBDIRS = lib src tests doc man po
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
gen_start_date = '2009-11-11 15:00'
pollux$
Problem solved on Solaris and maybe we can detect __SunOS or something
to get past that?
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: strict C99 (was: problem with anything to do with gnulib on Solaris UNIX)
2023-03-03 8:51 problem with anything to do with gnulib on Solaris UNIX Dennis Clarke
@ 2023-03-03 9:14 ` Bruno Haible
0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2023-03-03 9:14 UTC (permalink / raw)
To: bug-gnulib; +Cc: Dennis Clarke
Hi Dennis,
Dennis Clarke wrote:
> Minor issue on ye old sparcv9 Solaris 10 where the compile of diffutils
> goes perfect in strict C99 mode. The testsuite fails when it tries to go
> after the gnulib-tests and that stops the show.
Most GNU programs are not plain ISO C applications, but rather POSIX
applications. For instance, many GNU source packages have a
#include <unistd.h>
here or there. Since <unistd.h> is not specified by ISO C [1], but by
POSIX [2], it makes no sense to attempt to build such programs in strict
C99 mode.
In particular, GNU diff opens its files through open(), not fopen(), and
is thus not an ISO C application.
Your build thus could already have failed way earlier than in the gnulib-tests.
For values of $CC and $CPPFLAGS that are known to work, see
https://gitlab.com/ghwiki/gnow-how/-/wikis/Platforms/Configuration
Bruno
[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3047.pdf
[2] https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/unistd.h.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-03 9:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03 8:51 problem with anything to do with gnulib on Solaris UNIX Dennis Clarke
2023-03-03 9:14 ` strict C99 (was: problem with anything to do with gnulib on Solaris UNIX) Bruno Haible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).