can't compile 2.4.0 branch


Dmitri Fedorov <dfedorov.solace@...>
 

Hello,

On CentOS 7, this is the build command:
[dfedorov@localhost OpenMAMA]$ scons middleware=avis avis_home=/opt/avis with_testtools=True with_unittest=True gtest_home=/usr

<...>
gcc -o objdir/mama/c_cpp/src/c/bridge/avis/io.o -c -std=gnu99 -Wmissing-prototypes -Wstrict-prototypes -g -O2 -D_GNU_SOURCE -Imama/c_cpp/src/c -Iopenmama_install_2.4.0/include -Icommon/c_cpp/src/c -I/opt/avis/include -Imama/c_cpp/src/c mama/c_cpp/src/c/bridge/avis/io.c
WARNING:: mama/c_cpp/src/c/bridge/avis/io.c:32:19: fatal error: event.h: No such file or directory
 #include <event.h>
                   ^
compilation terminated.

The only "event.h" I found is the one that that is a part of qpid-proton-c-devel package:

Alright, I thought, let's build with qpid instead:

[dfedorov@localhost OpenMAMA]$ scons middleware=qpid qpid_home=/usr/include/proton
<...>
gcc -o objdir/mama/c_cpp/src/c/bridge/qpid/io.o -c -std=gnu99 -Wmissing-prototypes -Wstrict-prototypes -Werror -g -O2 -D_GNU_SOURCE -Imama/c_cpp/src/c -Iopenmama_install_2.4.0/include -Icommon/c_cpp/src/c -I/usr/include/proton -Imama/c_cpp/src/c mama/c_cpp/src/c/bridge/qpid/io.c
WARNING:: mama/c_cpp/src/c/bridge/qpid/io.c:54:25: error: field 'mEvent' has incomplete type
     struct event        mEvent;
                         ^
mama/c_cpp/src/c/bridge/qpid/io.c: In function 'qpidBridgeMamaIo_create':
mama/c_cpp/src/c/bridge/qpid/io.c:103:19: error: 'EV_READ' undeclared (first use in this function)
         evtType = EV_READ;
                   ^
mama/c_cpp/src/c/bridge/qpid/io.c:103:19: note: each undeclared identifier is reported only once for each function it appears in
mama/c_cpp/src/c/bridge/qpid/io.c:106:19: error: 'EV_WRITE' undeclared (first use in this function)
         evtType = EV_WRITE;
                   ^
mama/c_cpp/src/c/bridge/qpid/io.c:132:5: error: implicit declaration of function 'event_set' [-Werror=implicit-function-declaration]
     event_set (&impl->mEvent,
<...>
mama/c_cpp/src/c/bridge/qpid/io.c:270:9: error: 'EV_TIMEOUT' undeclared (first use in this function)
     if (EV_TIMEOUT == type)
         ^
cc1: all warnings being treated as errors
scons: *** [objdir/mama/c_cpp/src/c/bridge/qpid/io.o] Error 1
scons: building terminated because of errors.


I could dig dipper, but I'm sure you guys know what I'm doing wrong here, please advise.

Thank you in advance!

Regards,
Dmitri Fedorov
Software Architect
Solace Systems, Inc.
Ottawa, ON Canada

Solace Systems accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Solace Systems.

Join Openmama-dev@lists.openmama.org to automatically receive all group messages.