Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276557 - dev-libs/openssl fails with as-needed and no-undefined when USE=gmp
Summary: dev-libs/openssl fails with as-needed and no-undefined when USE=gmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-05 11:18 UTC by Justin Lecher (RETIRED)
Modified: 2010-01-11 00:45 UTC (History)
0 users

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


Attachments
/mnt/gentoo_32/var/tmp/portage/dev-libs/openssl-0.9.8k-r1/temp/build.log (build.log,350.61 KB, text/plain)
2009-07-05 11:19 UTC, Justin Lecher (RETIRED)
Details
/usr/portage/dev-libs/openssl/openssl-0.9.8k-r1.ebuild.patch (openssl-0.9.8k-r1.ebuild.patch,348 bytes, text/plain)
2009-07-05 11:20 UTC, Justin Lecher (RETIRED)
Details
/mnt/gentoo_32/tmp/emerge.info (emerge.info,14.89 KB, text/plain)
2009-07-05 11:21 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2009-07-05 11:18:36 UTC
Linking openssl with as-needed und no-undefined fails with missing symbols from gmp.

e_gmp.o: In function `e_gmp_rsa_finish':
e_gmp.c:(.text+0x6b): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0x76): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0x81): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0x8c): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0x97): undefined reference to `__gmpz_clear'
e_gmp.o:e_gmp.c:(.text+0xa2): more undefined references to `__gmpz_clear' follow
e_gmp.o: In function `bn2gmp':
e_gmp.c:(.text+0x14a): undefined reference to `__gmpz_realloc'
e_gmp.o: In function `e_gmp_rsa_mod_exp':
e_gmp.c:(.text+0x682): undefined reference to `__gmpz_mod'
e_gmp.c:(.text+0x6af): undefined reference to `__gmpz_powm'
e_gmp.c:(.text+0x6cd): undefined reference to `__gmpz_mod'
e_gmp.c:(.text+0x6ec): undefined reference to `__gmpz_powm'
e_gmp.c:(.text+0x700): undefined reference to `__gmpz_sub'
e_gmp.c:(.text+0x722): undefined reference to `__gmpz_mul'
e_gmp.c:(.text+0x73a): undefined reference to `__gmpz_mod'
e_gmp.c:(.text+0x75d): undefined reference to `__gmpz_mul'
e_gmp.c:(.text+0x775): undefined reference to `__gmpz_add'
e_gmp.c:(.text+0x850): undefined reference to `__gmpz_add'
e_gmp.c:(.text+0x870): undefined reference to `__gmpz_add'
e_gmp.c:(.text+0x8ac): undefined reference to `__gmpz_init'
e_gmp.c:(.text+0x8bb): undefined reference to `__gmpz_init'
e_gmp.c:(.text+0x8ca): undefined reference to `__gmpz_init'
e_gmp.c:(.text+0x8d9): undefined reference to `__gmpz_init'
e_gmp.c:(.text+0x8e8): undefined reference to `__gmpz_init'
e_gmp.o:e_gmp.c:(.text+0x8f7): more undefined references to `__gmpz_init' follow
e_gmp.o: In function `e_gmp_rsa_mod_exp':
e_gmp.c:(.text+0xa4a): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0xa56): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0xa62): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0xa6e): undefined reference to `__gmpz_clear'
e_gmp.c:(.text+0xa7a): undefined reference to `__gmpz_clear'
e_gmp.o:e_gmp.c:(.text+0xa86): more undefined references to `__gmpz_clear' follow
collect2: ld returned 1 exit status
make[2]: *** [link_o.gnu] Error 1

Attached you can find the patch for the ebuild.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-07-05 11:19:13 UTC
Created attachment 196731 [details]
/mnt/gentoo_32/var/tmp/portage/dev-libs/openssl-0.9.8k-r1/temp/build.log

build.log
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-07-05 11:20:32 UTC
Created attachment 196737 [details]
/usr/portage/dev-libs/openssl/openssl-0.9.8k-r1.ebuild.patch

ebuild.patch
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-07-05 11:21:05 UTC
Created attachment 196739 [details]
/mnt/gentoo_32/tmp/emerge.info

emerge --info
Comment 4 SpanKY gentoo-dev 2010-01-11 00:45:44 UTC
no need to add a new line

http://sources.gentoo.org/dev-libs/openssl/openssl-0.9.8l-r2.ebuild?r1=1.1&r2=1.2