Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2002 23:20:58 +1100
From:      Tim Robbins <tjr@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        current@FreeBSD.org
Subject:   Re: icecast broken by signal changes
Message-ID:  <20021118232058.A42329@dilbert.robbins.dropbear.id.au>
In-Reply-To: <20021118104328.GA33336@rot13.obsecurity.org>; from kris@obsecurity.org on Mon, Nov 18, 2002 at 02:43:28AM -0800
References:  <20021118104328.GA33336@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 18, 2002 at 02:43:28AM -0800, Kris Kennaway wrote:

> http://bento.freebsd.org/errorlogs/5-latest/icecast-1.3.12_1.log
> 
> cc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT  -I/usr/include/readline  -pthread
> threads.c: In function `thread_block_signals':
> threads.c:467: `SIGBUS' undeclared (first use in this function)
> threads.c:467: (Each undeclared identifier is reported only once
> threads.c:467: for each function it appears in.)
> *** Error code 1
> 
> Anyone care to fix? :)

The _POSIX_C_SOURCE #define in src/definitions.h was asking for a POSIX
environment that was inconsistent with what the code was actually using.
This patch makes it compile successfully, but I haven't tried running it.

Another way of fixing it might be to #define _POSIX_C_SOURCE to 200112.

--- src/definitions.h.old	Mon Nov 18 23:13:13 2002
+++ src/definitions.h	Mon Nov 18 23:10:41 2002
@@ -51,8 +51,10 @@
 # define __USE_POSIX
 #endif
 
+#if 0
 #ifndef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE 199506L
+#endif
 #endif
 
 /* This for freebsd (needed on 3.2 at least) */

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021118232058.A42329>