Ticket 32: configure --with-ex doesn't work
$ ./configure --with-ex
<snip>
$ make
<snip>
gcc -I/usr/local/include -Ilib_al -Ilib_sa -DHAVE_CONFIG_H -O2 -pipe -I/usr/local/include -Ilib_al -Ilib_sa -c sio.c -fPIC -DPIC \
-o .libs/sio.o
sio.c: In function `sio_destroy_stage':
sio.c:311: error: syntax error before "else"
sio.c: At top level:
sio.c:311: warning: data definition has no type or storage class
sio.c:311: error: syntax error before '}' token
*** Error code 1
Apparently the cleanup macro in ex.h is causing the trouble. Here's a
quick fix:
--- sio.c.orig
+++ sio.c
@@ -48,6 +48,7 @@
/* support for OSSP ex based exception throwing */
#ifdef WITH_EX
#include "ex.h"
+#undef cleanup
#define SIO_RC(rv) \
( (rv) != SIO_OK && (ex_catching && !ex_shielding) \
? (ex_throw(sio_id, NULL, (rv)), (rv)) : (rv) )
Remarks:
Properties:
Type: |
code |
|
Version: |
0.9.2 |
Status: |
closed |
|
Created: |
2004-Feb-11 09:26 |
Severity: |
3 |
|
Last Change: |
2004-Feb-11 09:36 |
Priority: |
3 |
|
Subsystem: |
sio |
Assigned To: |
rse |
|
Derived From: |
|
Creator: |
anonymous |