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.
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.