I get the following error when trying to compile SSH 1.2.26 or 1.2.27 gcc -pipe -o ssh ssh.o sshconnect.o log-client.o readconf.o hostfile.o readpass.o tildexpand.o clientloop.o canohost.o idea.o rsa.o randoms.o md5.o buffer.o emulate.o packet.o compress.o xmalloc.o ttymodes.o newchannels.o bufaux.o authfd.o authfile.o crc32.o rsaglue.o cipher.o des.o match.o arcfour.o mpaux.o userfile.o signals.o blowfish.o deattack.o \ -Lgmp-2.0.2-ssh-2 -lgmp -Lzlib-1.0.4 -lz -lnsl -lbsd -lcrypt -L/usr/local/lib -lutil gmp-2.0.2-ssh-2/libgmp.a(mpn_divmod_1.o): In function `__mpn_divmod_1': /tmp/ssh-1.2.26/gmp-2.0.2-ssh-2/mpn/divmod_1.c:91: undefined reference to `__udiv_qrnnd' /tmp/ssh-1.2.26/gmp-2.0.2-ssh-2/mpn/divmod_1.c:129: undefined reference to `__udiv_qrnnd' /tmp/ssh-1.2.26/gmp-2.0.2-ssh-2/mpn/divmod_1.c:204: undefined reference to `__udiv_qrnnd' gmp-2.0.2-ssh-2/libgmp.a(mpn_divrem.o): In function `__mpn_divrem': /tmp/ssh-1.2.26/gmp-2.0.2-ssh-2/mpn/divrem.c:84: undefined reference to `__udiv_qrnnd' /tmp/ssh-1.2.26/gmp-2.0.2-ssh-2/mpn/divrem.c:88: undefined reference to `__udiv_qrnnd' gmp-2.0.2-ssh-2/libgmp.a(mpn_divrem.o):/tmp/ssh-1.2.26/gmp-2.0.2-ssh-2/mpn/divrem.c:141: more undefined references to `__udiv_qrnnd' follow collect2: ld returned 1 exit status make: *** [ssh] Error 1 I am compiling on a SUN Ultra 170 {croyston.com:41} gcc -v Reading specs from /usr/lib/gcc-lib/sparc-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
This would appear to be a bug in GCC and/or the libraries, but tracking it down may take a bit of effort. Could you send a self-contained test case? Sounds like it would be the output of "gcc -E" for one of the source files which is causing the problem ( gmp-2.0.2-ssh-2/mpn/divmod_1.c it would appear).
closed because of lack of feedback