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

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Feb 24 08:51:45 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1272





------- Comment #18 from dtucker at zip.com.au  2007-02-24 08:51 -------
(In reply to comment #17)
> It seems odd that using the gnu linker instead of the gnu compiler to
> link would cause such problems. This is the only package I've ever run
> into with that issue.

I suspect that any other packages that use unsigned long long
arithmetic would have the same problem, but those might not be that
common.

Even compiling Damien's test program and linking by hand exhibits the
same problem:

$ gcc -c testprog.c
$ ld -o testprog testprog.o -lc
ld: warning: cannot find entry symbol _start; defaulting to
00000000000101c8
testprog.o: In function `main':
testprog.c:(.text+0x24): undefined reference to `__udivdi3'

> Perhaps it would be good to change configure.ac so that if the OS is 
> Solaris and $CC=gcc, (or whatever the appropriate set of triggers is)
> then set LD=gcc even if it is already set in the executing shell.

I think that it's going to be dependent on the system and compiler
config.  As a general rule, configure assumes that if you set things
like LD then you had a reason for it.




------- 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