[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:52:38 EST 2007
http://bugzilla.mindrot.org/show_bug.cgi?id=1272
------- Comment #16 from dtucker at zip.com.au 2007-02-23 22:52 -------
OK, I'm now willing to put money on it :-). On my otherwise working
Solaris 8 system:
$ LD=/usr/local/bin/ld ../../configure && make
checking for gcc... gcc
[.. lots of output ..]
/usr/local/bin/ld -o ssh ssh.o readconf.o clientloop.o sshtty.o
sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/
-L/usr/local/ssl/lib -R/usr/local/ssl/lib -lssh -lopenbsd-compat
-lresolv -lcrypto -lrt -lz -lsocket -lnsl
/usr/local/bin/ld: warning: cannot find entry symbol _start; defaulting
to 0000000000012080
readconf.o: In function `process_config_line':
../../readconf.c:527: undefined reference to `__muldi3'
../../readconf.c:529: undefined reference to `__divdi3'
./libssh.a(packet.o): In function `set_newkeys':
../../packet.c:670: undefined reference to `__ashldi3'
/usr/local/ssl/lib/libcrypto.a(bn_div.o): In function `BN_div':
bn_div.c:(.text+0x264): undefined reference to `__udivdi3'
bn_div.c:(.text+0x28c): undefined reference to `__muldi3'
/usr/local/ssl/lib/libcrypto.a(bn_word.o): In function `BN_mod_word':
bn_word.c:(.text+0x40): undefined reference to `__umoddi3'
/usr/local/ssl/lib/libcrypto.a(b_print.o): In function `fmtint':
b_print.c:(.text+0x264): undefined reference to `__umoddi3'
b_print.c:(.text+0x284): undefined reference to `__udivdi3'
b_print.c:(.text+0x728): undefined reference to `__umoddi3'
b_print.c:(.text+0x748): undefined reference to `__udivdi3'
make: *** [ssh] Error 1
If I then hack Makefile to call ld directly with libgcc in the library
path:
ld -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o
sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib
-R/usr/local/ssl/lib -L/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/
-R/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/ -lssh -lopenbsd-compat
-lresolv -lcrypto -lrt -lz -lsocket -lnsl -lgcc
ld: warning: cannot find entry symbol _start; defaulting to
00000000000120c0
$ ./ssh
Illegal Instruction (core dumped)
------- 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