[openamq-dev] Build on AIX 5.3
Murphy, John
john.murphy at dowjones.com
Wed Aug 22 23:49:00 CEST 2007
Here are the changes we made to get OpenAMQ to build on AIX. Sorry it's
taken so long to get these back to you.
Index: OpenAMQ/base-1.2d5/smt/smtlib.h
===================================================================
--- OpenAMQ/base-1.2d5/smt/smtlib.h (revision 18129)
+++ OpenAMQ/base-1.2d5/smt/smtlib.h (working copy)
@@ -341,6 +341,7 @@
int event_destroy (EVENT *event);
void event_wait (void);
+#define thread_create thread_create_ /* To avoid collision in AIX */
THREAD *thread_create (const char *agent, const char *thread);
THREAD *thread_lookup (const char *agent, const char *thread);
int thread_destroy (THREAD *thread, Bool cleanup);
Index: OpenAMQ/base-1.2d5/smt/smt3.h
===================================================================
--- OpenAMQ/base-1.2d5/smt/smt3.h (revision 18129)
+++ OpenAMQ/base-1.2d5/smt/smt3.h (working copy)
@@ -381,6 +381,7 @@
int event_destroy (EVENT *event);
void event_wait (void);
+#define thread_create thread_create_ /* Due to collision in AIX */
THREAD *thread_create (const char *agent, const char *thread);
THREAD *thread_lookup (const char *agent, const char *thread);
int thread_destroy (THREAD *thread, Bool cleanup);
Index: OpenAMQ/foreign-1.1d4/c/c
===================================================================
--- OpenAMQ/foreign-1.1d4/c/c (revision 18129)
+++ OpenAMQ/foreign-1.1d4/c/c (working copy)
@@ -172,6 +172,15 @@
STDLIBS="-lm"
CCOPTS=""
[ -z "$BOOM_MODEL_NOOPT" ] && CCNODEBUG="-O"
+ if [ "$BOOM_MODEL_MT" ]; then
+ CCNAME="${CCNAME:-xlc_r}" # Use VAC Threaded Mode if not set
+ CCPLUS="${CCPLUS:-xlC_r}" # Use VAC Threaded Mode if not set
+ CCOPTS="$CCOPTS -lpthread -D_REENTRANT"
+ # Request iCL use direct memory allocator by default for
+ # MT release builds.
+ CCOPTS="$CCOPTS -DICL_MEM_DEFAULT_DIRECT"
+ BOOM_SUPPORTS_MT=1 # MT code is supported
+ fi
elif [ "$UTYPE" = "BSD/OS" ]; then
STDLIBS="-lm"
More information about the openamq-dev
mailing list