Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247658 - dev-libs/openssl-0.9.8i: undefined references
Summary: dev-libs/openssl-0.9.8i: undefined references
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-20 03:26 UTC by Patrick Marques
Modified: 2008-11-20 12:17 UTC (History)
0 users

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 Patrick Marques 2008-11-20 03:26:23 UTC
When I compile with the pteid library (is used bay Portuguese Citizen Card) i have this errors:
$ cc -o auth auth.o -L /usr/local/lib -lpteid
/usr/local/lib/libpteid.so: undefined reference to `X509_STORE_set_flags@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `X509_STORE_add_cert@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `RAND_pseudo_bytes@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `BN_CTX_new@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `RSA_free@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `DES_set_key_unchecked@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `X509_free@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `d2i_X509@OPENSSL_0.9.8'
/usr/local/lib/libpteid.so: undefined reference to `sk_new_null@OPENSSL_0.9.8'
.... (have more, is a complete list in above URL)

I search in web and find in bugs list of official sit of openssl a patch that resolve this problem. 

Reproducible: Always




The patch that I use is:


--- openssl-0.9.8i/Configure
+++ openssl-0.9.8i/Configure
@@ -1329,6 +1329,8 @@
$shlib_minor=$2;
}

+$shared_ldflag .= " -Wl,--version-script=openssl.ld";
+
open(IN,'<Makefile.org') || die "unable to read Makefile.org:$!\n";
unlink("$Makefile.new") || die "unable to remove old $Makefile.new:$!\n" if -e "$Makefile.new";
open(OUT,">$Makefile.new") || die "unable to create $Makefile.new:$!\n";
--- openssl-0.9.8i/openssl.ld
+++ openssl-0.9.8i/openssl.ld
@@ -0,0 +1,5 @@
+OPENSSL_0.9.8 {
+ global:
+ *;
+};
+
--- openssl-0.9.8i/engines/openssl.ld
+++ openssl-0.9.8i/engines/openssl.ld
@@ -0,0 +1,5 @@
+OPENSSL_0.9.8 {
+ global:
+ *;
+};
+ 

well, this is my first bug report.
If i did something wrong please tell me.
Comment 1 Rafał Mużyło 2008-11-20 10:23:51 UTC
You're right, your solution is completely wrong,
as it solves a problem that's not really there.

Close this bug as invalid and return to the forums.