Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244968 - dev-libs/gmp - export __gmpn_clz_tab for binary-only packages
Summary: dev-libs/gmp - export __gmpn_clz_tab for binary-only packages
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 14:13 UTC by Andrey Vul
Modified: 2008-11-08 14:24 UTC (History)
0 users

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


Attachments
patch to fix clz_tab errors (gmp_mp_clz_tab.patch,424 bytes, text/plain)
2008-10-30 14:14 UTC, Andrey Vul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Vul 2008-10-30 14:13:26 UTC
Some programs which link against gmp require __gmpn_clz_tab. This patch removes the #ifdef surrounding (__gmpn)_clz_tab.
Comment 1 Andrey Vul 2008-10-30 14:14:27 UTC
Created attachment 170318 [details]
patch to fix clz_tab errors
Comment 2 SpanKY gentoo-dev 2008-11-02 09:26:14 UTC
that patch adds an ifdef ...

regardless, clz_tab looks like an internal symbol.  no external program should be referring to it.
Comment 3 Andrey Vul 2008-11-02 17:05:54 UTC
The patch *removes* the ifdef. Anyways, some proprietary programs (most of which were compiled with gcc3) use clz_tab in gmp. An example: Wolfram Mathematica 6. Unlike de-GPLing certain exports in the kernel for ATI drivers to work with -rt, this doesn't create legal and/or licensing issues.
Comment 4 SpanKY gentoo-dev 2008-11-02 20:21:33 UTC
i wonder if you actually read the patch you posted.  it uses +, not -.

if this is only for binary apps, then i'm inclined to not add it.
Comment 5 Andrey Vul 2008-11-02 20:50:09 UTC
Whoops, I messed up the order of the --- and the +++ file.

I'm guessing that a gcc3-compiled gmp doesn't hide clz_tab and therefore gcc3-based apps can become dependent on it.

With regards to binary apps, wouldn't it be a bit hypocritical to not include this while including libstdc++-v3 ?

Comment 6 SpanKY gentoo-dev 2008-11-02 20:52:42 UTC
no it isnt.  libstdc++-v3 does not require custom patches screwing with the internal ABI.
Comment 7 Andrey Vul 2008-11-02 20:57:01 UTC
So why then is the gcc3-built gmp ABI so different from the gcc4-built gmp ABI?
Comment 8 Andrey Vul 2008-11-02 20:58:02 UTC
The problem that I see is that with gentoo-wiki being down, there's no solution for Gentoo users who want to run Mathematica.
Google doesn't help.
Comment 9 SpanKY gentoo-dev 2008-11-08 14:24:50 UTC
i really dont know what ABI differences you're talking about.  the public ABI should be the same regardless of the compiler used ... that's the point of an ABI.

so if a random binary-only package is the only example you have, and the symbol in question is private, then i dont think this should be added.  you could always ask on the gmp lists to make sure something else isnt going on.

http://gmplib.org/#MAILINGLISTS