[Bug 412] New: _REENTRANT has to be defined for Corba build

For more information about this bug, visit
A new bug was added:
Summary: _REENTRANT has to be defined for Corba build
Product: RTT
Version: 1.2.0
Platform: All
OS/Version: RTAI/LXRT 3.x
Status: NEW
Severity: normal
Priority: P2
Component: Corba
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] coenen [..] ...

When building for lxrt with Corba enabled, make complains with the message :
"/usr/include/ace/config-lite.h:71:7 error : #error _REENTRANT has to be
defined!"

[Bug 412] _REENTRANT has to be defined for Corba build

For more information about this bug, visit

peter [dot] soetens [..] ... changed:

What |Removed |Added
---------------------------------------------------------------------------
Target Milestone|--- |1.2.1
Resolution| |FIXED
Status|NEW |RESOLVED

------- Comment #1 from peter [dot] soetens [..] ... 2007-06-04 13:07

$ svn di rtt-config.h.in
Index: rtt-config.h.in
===================================================================
--- rtt-config.h.in (revision 28234)
+++ rtt-config.h.in (working copy)
@@ -101,8 +101,15 @@

#cmakedefine ENABLE_CORBA
#ifdef ENABLE_CORBA
-#define OROPKG_CORBA
-#define OROINT_OS_CORBA 1
+
+# define OROPKG_CORBA
+# define OROINT_OS_CORBA 1
+
+// Some ACE versions require this
+# if !defined(_REENTRANT)
+# define _REENTRANT 1
+# endif
+
#endif

//
sspr@lt00129:~/src/Orocos/trunk/rtt/src
$ svn ci rtt-config.h.in -m"Fix bug #412: _REENTRANT has to be defined for
Corba build.
> The easiest backwards compatible fix is to define it in the rtt-config.h file.
> "
Sending rtt-config.h.in
Transmitting file data .
Committed revision 28239.

--
(this mail is best viewed with a fixed font)
Configure bugmail: http://www.fmtc.be/orocos-bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm