Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76375 - gnupg-1.4.0 fails to link
Summary: gnupg-1.4.0 fails to link
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-01 21:41 UTC by Daniel Black (RETIRED)
Modified: 2022-04-19 20:01 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fixes linking errors on hppa (gnupg-1.4.0-r2.ebuild.diff,921 bytes, patch)
2005-03-14 14:21 UTC, René Nussbaumer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2005-01-01 21:41:05 UTC
------- From Jeremy Huddleston 2005-01-01 21:13 PST ------- (bug 70889)
gnupg-1.4 fails on sparc... it appears there's a symbol in libc.a that isn't in the shared lib, and gpg-1.4 uses it... I'll look into this later...

sparc-unknown-linux-gnu-gcc  -mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe -Wall  -Wl,-z,now -o mpicalc  mpicalc.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a    -lcap  
../mpi/libmpi.a(mpih-div.o)(.text+0x400): In function `mpihelp_mod_1':
: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o)(.text+0x61c): In function `mpihelp_mod_1':
: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o)(.text+0x638): In function `mpihelp_mod_1':
: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o)(.text+0x734): In function `mpihelp_divrem':
: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o)(.text+0x8ec): In function `mpihelp_divrem':
: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o)(.text+0x918): more undefined references to `__udiv_qrnnd' follow
collect2: ld returned 1 exit status
make[2]: *** [mpicalc] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/tmp/portage/gnupg-1.4.0/work/gnupg-1.4.0/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tmp/portage/gnupg-1.4.0/work/gnupg-1.4.0'
make: *** [all] Error 2

Throwing a -static (or just adding /usr/lib/libc.a) makes the compile work.

(21:08:26 Sat Jan 01 2005 root@aeris sparc64)
/mnt/raid0/gentoo/gentoo-x86 $ grep __udiv_qrnnd /usr/lib/libc.a
Binary file /usr/lib/libc.a matches

(21:11:45 Sat Jan 01 2005 root@aeris sparc64)
/mnt/raid0/gentoo/gentoo-x86 $ grep __udiv_qrnnd /lib/*so*      

suspected libc problem.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-01-01 21:45:13 UTC
Mike reports that hppa fails in the same manner.

15:14:13] <@SpanKY> dragonheart: mmm udiv is provided by libgcc_s i think
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-03 04:10:53 UTC
vapier was wrong.  It's not in libgcc_s... atleast not here on sparc.
Comment 3 SpanKY gentoo-dev 2005-01-03 14:20:02 UTC
theres a few udiv functions out there

the ones i was thinking of were the common ones, __udivdi3 / __udivmoddi4 which libgcc_s does provide

of course, that is unrelated to this bug report though
Comment 4 René Nussbaumer (RETIRED) gentoo-dev 2005-03-14 14:20:36 UTC
I found a soloution. The problem seems to be the --disable-asm option. Now I disabled it for hppa and it works. Maybe it works for sparc too, but I haven't got time to test it. I add a diff of the ebuild.
Comment 5 René Nussbaumer (RETIRED) gentoo-dev 2005-03-14 14:21:46 UTC
Created attachment 53457 [details, diff]
fixes linking errors on hppa

The patch is for the gnupg-1.4.0-r2 ebuild.
Comment 6 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-03-14 14:50:55 UTC
Ren
Comment 7 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-03-14 14:50:55 UTC
René: you can use this:
  if use !hppa; then

Thanks for the patch!
Comment 8 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-03-15 10:12:49 UTC
After eradicator already fixed the ebuild, I added it to ~hppa. Thanks to Ren
Comment 9 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-03-15 10:12:49 UTC
After eradicator already fixed the ebuild, I added it to ~hppa. Thanks to René for the fix.

Closing the bug.