Mailing List Archive

Compiling on RH-6.2/SPARC
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
"
Re: Compiling on RH-6.2/SPARC [ In reply to ]
On Fri, 14 Apr 2000, Michael Jinks wrote:

> Linux embley 2.2.14-5.0 #1 Tue Mar 7 21:50:41 EST 2000 sparc64 unknown

> /home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:86: undefined reference to `__udiv_qrnnd'

I have no more access to an UltraSparc, but there might be some fixes
in 1.0.1d. It used to run on the very first sold UltraPenguin box
here in Germany, quite a while back.


Werner

--
Werner Koch OpenPGP key 621CC013
OpenIT GmbH tel +49 211 239577-0
Birkenstr. 12 email wk@openit.de
D-40233 Duesseldorf http://www.openit.de
Re: Compiling on RH-6.2/SPARC [ In reply to ]
On Fri, Apr 14, 2000 at 11:13:31AM +0200, Werner Koch wrote:
> On Fri, 14 Apr 2000, Michael Jinks wrote:
>
> > Linux embley 2.2.14-5.0 #1 Tue Mar 7 21:50:41 EST 2000 sparc64 unknown
>
> > /home/mjinks/src/gnupg-1.0.1/mpi/mpih-div.c:86: undefined reference to `__udiv_qrnnd'
>
> I have no more access to an UltraSparc, but there might be some fixes
> in 1.0.1d. It used to run on the very first sold UltraPenguin box
> here in Germany, quite a while back.

Well, okay... Would it help if I offered you (or another GPG developer if you
aren't interested or don't have the time) a login on my box? With Ultra's
being so cheap these days, and Solaris still so unusable as a desktop, I can
only imagine that there will be a lot more people in the same boat as me.
I don't have the expertise to debug this myself but I'd like to help any way
I can.

I'd offer to send you an Ultra, but they aren't _that_ cheap. ;)

-m


--
Michael Jinks, IB
Systems Administrator, Chicago Center for Computational Psychology
finger mjinks@embley.spc.uchicago.edu for public key
"
Re: Compiling on RH-6.2/SPARC [ In reply to ]
On Fri, 14 Apr 2000, Michael Jinks wrote:

> Well, okay... Would it help if I offered you (or another GPG developer if you
> aren't interested or don't have the time) a login on my box? With Ultra's

Thanks for this offer, shall I send you my ssh v1 key?

Werner

--
Werner Koch OpenPGP key 621CC013
OpenIT GmbH tel +49 211 239577-0
Birkenstr. 12 email wk@openit.de
D-40233 Duesseldorf http://www.openit.de