Re: can't compile 2.4.0 branch


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

Sorry Dmitri, that's what happens when I try and answer emails at 6 in the morning. ;-)

D.


On Thu, 3 Mar 2016 at 15:10, Dmitri Fedorov <dfedorov.solace@...> wrote:
Thank you, yes, "libevent-devel" was missing.

Damian, who is "Dimitry" :-)?

Regards,
Dmitri Fedorov
Software Architect
​grep -i wiki ​
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.

On Thu, Mar 3, 2016 at 4:45 AM, Frank Quinn <fquinn.ni@...> wrote:

Yeah you can find details on https://github.com/OpenMAMA/OpenMAMA/wiki/Building-on-Linux, but you’re missing libevent-devel.

 

Cheers,

Frank


On Thu, 3 Mar 2016 06:07 Damian Maguire, <damian.j.maguire@...> wrote:
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?

Thanks,

Damian

On Thu, 3 Mar 2016 01:03 Dmitri Fedorov, <dfedorov.solace@...> wrote:
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.
_______________________________________________
Openmama-dev mailing list
Openmama-dev@...
https://lists.openmama.org/mailman/listinfo/openmama-dev
_______________________________________________
Openmama-dev mailing list
Openmama-dev@...
https://lists.openmama.org/mailman/listinfo/openmama-dev

_______________________________________________
Openmama-dev mailing list
Openmama-dev@...
https://lists.openmama.org/mailman/listinfo/openmama-dev

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