You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Andre Fischer <an...@a-w-f.de> on 2011/12/21 17:50:39 UTC

ld: gold vs bfd

Hi all,

I ran into a problem with a Linux build.  On Ubuntu (both 32bit and 
64bit) linking of comphelper failed
with a lot of unresolved references.  With the help of Herbert I could 
solve this by using a different linker.
Instead of ld.bfd I used ld.gold and could build comphelper and the rest 
of OpenOffice.

On Fedora this seems to work out of the box.

I am now working on CoinMP (the lp_solve replacement).  It builds 
without problems on Windows and
Mac but has linker errors on Linux.  Eventually I found that going back 
to ld.bfd solved this problem.

Has anybody else experienced problems with the linker?

Does anybody on this list have a deeper understanding of the Linux 
linkers and can explain
what is going on and how to better solve it?

Any help is much appreciated.

Andre



Re: ld: gold vs bfd

Posted by Andre Fischer <af...@a-w-f.de>.
I have submitted issue 118769 for this bug [1], and fixed it by changing 
the order in which libraries and object files are listed on the gbuild 
linker command line.  I do not expect problems with this approach, 
because the modified order is the same one that is used by the dmake 
build system.  Although the actual changes may still contain errors: I 
tested them on Linux, Windows, and MacOSX but not on Solaris, OS/2, or 
Windows/Cygwin.

Please see the issue comments for more details.


If somebody points out to me the proper place in the Wiki then I will 
document my changes of the gbuild system.  I have yet to find 
documentation about its inner workings.  So far I have only found 
information on how to use it.

Regards,
Andre


[1] https://issues.apache.org/ooo/show_bug.cgi?id=118769
On 21.12.2011 17:50, Andre Fischer wrote:
> Hi all,
>
> I ran into a problem with a Linux build. On Ubuntu (both 32bit and
> 64bit) linking of comphelper failed
> with a lot of unresolved references. With the help of Herbert I could
> solve this by using a different linker.
> Instead of ld.bfd I used ld.gold and could build comphelper and the rest
> of OpenOffice.
>
> On Fedora this seems to work out of the box.
>
> I am now working on CoinMP (the lp_solve replacement). It builds without
> problems on Windows and
> Mac but has linker errors on Linux. Eventually I found that going back
> to ld.bfd solved this problem.
>
> Has anybody else experienced problems with the linker?
>
> Does anybody on this list have a deeper understanding of the Linux
> linkers and can explain
> what is going on and how to better solve it?
>
> Any help is much appreciated.
>
> Andre
>
>

Re: R: ld: gold vs bfd

Posted by Andre Fischer <af...@a-w-f.de>.
On 27.12.2011 00:30, Ariel Constenla-Haile wrote:
> On Fri, Dec 23, 2011 at 12:07:10PM -0300, Ariel Constenla-Haile wrote:
>> On Fri, Dec 23, 2011 at 03:37:39PM +0100, Andre Fischer wrote:
>>>>> I ran into a problem with a Linux build.  On Ubuntu
>>>>> (both 32bit and 64bit) linking of comphelper failed
>>>>> with a lot of unresolved references.  With the help of
>>>>> Herbert I could solve this by using a different linker.
>>>>> Instead of ld.bfd I used ld.gold and could build comphelper
>>>>> and the rest of OpenOffice.
>>>>>
>>>>> On Fedora this seems to work out of the box.
>>>>>
>>>>> I am now working on CoinMP (the lp_solve
>>>>> replacement).  It builds without problems on Windows
>>>>> and
>>>>> Mac but has linker errors on Linux.  Eventually I
>>>>> found that going back to ld.bfd solved this problem.
>>>>>
>>>>> Has anybody else experienced problems with the linker?
>>>>>
>>>>> Does anybody on this list have a deeper understanding of
>>>>> the Linux linkers and can explain
>>>>> what is going on and how to better solve it?
>>
>> the best I've read about linkers is from the gold linker developer, I'll
>> try to search the articles.
>
> Ian Lance Taylor's blog
> http://www.airs.com/blog/archives/38 [begin]
> ...
> http://www.airs.com/blog/archives/57 [end]

Thanks for the links.  Very interesting.

>
> of course somehow too much for the related problem, though it's worth
> reading.
> The classical book on the topic is John Levine's Linkers and Loaders.
 >
>[...]
 >
> Back to the current issue, I've successfully build AOO on Ubuntu this
> weekend, with the default ld.bfd linker.
>
> Ubuntu versions were the latest LTS one, Ubuntu 10.04.3 LTS (Lucid
> Lynx). The generated binaries work fine in the latest Fedora 16 and the
> latest Ubuntu 11.10 (Oneiric Ocelot).
>
> I guess you are building in the latest Ubuntu, so it looks like
> a regression in ubuntu, not a problem in AOO.

Yes, I think so too.  I can build on Ubuntu 10.04 without problem.

I also installed the binutils that are used by 10.04 on a 11.10: still 
the same build error.

>
> It would be interesting to know which version has the buildboot machine.
>

I think it is an Ubuntu 10.04, but can not remember where I read that.


So, that leaves me with two alternatives:

1. Going back to Ubuntu 10.04 or to Fedora and ignore the build problems 
on a recent Ubuntu.

2. Try to fix linking.  I am currently thinking about changing the order 
in which libraries and object files on the linker command line.  This 
order is different in the two build systems (dmake, gbuild), the reason 
why comphelper is the first module whose linking breaks.  It is the 
first module built by gbuild.  With this change I can build up to VCL, 
where the plugins use a semi-standard way to add special libraries to 
the linker command line.

-Andre

>
> Regards

Re: R: ld: gold vs bfd

Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Fri, Dec 23, 2011 at 12:07:10PM -0300, Ariel Constenla-Haile wrote:
> On Fri, Dec 23, 2011 at 03:37:39PM +0100, Andre Fischer wrote:
> > >>I ran into a problem with a Linux build.  On Ubuntu
> > >>(both 32bit and 64bit) linking of comphelper failed
> > >>with a lot of unresolved references.  With the help of
> > >>Herbert I could solve this by using a different linker.
> > >>Instead of ld.bfd I used ld.gold and could build comphelper
> > >>and the rest of OpenOffice.
> > >>
> > >>On Fedora this seems to work out of the box.
> > >>
> > >>I am now working on CoinMP (the lp_solve
> > >>replacement).  It builds without problems on Windows
> > >>and
> > >>Mac but has linker errors on Linux.  Eventually I
> > >>found that going back to ld.bfd solved this problem.
> > >>
> > >>Has anybody else experienced problems with the linker?
> > >>
> > >>Does anybody on this list have a deeper understanding of
> > >>the Linux linkers and can explain
> > >>what is going on and how to better solve it?
> 
> the best I've read about linkers is from the gold linker developer, I'll
> try to search the articles.

Ian Lance Taylor's blog
http://www.airs.com/blog/archives/38 [begin]
...
http://www.airs.com/blog/archives/57 [end]

of course somehow too much for the related problem, though it's worth
reading.
The classical book on the topic is John Levine's Linkers and Loaders.

> 
> > >My understanding is that gold is still experimental: it
> > >is the planned replacement for GNU ld but GNU ld is
> > >still the default for some good reason.
> > >
> > >The most common problems I've seen with GNU ld are
> > >related to the linking order:
> > >
> > >http://stackoverflow.com/questions/45135/linker-order-gcc
> > 
> > That is the kind of problem that I ran (and still run) into in
> > comphelper.  Does anybody else has this problem, or is it just me?
> 
> This is obviously an Ubuntu related problem. In Fedora works out the
> box. What is the default linker in Ubuntu? 
> You can know it by running:
> 
> []$ sudo alternatives --display ld
>  
> ld - status is auto.
> link currently points to /usr/bin/ld.bfd
> /usr/bin/ld.bfd - priority 50
> /usr/bin/ld.gold - priority 30
> Current `best' version is /usr/bin/ld.bfd.
> 
> In Fedora, ld.bfd is the default linker.
> And they recommend not to mix linking with ld.bfd and ld.gold.
> 
> IIRC there was an attempt to move Fedora to the gold linker, but due to
> issues it ended in nothing. The effort did some good documentation, I'll
> search on the Fedora wiki.

http://fedoraproject.org/wiki/Features/GoldLinkerDefault
https://fedoraproject.org/wiki/GoldIncompatibilities
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

---------------------------------------------------------------------


Back to the current issue, I've successfully build AOO on Ubuntu this
weekend, with the default ld.bfd linker.

Ubuntu versions were the latest LTS one, Ubuntu 10.04.3 LTS (Lucid
Lynx). The generated binaries work fine in the latest Fedora 16 and the
latest Ubuntu 11.10 (Oneiric Ocelot).

I guess you are building in the latest Ubuntu, so it looks like
a regression in ubuntu, not a problem in AOO.

It would be interesting to know which version has the buildboot machine.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: R: ld: gold vs bfd

Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Fri, Dec 23, 2011 at 03:37:39PM +0100, Andre Fischer wrote:
> >>I ran into a problem with a Linux build.  On Ubuntu
> >>(both 32bit and 64bit) linking of comphelper failed
> >>with a lot of unresolved references.  With the help of
> >>Herbert I could solve this by using a different linker.
> >>Instead of ld.bfd I used ld.gold and could build comphelper
> >>and the rest of OpenOffice.
> >>
> >>On Fedora this seems to work out of the box.
> >>
> >>I am now working on CoinMP (the lp_solve
> >>replacement).  It builds without problems on Windows
> >>and
> >>Mac but has linker errors on Linux.  Eventually I
> >>found that going back to ld.bfd solved this problem.
> >>
> >>Has anybody else experienced problems with the linker?
> >>
> >>Does anybody on this list have a deeper understanding of
> >>the Linux linkers and can explain
> >>what is going on and how to better solve it?

the best I've read about linkers is from the gold linker developer, I'll
try to search the articles.

> >My understanding is that gold is still experimental: it
> >is the planned replacement for GNU ld but GNU ld is
> >still the default for some good reason.
> >
> >The most common problems I've seen with GNU ld are
> >related to the linking order:
> >
> >http://stackoverflow.com/questions/45135/linker-order-gcc
> 
> That is the kind of problem that I ran (and still run) into in
> comphelper.  Does anybody else has this problem, or is it just me?

This is obviously an Ubuntu related problem. In Fedora works out the
box. What is the default linker in Ubuntu? 
You can know it by running:

[]$ sudo alternatives --display ld
 
ld - status is auto.
link currently points to /usr/bin/ld.bfd
/usr/bin/ld.bfd - priority 50
/usr/bin/ld.gold - priority 30
Current `best' version is /usr/bin/ld.bfd.

In Fedora, ld.bfd is the default linker.
And they recommend not to mix linking with ld.bfd and ld.gold.

IIRC there was an attempt to move Fedora to the gold linker, but due to
issues it ended in nothing. The effort did some good documentation, I'll
search on the Fedora wiki.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: R: ld: gold vs bfd

Posted by Andre Fischer <af...@a-w-f.de>.
On 10.01.2012 19:34, Rob Weir wrote:
> On Tue, Jan 10, 2012 at 11:33 AM, Andre Fischer<af...@a-w-f.de>  wrote:
>> On 10.01.2012 14:43, Rob Weir wrote:
>>>
>>> On Fri, Dec 23, 2011 at 9:37 AM, Andre Fischer<af...@a-w-f.de>    wrote:
>>>>
>>>> On 12/21/11 8:12 PM, Pedro Giffuni wrote:
>>>>>
>>>>>
>>>>>
>>>>> --- Mer 21/12/11, Andre Fischer<an...@a-w-f.de>      ha scritto:
>>>>> ...
>>>>>>
>>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I ran into a problem with a Linux build.  On Ubuntu
>>>>>> (both 32bit and 64bit) linking of comphelper failed
>>>>>> with a lot of unresolved references.  With the help of
>>>>>> Herbert I could solve this by using a different linker.
>>>>>> Instead of ld.bfd I used ld.gold and could build comphelper
>>>>>> and the rest of OpenOffice.
>>>>>>
>>>>>> On Fedora this seems to work out of the box.
>>>>>>
>>>>>> I am now working on CoinMP (the lp_solve
>>>>>> replacement).  It builds without problems on Windows
>>>>>> and
>>>>>> Mac but has linker errors on Linux.  Eventually I
>>>>>> found that going back to ld.bfd solved this problem.
>>>>>>
>>>>>> Has anybody else experienced problems with the linker?
>>>>>>
>>>>>> Does anybody on this list have a deeper understanding of
>>>>>> the Linux linkers and can explain
>>>>>> what is going on and how to better solve it?
>>>>>>
>>>>> My understanding is that gold is still experimental: it
>>>>> is the planned replacement for GNU ld but GNU ld is
>>>>> still the default for some good reason.
>>>>>
>>>>> The most common problems I've seen with GNU ld are
>>>>> related to the linking order:
>>>>>
>>>>> http://stackoverflow.com/questions/45135/linker-order-gcc
>>>>
>>>>
>>>>
>>>> That is the kind of problem that I ran (and still run) into in
>>>> comphelper.
>>>>   Does anybody else has this problem, or is it just me?
>>>>
>>>
>>> I'm seeing link errors now with comphelper.  This is on Ubuntu.  It
>>> worked fine a few weeks ago.
>>
>>
>> Did you upgrade your Ubuntu?
>>
>> Which version are you using? 11.10?
>>
>
> Yes, looks like I'm not 11.10.  Is that the problem?  Is there a known
> workaround, other than installing 11.04?

(assuming that not=on) Yes that is indeed the problem.  10.04 is OK.  I 
have not checked the versions in between.

But I have already a working fix which I am testing right now.  Should 
be ready today or tomorrow.

>
>>
>>>
>>> -Rob
>>>
>>>>
>>>>>
>>>>> While here, CoinMP has some outdated components.
>>>>> I have a couple of header cleanups here:
>>>>> http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/coinmp/files/
>>>>
>>>>
>>>>
>>>> Good to know.  A quick glance shows that these patches are against CoinMP
>>>> 1.4,  and I am working with CoinMP 1.6.  But there may be valuable
>>>> information there.  I will look into this after the hollidays.
>>>>
>>>> Regards,
>>>> Andre
>>>>
>>>>> cheers,
>>>>>
>>>>> Pedro.
>>>>
>>>>
>>>>
>>

Re: R: ld: gold vs bfd

Posted by Rob Weir <ro...@apache.org>.
On Tue, Jan 10, 2012 at 11:33 AM, Andre Fischer <af...@a-w-f.de> wrote:
> On 10.01.2012 14:43, Rob Weir wrote:
>>
>> On Fri, Dec 23, 2011 at 9:37 AM, Andre Fischer<af...@a-w-f.de>  wrote:
>>>
>>> On 12/21/11 8:12 PM, Pedro Giffuni wrote:
>>>>
>>>>
>>>>
>>>> --- Mer 21/12/11, Andre Fischer<an...@a-w-f.de>    ha scritto:
>>>> ...
>>>>>
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I ran into a problem with a Linux build.  On Ubuntu
>>>>> (both 32bit and 64bit) linking of comphelper failed
>>>>> with a lot of unresolved references.  With the help of
>>>>> Herbert I could solve this by using a different linker.
>>>>> Instead of ld.bfd I used ld.gold and could build comphelper
>>>>> and the rest of OpenOffice.
>>>>>
>>>>> On Fedora this seems to work out of the box.
>>>>>
>>>>> I am now working on CoinMP (the lp_solve
>>>>> replacement).  It builds without problems on Windows
>>>>> and
>>>>> Mac but has linker errors on Linux.  Eventually I
>>>>> found that going back to ld.bfd solved this problem.
>>>>>
>>>>> Has anybody else experienced problems with the linker?
>>>>>
>>>>> Does anybody on this list have a deeper understanding of
>>>>> the Linux linkers and can explain
>>>>> what is going on and how to better solve it?
>>>>>
>>>> My understanding is that gold is still experimental: it
>>>> is the planned replacement for GNU ld but GNU ld is
>>>> still the default for some good reason.
>>>>
>>>> The most common problems I've seen with GNU ld are
>>>> related to the linking order:
>>>>
>>>> http://stackoverflow.com/questions/45135/linker-order-gcc
>>>
>>>
>>>
>>> That is the kind of problem that I ran (and still run) into in
>>> comphelper.
>>>  Does anybody else has this problem, or is it just me?
>>>
>>
>> I'm seeing link errors now with comphelper.  This is on Ubuntu.  It
>> worked fine a few weeks ago.
>
>
> Did you upgrade your Ubuntu?
>
> Which version are you using? 11.10?
>

Yes, looks like I'm not 11.10.  Is that the problem?  Is there a known
workaround, other than installing 11.04?

>
>>
>> -Rob
>>
>>>
>>>>
>>>> While here, CoinMP has some outdated components.
>>>> I have a couple of header cleanups here:
>>>> http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/coinmp/files/
>>>
>>>
>>>
>>> Good to know.  A quick glance shows that these patches are against CoinMP
>>> 1.4,  and I am working with CoinMP 1.6.  But there may be valuable
>>> information there.  I will look into this after the hollidays.
>>>
>>> Regards,
>>> Andre
>>>
>>>> cheers,
>>>>
>>>> Pedro.
>>>
>>>
>>>
>

Re: R: ld: gold vs bfd

Posted by Andre Fischer <af...@a-w-f.de>.
On 10.01.2012 14:43, Rob Weir wrote:
> On Fri, Dec 23, 2011 at 9:37 AM, Andre Fischer<af...@a-w-f.de>  wrote:
>> On 12/21/11 8:12 PM, Pedro Giffuni wrote:
>>>
>>>
>>> --- Mer 21/12/11, Andre Fischer<an...@a-w-f.de>    ha scritto:
>>> ...
>>>>
>>>> Hi all,
>>>>
>>>> I ran into a problem with a Linux build.  On Ubuntu
>>>> (both 32bit and 64bit) linking of comphelper failed
>>>> with a lot of unresolved references.  With the help of
>>>> Herbert I could solve this by using a different linker.
>>>> Instead of ld.bfd I used ld.gold and could build comphelper
>>>> and the rest of OpenOffice.
>>>>
>>>> On Fedora this seems to work out of the box.
>>>>
>>>> I am now working on CoinMP (the lp_solve
>>>> replacement).  It builds without problems on Windows
>>>> and
>>>> Mac but has linker errors on Linux.  Eventually I
>>>> found that going back to ld.bfd solved this problem.
>>>>
>>>> Has anybody else experienced problems with the linker?
>>>>
>>>> Does anybody on this list have a deeper understanding of
>>>> the Linux linkers and can explain
>>>> what is going on and how to better solve it?
>>>>
>>> My understanding is that gold is still experimental: it
>>> is the planned replacement for GNU ld but GNU ld is
>>> still the default for some good reason.
>>>
>>> The most common problems I've seen with GNU ld are
>>> related to the linking order:
>>>
>>> http://stackoverflow.com/questions/45135/linker-order-gcc
>>
>>
>> That is the kind of problem that I ran (and still run) into in comphelper.
>>   Does anybody else has this problem, or is it just me?
>>
>
> I'm seeing link errors now with comphelper.  This is on Ubuntu.  It
> worked fine a few weeks ago.

Did you upgrade your Ubuntu?

Which version are you using? 11.10?

>
> -Rob
>
>>
>>>
>>> While here, CoinMP has some outdated components.
>>> I have a couple of header cleanups here:
>>> http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/coinmp/files/
>>
>>
>> Good to know.  A quick glance shows that these patches are against CoinMP
>> 1.4,  and I am working with CoinMP 1.6.  But there may be valuable
>> information there.  I will look into this after the hollidays.
>>
>> Regards,
>> Andre
>>
>>> cheers,
>>>
>>> Pedro.
>>
>>

Re: R: ld: gold vs bfd

Posted by Rob Weir <ro...@apache.org>.
On Fri, Dec 23, 2011 at 9:37 AM, Andre Fischer <af...@a-w-f.de> wrote:
> On 12/21/11 8:12 PM, Pedro Giffuni wrote:
>>
>>
>> --- Mer 21/12/11, Andre Fischer<an...@a-w-f.de>  ha scritto:
>> ...
>>>
>>> Hi all,
>>>
>>> I ran into a problem with a Linux build.  On Ubuntu
>>> (both 32bit and 64bit) linking of comphelper failed
>>> with a lot of unresolved references.  With the help of
>>> Herbert I could solve this by using a different linker.
>>> Instead of ld.bfd I used ld.gold and could build comphelper
>>> and the rest of OpenOffice.
>>>
>>> On Fedora this seems to work out of the box.
>>>
>>> I am now working on CoinMP (the lp_solve
>>> replacement).  It builds without problems on Windows
>>> and
>>> Mac but has linker errors on Linux.  Eventually I
>>> found that going back to ld.bfd solved this problem.
>>>
>>> Has anybody else experienced problems with the linker?
>>>
>>> Does anybody on this list have a deeper understanding of
>>> the Linux linkers and can explain
>>> what is going on and how to better solve it?
>>>
>> My understanding is that gold is still experimental: it
>> is the planned replacement for GNU ld but GNU ld is
>> still the default for some good reason.
>>
>> The most common problems I've seen with GNU ld are
>> related to the linking order:
>>
>> http://stackoverflow.com/questions/45135/linker-order-gcc
>
>
> That is the kind of problem that I ran (and still run) into in comphelper.
>  Does anybody else has this problem, or is it just me?
>

I'm seeing link errors now with comphelper.  This is on Ubuntu.  It
worked fine a few weeks ago.

-Rob

>
>>
>> While here, CoinMP has some outdated components.
>> I have a couple of header cleanups here:
>> http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/coinmp/files/
>
>
> Good to know.  A quick glance shows that these patches are against CoinMP
> 1.4,  and I am working with CoinMP 1.6.  But there may be valuable
> information there.  I will look into this after the hollidays.
>
> Regards,
> Andre
>
>> cheers,
>>
>> Pedro.
>
>

Re: R: ld: gold vs bfd

Posted by Andre Fischer <af...@a-w-f.de>.
On 12/21/11 8:12 PM, Pedro Giffuni wrote:
>
> --- Mer 21/12/11, Andre Fischer<an...@a-w-f.de>  ha scritto:
> ...
>> Hi all,
>>
>> I ran into a problem with a Linux build.  On Ubuntu
>> (both 32bit and 64bit) linking of comphelper failed
>> with a lot of unresolved references.  With the help of
>> Herbert I could solve this by using a different linker.
>> Instead of ld.bfd I used ld.gold and could build comphelper
>> and the rest of OpenOffice.
>>
>> On Fedora this seems to work out of the box.
>>
>> I am now working on CoinMP (the lp_solve
>> replacement).  It builds without problems on Windows
>> and
>> Mac but has linker errors on Linux.  Eventually I
>> found that going back to ld.bfd solved this problem.
>>
>> Has anybody else experienced problems with the linker?
>>
>> Does anybody on this list have a deeper understanding of
>> the Linux linkers and can explain
>> what is going on and how to better solve it?
>>
> My understanding is that gold is still experimental: it
> is the planned replacement for GNU ld but GNU ld is
> still the default for some good reason.
>
> The most common problems I've seen with GNU ld are
> related to the linking order:
>
> http://stackoverflow.com/questions/45135/linker-order-gcc

That is the kind of problem that I ran (and still run) into in 
comphelper.  Does anybody else has this problem, or is it just me?

>
> While here, CoinMP has some outdated components.
> I have a couple of header cleanups here:
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/coinmp/files/

Good to know.  A quick glance shows that these patches are against 
CoinMP 1.4,  and I am working with CoinMP 1.6.  But there may be 
valuable information there.  I will look into this after the hollidays.

Regards,
Andre

> cheers,
>
> Pedro.


R: ld: gold vs bfd

Posted by Pedro Giffuni <pf...@apache.org>.

--- Mer 21/12/11, Andre Fischer <an...@a-w-f.de> ha scritto:
...
> Hi all,
> 
> I ran into a problem with a Linux build.  On Ubuntu
> (both 32bit and 64bit) linking of comphelper failed
> with a lot of unresolved references.  With the help of
> Herbert I could solve this by using a different linker.
> Instead of ld.bfd I used ld.gold and could build comphelper
> and the rest of OpenOffice.
> 
> On Fedora this seems to work out of the box.
> 
> I am now working on CoinMP (the lp_solve
> replacement).  It builds without problems on Windows
> and
> Mac but has linker errors on Linux.  Eventually I
> found that going back to ld.bfd solved this problem.
> 
> Has anybody else experienced problems with the linker?
> 
> Does anybody on this list have a deeper understanding of
> the Linux linkers and can explain
> what is going on and how to better solve it?
>

My understanding is that gold is still experimental: it
is the planned replacement for GNU ld but GNU ld is
still the default for some good reason.
 
The most common problems I've seen with GNU ld are
related to the linking order:

http://stackoverflow.com/questions/45135/linker-order-gcc

While here, CoinMP has some outdated components.
I have a couple of header cleanups here:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/coinmp/files/

cheers,

Pedro.