[308] in bug-owl
Problems compiling owl 2.0.14 on OS X
daemon@ATHENA.MIT.EDU (Tara L Andrews)
Thu Dec 25 01:36:49 2003
Date: Thu, 25 Dec 2003 01:36:36 -0500
From: Tara L Andrews <taralee@alum.mit.edu>
To: bug-owl@mit.edu
Message-ID: <20031225063636.GA17089@elliptical.eccentricity.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
I recently tried to get an up-to-date owl on OS X. I ran into the following
compilation error:
tla@euclidean:~/Software/owl-2.0.14> make
gcc -g -O2 -Wall -g -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE -I. -I./libfaim
-DDATADIR=\"/usr/local/share\" -I/sw/include -c -o owl.o owl.c
owl.c: In function `main':
owl.c:605: error: structure has no member named `si_fd'
/usr/include/stdio.h: At top level:
owl.h:20: warning: `owl_h_fileIdent' defined but not used
owl.c:35: warning: `fileIdent' defined but not used
make: *** [owl.o] Error 1
As far as I can tell the siginfo_t structure is very different on OSX than it
is on Linux. Here is the snippet from <sys/signal.h>:
typedef struct __siginfo {
int si_signo; /* signal number */
int si_errno; /* errno association */
int si_code; /* signal code */
int si_pid; /* sending process */
unsigned int si_uid; /* sender's ruid */
int si_status; /* exit value */
void *si_addr; /* faulting instruction */
union sigval si_value; /* signal value */
long si_band; /* band event for SIGPOLL */
unsigned int pad[7]; /* Reserved for Future Use */
} siginfo_t;
This is pretty far beyond my C hacking skills to fix. Is it actually fixable?
-tara