[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore.
From: |
Simon Josefsson |
Subject: |
Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore. |
Date: |
Fri, 17 Jun 2011 07:51:55 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Mats Erik Andersson <address@hidden> writes:
> torsdag den 16 juni 2011 klockan 13:14 skrev Simon Josefsson detta:
>> Mats Erik Andersson <address@hidden> writes:
>>
>> > Dear all,
>> >
>> > we have clearly no support for OpenSolaris in our project.
>> > Since two weeks back I have a system running NexentaCore,
>> > providing me with some services, and more importantly,
>> > a test bed for portability!
>> >
>> > Already compiling 'libinetutils' leads to a failure.
>> > The problem is that 'libinetutils/setsig.c' tacitly
>> > assumes the presence of
>> >
>> > typedef sig_t;
>> >
>> > This does not apply to OpenSolaris:
>> >
>> > /* config.h */
>> >
>> > /* #undef HAVE_SIG_T */
>>
>> Glibc uses 'sighandler_t' for this, and gnulib should make sure it is
>> available. I've checked in a fix for this, please test!
>
> You must revert this, since you just broke the compilation in OpenBSD:
>
> CC setsig.o
> setsig.c:31: error: syntax error before "setsig"
> setsig.c:31: error: syntax error before "sighandler_t"
> setsig.c:32: warning: return type defaults to 'int'
> setsig.c:39: error: 'handler' undeclared (first use in this function)
> setsig.c:40: error: 'sig' undeclared (first use in this function)
> setsig.c:41: warning: return makes integer from pointer without a cast
Doesn't gnulib's signal.h provide the sighandler_t type? It should.
Can you try to track down why it doesn't work? What is
HAVE_SIGHANDLER_T in config.h for you?
signal.in.h contains:
/* Define sighandler_t, the type of signal handlers. A GNU extension. */
#if address@hidden@
# ifdef __cplusplus
extern "C" {
# endif
# if !GNULIB_defined_sighandler_t
typedef void (*sighandler_t) (int);
# define GNULIB_defined_sighandler_t 1
# endif
# ifdef __cplusplus
}
# endif
#endif
The gnulib manual says this should work for OpenBSD:
Gnulib module: signal
Portability problems fixed by Gnulib:
...
The type @code{sighandler_t} (a GNU extension) is not defined on most non-glibc
platforms:
MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, AIX 5.1, HP-UX 11,
IRIX 6.5, OSF/1 5.1, Solaris 11 2010-11, Cygwin, mingw, Interix 3.5, BeOS.
/Simon
- [bug-inetutils] Early compilation failure with NexentaCore., Mats Erik Andersson, 2011/06/15
- Re: [bug-inetutils] Early compilation failure with NexentaCore., Simon Josefsson, 2011/06/16
- Re: [bug-inetutils] Early compilation failure with NexentaCore., Mats Erik Andersson, 2011/06/16
- [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Mats Erik Andersson, 2011/06/16
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore.,
Simon Josefsson <=
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Alfred M. Szmidt, 2011/06/17
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Alfred M. Szmidt, 2011/06/17
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Mats Erik Andersson, 2011/06/17
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Alfred M. Szmidt, 2011/06/17
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Alfred M. Szmidt, 2011/06/17
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Simon Josefsson, 2011/06/17
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Mats Erik Andersson, 2011/06/17
- Re: [bug-inetutils] URGENT: Early compilation failure with NexentaCore., Simon Josefsson, 2011/06/17