[Bug 1272] Unable to make OpenSSH with undefined refs in readconf.o

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Feb 23 22:07:57 EST 2007


------- Comment #15 from dtucker at zip.com.au  2007-02-23 22:07 -------
(In reply to comment #14)
> I cleaned my system of any "rogue" libgcc's and completely rebuilt gcc
> and libgcc. This did get rid of the original problem (undefined refs in
> readconf.o) but I never did get rid of the problem with the linker
> being unable to find the symbol "_start". The executables would build
> but always core dumped. I even went so far as to rebuild zlib and
> openssl too.

Well, I'm glad that you have something working.  Building on your
system should work.  (Solaris 8 with gcc 3.4.3 and binutils 2.17 is a
platform I test on regularly.  I might bootstap gcc 3.4.6 and see if
it's any different, but Jeff's similar problem was with 3.2.3).

I'm willing to help you (try to) figure it out if you want (I hate
unsolved mysteries).  If so then you can try getting a backtrace of the
segfault ("gdb ./bad_binary" then "backtrace" at the (gdb) prompt).  If
not then please feel free to close this bug.

Hey, I was just comparing Jeff's logs to yours and I do see one common
element: you're both calling "ld" explicitly instead letting gcc do the
linking (the latter being what configure will normally opt to do if
left to its own devices).  This would also explain some of the original
errors: gcc knows it needs libgcc for some things, knows where to find
it and automagically links it, but ld doesn't.

Do you set $LD, and if so does unsetting it make a difference?

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the openssh-bugs mailing list