OSSP CVS Repository

ossp - Ticket #32
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [History

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) )
[Add remarks]

Remarks:

Properties:

Type: code           Version: 0.9.2 
Status: closed          Created: 2004-Feb-11 09:26
Severity:          Last Change: 2004-Feb-11 09:36
Priority:          Subsystem: sio 
Assigned To: rse           Derived From:  
Creator: anonymous 

CVSTrac 2.0.1