Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 247658

Summary: dev-libs/openssl-0.9.8i: undefined references
Product: Gentoo Linux Reporter: Patrick Marques <patrickfmarques>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://forums.gentoo.org/viewtopic-p-5284943.html#5284943
Whiteboard:
Package list:
Runtime testing required: ---

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.