You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Lionel Sacks <le...@googlemail.com> on 2010/05/06 14:37:28 UTC
error in making libqpidcommon.la? qpidc-0.6
Hi,
a, hopefully, quick question.
First time trying to build the c++ qpidc-0.6
Working on Ubuntu 8.4, fresh install of boost etc.
Configure and Make proceed with out errors till:
Must remake target `libqpidcommon.la'.
when I get a lot of errors like
`.L2263' referenced in section `.rodata' of qpid/.libs/Url.o: defined in
discarded section `.gnu.linkonce.t._ZN4qpid7AddressC1ERKS0_' of
qpid/.libs/Url.o
for various values of linkonce.t.xxx and then ld exit status 1.
Has anyone any ideas where that may come from? Some incompatible tool or
library?
thanks for any clues.
Lionel.
Re: error in making libqpidcommon.la? qpidc-0.6
Posted by Lionel Sacks <le...@googlemail.com>.
Hi,
apologies for the delay in responding to this.
The link problems seen are, indeed, resolved with an updated gcc.
It may not always be possible for us to use the up to date gcc, but that is,
in my opinion, our problem. From the fixes you gave I see how to do local
fixes.
Please don't commit the changes on my account, unless you feel that removing
the outlining functions is good for the code base in general.
thanks for your help.
cheers,
Lionel.
On Fri, May 7, 2010 at 5:20 PM, Alan Conway <ac...@redhat.com> wrote:
> On 05/07/2010 04:46 AM, Lionel Sacks wrote:
>
>> Hi,
>>
>> Thanks. Solved the specific error I reported below.
>> However, there where quire a few other simulator errors - probably from
>> other similar sources which I had omitted for brevity... apologies for
>> that.
>> The full output is attached.'
>>
>> I am using gcc 3.6.4... is that not good? Are there, maybe, some options
>> I should apply?
>>
>
> The oldest compiler I'm using at the moment is 4.1.2. The INSTALL says the
> oldest compiler it was ever built with was 3.4.6 but that was a long time
> ago and the codebase has changed a lot since. I doubt there are options that
> will help, it looks to me like a compiler bug.
>
> However if the same solution works (outlining some functions) then that's
> probably a reasonable change to make in the interests of wider compiler
> portability. If you want to fix the code to build on your compiler I can
> commit the changes. Create a JIRA
> at https://issues.apache.org/jira/secure/Dashboard.jspa, attach your patch
> (check yes to the legal disclaimer) and assign it to me.
>
>
>
Re: error in making libqpidcommon.la? qpidc-0.6
Posted by Alan Conway <ac...@redhat.com>.
On 05/07/2010 04:46 AM, Lionel Sacks wrote:
> Hi,
> Thanks. Solved the specific error I reported below.
> However, there where quire a few other simulator errors - probably from
> other similar sources which I had omitted for brevity... apologies for that.
> The full output is attached.'
>
> I am using gcc 3.6.4... is that not good? Are there, maybe, some options
> I should apply?
The oldest compiler I'm using at the moment is 4.1.2. The INSTALL says the
oldest compiler it was ever built with was 3.4.6 but that was a long time ago
and the codebase has changed a lot since. I doubt there are options that will
help, it looks to me like a compiler bug.
However if the same solution works (outlining some functions) then that's
probably a reasonable change to make in the interests of wider compiler
portability. If you want to fix the code to build on your compiler I can commit
the changes. Create a JIRA
at https://issues.apache.org/jira/secure/Dashboard.jspa, attach your patch
(check yes to the legal disclaimer) and assign it to me.
> On Thu, May 6, 2010 at 4:59 PM, Alan Conway <aconway@redhat.com
> <ma...@redhat.com>> wrote:
>
> On 05/06/2010 08:37 AM, Lionel Sacks wrote:
>
> Hi,
> a, hopefully, quick question.
> First time trying to build the c++ qpidc-0.6
> Working on Ubuntu 8.4, fresh install of boost etc.
>
> Configure and Make proceed with out errors till:
> Must remake target `libqpidcommon.la <http://libqpidcommon.la>'.
>
> when I get a lot of errors like
>
> `.L2263' referenced in section `.rodata' of qpid/.libs/Url.o:
> defined in
> discarded section `.gnu.linkonce.t._ZN4qpid7AddressC1ERKS0_' of
> qpid/.libs/Url.o
>
> for various values of linkonce.t.xxx and then ld exit status 1.
>
> Has anyone any ideas where that may come from? Some incompatible
> tool or
> library?
>
> thanks for any clues.
>
> Lionel.
>
>
> The symbol it's complaining about is the copy constructor
> qpid::Address::Address(qpid::Address const&). I suspect the fact
> that Address has only inline functions is confusing your version of
> the compiler, I don't see anything wrong in the code itself.
> Out-lining those function might help, there's no good reason for
> them to be inline. Try the attached patch, if it solves your problem
> I'll commit it.
>
>
>
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: error in making libqpidcommon.la? qpidc-0.6
Posted by Lionel Sacks <le...@googlemail.com>.
Hi,
Thanks. Solved the specific error I reported below.
However, there where quire a few other simulator errors - probably from
other similar sources which I had omitted for brevity... apologies for that.
The full output is attached.'
I am using gcc 3.6.4... is that not good? Are there, maybe, some options I
should apply?
thanks for the support.
Lionel.
On Thu, May 6, 2010 at 4:59 PM, Alan Conway <ac...@redhat.com> wrote:
> On 05/06/2010 08:37 AM, Lionel Sacks wrote:
>
>> Hi,
>> a, hopefully, quick question.
>> First time trying to build the c++ qpidc-0.6
>> Working on Ubuntu 8.4, fresh install of boost etc.
>>
>> Configure and Make proceed with out errors till:
>> Must remake target `libqpidcommon.la'.
>>
>> when I get a lot of errors like
>>
>> `.L2263' referenced in section `.rodata' of qpid/.libs/Url.o: defined in
>> discarded section `.gnu.linkonce.t._ZN4qpid7AddressC1ERKS0_' of
>> qpid/.libs/Url.o
>>
>> for various values of linkonce.t.xxx and then ld exit status 1.
>>
>> Has anyone any ideas where that may come from? Some incompatible tool or
>> library?
>>
>> thanks for any clues.
>>
>> Lionel.
>>
>>
> The symbol it's complaining about is the copy constructor
> qpid::Address::Address(qpid::Address const&). I suspect the fact that
> Address has only inline functions is confusing your version of the compiler,
> I don't see anything wrong in the code itself. Out-lining those function
> might help, there's no good reason for them to be inline. Try the attached
> patch, if it solves your problem I'll commit it.
>
Re: error in making libqpidcommon.la? qpidc-0.6
Posted by Alan Conway <ac...@redhat.com>.
On 05/06/2010 08:37 AM, Lionel Sacks wrote:
> Hi,
> a, hopefully, quick question.
> First time trying to build the c++ qpidc-0.6
> Working on Ubuntu 8.4, fresh install of boost etc.
>
> Configure and Make proceed with out errors till:
> Must remake target `libqpidcommon.la'.
>
> when I get a lot of errors like
>
> `.L2263' referenced in section `.rodata' of qpid/.libs/Url.o: defined in
> discarded section `.gnu.linkonce.t._ZN4qpid7AddressC1ERKS0_' of
> qpid/.libs/Url.o
>
> for various values of linkonce.t.xxx and then ld exit status 1.
>
> Has anyone any ideas where that may come from? Some incompatible tool or
> library?
>
> thanks for any clues.
>
> Lionel.
>
The symbol it's complaining about is the copy constructor
qpid::Address::Address(qpid::Address const&). I suspect the fact that Address
has only inline functions is confusing your version of the compiler, I don't see
anything wrong in the code itself. Out-lining those function might help,
there's no good reason for them to be inline. Try the attached patch, if it
solves your problem I'll commit it.