Hallo,

I've just downloaded and tried to compile the latest (as far as
I could see) version of the PKCS#12 patch. I've read through the
FAQ at  http://www.drh-consultancy.demon.co.uk/pkcs12faq.html
which is very helpful in many aspects, but not so much about
compiling. What I understood is you unpack the patch tar file
(I am working on a Sparc Solaris machine by the way) in the
SSLeay-0.8.1 directory and recompile SSLeay with the patch.
I had no problems in compiling SSLeay alone. When I try to
compile it together with the PKCS#12 files (after having run
./Configure 'solaris-sparc-gcc' which is the option that
makes everything work fine when compiling SSLeay alone)
I get the following warning & then link error:

make[1]: Entering directory .../SSLeay-0.8.1/apps 
gcc -DMONOLITH -I../include -O3 -fomit-frame-pointer -mv8 -Wall   -c pkcs12.c 
pkcs12.c: In function `pkcs12_main':
pkcs12.c:61: warning: `name' might be used uninitialized in this function
/bin/rm -f ssleay
gcc -o ssleay -DMONOLITH -I../include -O3 -fomit-frame-pointer -mv8 -Wall
ssleay.o verify.o asn1pars.o req.o dgst.o dh.o enc.o gendh.o errstr.o ca.o
gendsa.o pkcs7.o crl2p7.o crl.o rsa.o dsa.o dsaparam.o x509.o genrsa.o
s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o version.o
sess_id.o ciphers.o pkcs12.o -L. -L.. -L../.. -L../../.. -L.. -lssl -L..
-lcrypto -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
PKCS12_struct_pack                  pkcs12.o
PKCS12_verify_mac                   pkcs12.o
PKCS12_get_attr                     pkcs12.o
ERR_load_PKCS12_strings             ../libcrypto.a(err_all.o)
PKCS12_add_localkeyid               pkcs12.o
PKCS12_init                         pkcs12.o
PKCS12_struct_unpack                pkcs12.o
PKCS12_add_friendlyname             pkcs12.o
PKCS12_pack_p7encdata               pkcs12.o
PKCS12_unpack_octet                 pkcs12.o
PKCS12_pack_safebag                 pkcs12.o
PKCS12_pack_p7data                  pkcs12.o
PKCS12_decrypt_d2i                  pkcs12.o
PKCS12_set_mac                      pkcs12.o
PKCS82PKEY                          pkcs12.o
uni2asc                             pkcs12.o
asc2uni                             pkcs12.o
PKEY2PKCS8                          pkcs12.o
PKCS12_MAKE_SHKEYBAG                pkcs12.o
ld: fatal: Symbol referencing errors. No output written to ssleay
make[1]: *** [ssleay] Error 1

Do I need to add some extra library in the makefile or include
a header file somewhere to make it find the undefined symbols?
Has anyone else tried compiling this under Sparc Solaris?
Any help appreciated. Please point me to the 'obvious' (I hope)
thing I am missing.

-- 
                                        ////
                                       (. .)
+---------------------------------oooO--(_)--Oooo----------------------+
| Evangelos Bouzianis                          [EMAIL PROTECTED] |
| DIMES DDTC                      .oooO                +31 15 278 1209 | 
| Technical University of Delft   (   )   Oooo.        The Netherlands |
+----------------------------------\ (----(   )------------------------+
                                    \_)    ) /
                                          (_/
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/  |
+-------------------------------------------------------------------------+

Reply via email to