ld is a PITA

djberg96 on 2003-05-02T16:59:10

Here I am again, swearing at my Solaris box because of yet another obscure ld error. This time it relates to the FOX gui library, FXRuby, FXScintilla and FreeRIDE.

In some ways, however, I'm inclined to blame OSS developers, who are clearly targeting Linux (and thus relying on GNU's ld) and leaving other *nix users to deal with obscure problems (like mine) on their own. Then again, maybe Sun's ld is just crappy.

Another problem, though, is that about 90% of configure scripts seem to utterly ignore the '--with-gnu-ld' option for some reason, and /usr/ccs/bin/ld gets used anyway. Often I have to do this 3 step process:

cd /usr/ccs/bin
mv ld ld.orig
ln -s /usr/local/bin/ld ld

Then I have to remember to put everything back when I'm done.

GAH!


local()

Dom2 on 2003-05-02T17:53:05

Things like this really make you wish that you could have a filesystem based local(), so that you could run a command and at the end, everything would just be put back as it was...

-Dom

few things incense me more...

jhi on 2003-05-02T18:05:56

...than people who chant "you need choice" and then proceed to assume GNU ld / GNU cc / GNU make / GNU configure / GNU tar / GNU cp / FHS / Linux /proc...

Re:few things incense me more...

Dom2 on 2003-05-02T19:24:24

It's nothing new. When I started out on Linux ('93), all the free software assumed that you were running SunOS 4, pretty much. Before that, it was vaxen. Unfortunately, portability is a difficult thing to do right.

-Dom

Re:few things incense me more...

pudge on 2003-05-07T03:10:31

Yeah, it is not intentional. It is an accident of circumstance. Most developers -- myself included -- don't have the knowledge, experience, time, etc. to make sure it works on every platform. That is what users and patch are for.