Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13795 - OpenSSH-3.5_p1 + OpenSSL-0.9.7 + gcc-3.x == failure
Summary: OpenSSH-3.5_p1 + OpenSSL-0.9.7 + gcc-3.x == failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 13657 16455 27379 29066 29144 29323 29334 29335 29502 30831 (view as bug list)
Depends on: 30701
Blocks:
  Show dependency tree
 
Reported: 2003-01-12 14:13 UTC by SpanKY
Modified: 2006-07-01 11:02 UTC (History)
11 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-01-12 14:13:13 UTC
confirmed on multiple boxes ... 
works with gcc-2.x, just not gcc-3.x 
 
gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o readconf.o clientloop.o 
-L. -Lopenbsd-compat/  -lssh -lopenbsd-compat -lutil -lz -lnsl -lcrypto 
./libssh.a(rsa.o)(.text+0x2fd): In function `rsa_generate_additional_parameters': 
: undefined reference to `BN_mod' 
./libssh.a(rsa.o)(.text+0x341): In function `rsa_generate_additional_parameters': 
: undefined reference to `BN_mod' 
collect2: ld returned 1 exit status 
make: *** [ssh] Error 1
Comment 1 SpanKY gentoo-dev 2003-01-12 14:40:51 UTC
heres the trouble ... 
in openssl-0.9.6 we have in include/openssl/bn.h: 
int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx); 
but in openssl-0.9.7 we have it as a macro ... 
#define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) 
 
so the final libcrypto files dont have BN_mod defined ... 
the fix may be to turn this back into a func, but just a pass through ... hacking openssl-0.9.7 if 
you would ... 
this *might* be better because who is to say this is the only package that breaks ... 
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-21 12:16:22 UTC
*** Bug 13657 has been marked as a duplicate of this bug. ***
Comment 3 Jeff Ames 2003-02-20 02:32:26 UTC
http://bugzilla.mindrot.org/show_bug.cgi?id=462 discusses this problem.  It
seems there could be an old definition for BN_mod hanging around in
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/openssl/bn.h.

qpkg shows that that file belongs to sys-devel/gcc.  So I re-emerged gcc
(sys-devel/gcc-3.2.2), which replaced that bn.h with a new one, and then
emerging openssh worked.
Comment 4 Nicholas Wourms 2003-02-20 12:28:11 UTC
I can confirm that removing the stray header in the gcc-lib dir resolves this.
Comment 5 SpanKY gentoo-dev 2003-02-27 14:45:51 UTC
*** Bug 16455 has been marked as a duplicate of this bug. ***
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-24 17:35:44 UTC
This seems to be resolved, could this be closed please?
Comment 7 SpanKY gentoo-dev 2003-06-24 17:56:27 UTC
i thought i had ;) 
Comment 8 SpanKY gentoo-dev 2003-08-26 15:17:41 UTC
*** Bug 27379 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2003-09-19 00:03:41 UTC
*** Bug 29066 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2003-09-20 00:47:27 UTC
*** Bug 29144 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2003-09-22 06:53:20 UTC
*** Bug 29323 has been marked as a duplicate of this bug. ***
Comment 12 Jason Wever (RETIRED) gentoo-dev 2003-09-22 13:32:53 UTC
*** Bug 29335 has been marked as a duplicate of this bug. ***
Comment 13 SpanKY gentoo-dev 2003-09-22 14:32:00 UTC
*** Bug 29334 has been marked as a duplicate of this bug. ***
Comment 14 SpanKY gentoo-dev 2003-09-25 08:30:31 UTC
*** Bug 29502 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2003-10-10 19:01:33 UTC
*** Bug 30831 has been marked as a duplicate of this bug. ***
Comment 16 David Li 2006-06-30 13:54:37 UTC
>>> Original instance of package unmerged safely.
/usr/portage/dev-libs/openssl/openssl-0.9.7j.ebuild: line 167: gcc-config: command not found
>>> Regenerating /etc/ld.so.cache...
>>> dev-libs/openssl-0.9.7j merged.
>>> Auto-cleaning packages...

Looks like this "fix" is now having issues
Comment 17 SpanKY gentoo-dev 2006-07-01 11:02:03 UTC
completely unrelated