Compiling on RH-6.2/SPARC

Michael Jinks mjinks@midway.uchicago.edu
Fri, 14 Apr 2000 00:34:01 -0500


Hi-ho.  Arch-newbie, here, but I couldn't find anything about this in the 
docs or in the mailing list archives...

My system is a freshly-installed RedHat 6.2 on a Sun Ultra-5:

[mjinks@embley gnupg-1.0.1]$ uname -a
Linux embley 2.2.14-5.0 #1 Tue Mar 7 21:50:41 EST 2000 sparc64 unknown

[mjinks@embley mjinks]$ 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)

[mjinks@embley mjinks]$ ld -v
GNU ld version 2.9.5 (with BFD 2.9.5.0.22)

I'm trying to install gpg version 1.0.1; worked fine just a few minutes ago
on my box at home (RH 6.1-intel), but here I have trouble.   The compile dies
with this output:

<snip>
Making all in tools
make[2]: Entering directory `/home/mjinks/src/gnupg-1.0.1/tools'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl    -g -O2 -Wall -c mpicalc.c
gcc  -g -O2 -Wall  -o mpicalc  mpicalc.o ../cipher/libcipher.a  	      ../mpi/libmpi.a ../util/libutil.a  -lz -ldl -lnsl -lgdbm  -lnsl
../mpi/libmpi.a(mpih-div.o): In function `mpihelp_mod_1':
/home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:86: undefined reference to `__udiv_qrnnd'
/home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:123: undefined reference to `__udiv_qrnnd'
/home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:185: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o): In function `mpihelp_divrem':
/home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:237: undefined reference to `__udiv_qrnnd'
/home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:241: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o):/home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:289: more undefined references to `__udiv_qrnnd' follow
collect2: ld returned 1 exit status
make[2]: *** [mpicalc] Error 1
make[2]: Leaving directory `/home/mjinks/src/gnupg-1.0.1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mjinks/src/gnupg-1.0.1'
make: *** [all-recursive-am] Error 2

Now, I notice that the tail end of the ./configure script prints these 
messages, which might maybe be relevant but I'm not sure of their significance:

<snip>
creating config.h
linking ./mpi/sparc32/mpih-add1.S to mpi/mpih-add1.S
linking ./mpi/sparc32v8/mpih-mul1.S to mpi/mpih-mul1.S
linking ./mpi/sparc32v8/mpih-mul2.S to mpi/mpih-mul2.S
linking ./mpi/sparc32v8/mpih-mul3.S to mpi/mpih-mul3.S
linking ./mpi/sparc32/mpih-lshift.S to mpi/mpih-lshift.S
linking ./mpi/sparc32/mpih-rshift.S to mpi/mpih-rshift.S
linking ./mpi/generic/mpih-sub1.c to mpi/mpih-sub1.c
g10defs.h created

Went looking and I see that there is a ./mpi/supersparc/, but no sparc64, for
example; is this even relevant to my problem?

Is this a known issue?  Anybody else run up against this?

TIA,
-m

-- 
Michael Jinks, IB
Systems Administrator, Chicago Center for Computational Psychology
finger mjinks@embley.spc.uchicago.edu for public key
"