Re: can't compile 2.4.0 branch

Damian Maguire <damian.j.maguire@...>

Hey Dimitry, 

At a glance I'd say it's failing to find libevent and its headers. Can you check you have the correct libraries installed and located in a standard location? There should be some info on those on the wiki on GitHub. Were you able to build master previously, or is this a completely fresh checkout?



On Thu, 3 Mar 2016 01:03 Dmitri Fedorov, <dfedorov.solace@...> wrote:

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!

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.
Openmama-dev mailing list

Join to automatically receive all group messages.