Thank you for your help Steve.
I edited Cpg.cpp and it worked, but another problem appeared:

qpid/broker/Daemon.cpp: In member function 'void
qpid::broker::Daemon::fork()':
qpid/broker/Daemon.cpp:90: error: ignoring return value of 'ssize_t
write(int, const void*, size_t)', declared with attribute warn_unused_result
qpid/broker/Daemon.cpp:96: error: ignoring return value of 'ssize_t
write(int, const void*, size_t)', declared with attribute warn_unused_result

I've found something in Google about this problem, but the suggested
solution is to donwgrade g++ compiler to 4.1 version, is this correct? there
should be an easier way, shouldn't it?
Here's where I found it
http://n2.nabble.com/c%2B%2B-broker-build-for-ubuntu--td2261666.html#a2261875

Thank you again in advance.

Ricard.


Steve Huston wrote:
> 
>> Qpid version is 0.5 and I want to install it in Ubuntu 9.04
> 
> This is indeed a problem, reported in
> https://issues.apache.org/jira/browse/QPID-1787.
> 
> Can you edit Cpg.cpp and change:
> 
>     ::memset(&callbacks, sizeof(callbacks), 0);
> 
> to
>     ::memset(&callbacks, 0, sizeof(callbacks));
> 
> and let us know how that goes.
> 
> Thanks,
> -Steve
> 
>> 
>> Steve Huston wrote:
>> > 
>> > Which Qpid version, and which OS is this on?
>> > 
>> >> -----Original Message-----
>> >> From: ricardlf [mailto:rilo...@dsic.upv.es] 
>> >> Sent: Thursday, June 18, 2009 10:42 AM
>> >> To: users@qpid.apache.org
>> >> Subject: Problem building Qpid C++ broker
>> >> 
>> >> 
>> >> 
>> >> Hi, I'm trying to install Qpid C++ broker but when I try to 
>> >> "make all" I'm
>> >> getting the following errors:
>> >> 
>> >> In function 'void* memset(void*, int, size_t)',
>> >>     inlined from 
>> >> 'qpid::cluster::Cpg::Cpg(qpid::cluster::Cpg::Handler&)' at
>> >> qpid/cluster/Cpg.cpp:75:
>> >> /usr/include/bits/string3.h:82: error: call to 
>> >> '__warn_memset_zero_len'
>> >> declared with attribute warning: memset used with constant zero
>> > length
>> >> parameter; this could be due to transposed parameters
>> >> In function 'void* memset(void*, int, size_t)',
>> >>     inlined from 
>> >> 'qpid::cluster::Cpg::Cpg(qpid::cluster::Cpg::Handler&)' at
>> >> qpid/cluster/Cpg.cpp:75:
>> >> /usr/include/bits/string3.h:82: error: call to 
>> >> '__warn_memset_zero_len'
>> >> declared with attribute warning: memset used with constant zero
>> > length
>> >> parameter; this could be due to transposed parameters
>> >> make[3]: *** [qpid/cluster/Cpg.lo] Error 1
>> >> make[3]: se sale del directorio 
>> `/home/ricard/tempDir/qpidc-0.5/src'
>> >> make[2]: *** [all-recursive] Error 1
>> >> make[2]: se sale del directorio 
>> `/home/ricard/tempDir/qpidc-0.5/src'
>> >> make[1]: *** [all] Error 2
>> >> make[1]: se sale del directorio 
>> `/home/ricard/tempDir/qpidc-0.5/src'
>> >> make: *** [all-recursive] Error 1
>> >> 
>> >> Could anyone help me?
>> >> Thank you very much.
>> >> -- 
>> >> View this message in context: 
>> >> http://n2.nabble.com/Problem-building-Qpid-C%2B%2B-broker-tp31
>> > 13713p3113713.html
>> > Sent from the Apache Qpid users mailing list archive at
> Nabble.com.
>> > 
>> > 
>> > 
>>
> ---------------------------------------------------------------------
>> > Apache Qpid - AMQP Messaging Implementation
>> > Project:      http://qpid.apache.org
>> > Use/Interact: mailto:users-subscr...@qpid.apache.org
>> > 
>> > 
>> > 
>> > 
>>
> ---------------------------------------------------------------------
>> > Apache Qpid - AMQP Messaging Implementation
>> > Project:      http://qpid.apache.org
>> > Use/Interact: mailto:users-subscr...@qpid.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: 
>> http://n2.nabble.com/Problem-building-Qpid-C%2B%2B-broker-tp31
> 13713p3113927.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscr...@qpid.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscr...@qpid.apache.org
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Problem-building-Qpid-C%2B%2B-broker-tp3113713p3118020.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org

Reply via email to