bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strsignal on NetBSD [was: m4-1.4.15 issues]


From: Eric Blake
Subject: strsignal on NetBSD [was: m4-1.4.15 issues]
Date: Thu, 09 Sep 2010 14:44:20 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

[adding bug-gnulib, after sanitizing some details]

On 09/09/2010 02:36 PM, Nelson H. F. Beebe wrote:
I got m4-1.4.15 to build on NetBSD 5.0.2 with this
source code patch, and change in compiler options:

  % diff -c tests/test-strsignal.c.~1~ tests/test-strsignal.c
*** tests/test-strsignal.c.~1~  Mon Mar  8 14:47:55 2010
--- tests/test-strsignal.c      Thu Sep  9 14:23:51 2010
***************
*** 21,26 ****
--- 21,28 ----

   #include<string.h>

+ #include<unistd.h>
+
   #include "signature.h"
   SIGNATURE_CHECK (strsignal, char *, (int));

That's a bug in NetBSD's headers (POSIX requires strsignal in <string.h>, not <unistd.h>), but one that we can easily work around, by making our replacement <string.h> pick up <unistd.h> for NetBSD. Thanks for the report.

Add -D_NETBSD_SOURCE to CFLAGS to expose the hidden prototype
of strsignal:

Hmm - I don't see _NETBSD_SOURCE listed in m4/extensions.m4; maybe that means gl_USE_SYSTEM_EXTENSIONS needs to be aware of yet another spelling to get this automatically added to config.h?


The test suite then reported:

FAIL: test-nl_langinfo.sh

Bruno may have more ideas about how to tackle this failure.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]