[csw-maintainers] User reported build problems with gcc4.3, Sun ld, and libiconv
Dr. David Kirkby
david.kirkby at onetel.net
Sat May 22 10:50:59 CEST 2010
On 05/22/10 05:08 AM, Murray.Jensen at csiro.au wrote:
> On Sat, 22 May 2010 01:53:16 +1000, Sebastian Kayser writes:
>>> Text relocation remains referenced
>>> against symbol offset in file
>> Sun studio is not an option for him as he needs to build a full stack on
>> top of it which contains a massively GNUisms infested software.
> But it still uses Sun's linker ... when I see this sort of thing I usually
> try adding "-z defs" to LD_OPTIONS (well actually, I have this as the default
> now, and only remove it if it causes problems). Cheers!
Does adding "-z defs" solve the problem, or hide the underlying problem?
says "The use of -ztext is not your problem --- it's simply allowing
the linker to catch the problem, which is that the object iconv.o
has relocations against the text segment."
I found that changing to gcc 4.4.4 solved the problem.
I'd completely overlooked that post above, where I'd commented about 3 months
ago that a 4.5.0 snapshot solved the problem too. (The user 'drkirkby' is me).
This would appear to be a bug in at least gcc 4.3.4 (what I used) and gcc 4.4.2
(what 'penyuan' used), but which is cleared in 4.4.4 and an earlier 4.5.0
snapshot - I've not tried with the official 4.5.0
Note however 'penyuan' has
which seems a bit odd. I've no idea how gcc handles that one.
More information about the maintainers