On Mon, Nov 17, 2003 at 10:04:40AM -0500, Vinnie Lima wrote: > I was hoping that someone had any information on compilation options that > I could use. Apparently no one has any....so here are step-by-step errors > and my attempts to fix it. Its long, so grab a coffee and enjoy.... > > First command: > > ./config --prefix=/opt/openssl > > [....] > > Configured for hpux-parisc-gcc.
Ok. Configure picked up the options and settings for 32bit. Your setup seems to be 64bit _and_ you seem to be using GNU-binutils (especially "ld"). > > gcc -v > Reading specs from > /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/specs > Configured with: ../src/configure --enable-languages=c,c++ > --prefix=/usr/local/pa20_64 --with-local-prefix=/usr/local/pa20_64 > --with-gnu-as --with-as=/usr/local/pa20_64/bin/as --with-gnu-ld > --with-ld=/usr/local/pa20_64/bin/ld --disable-shared --disable-nls > --host=hppa64-hp-hpux11.11 > Thread model: single > gcc version 3.3.2 > > Then second command: > > > make > > Which causes this problem after a few minutes: > > gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_THREADS -DDSO_DL > -DOPENSSL_NO_KRB5 -D_REENTRANT -O3 -DB_ENDIAN -DBN_DIV2W openssl.o > verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o > errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o > x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o > s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o > pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o -L.. -lssl -L.. -lcrypto > -Wl,+s -ldld ; \ > fi > /usr/local/pa20_64/bin/ld: cannot open +s: No such file or directory > collect2: ld returned 1 exit status > make[1]: *** [openssl] Error 1 Everything seem to have compiled, but now linking fails. GNU-ld doesn't seem to support the "+s" option to enable the use of SHLIB_PATH. As this option is not used for 64bit applications, this does make sense :-) > To fix it, I edit the "Configure" file and change: > > "hpux-parisc-gcc","gcc:-O3 -DB_ENDIAN -DBN_DIV2W::::-Wl,+s -ldld:BN_LLONG > DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared > :-fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", Hmm. There exist particular hpux64-parisc-cc and hpux64-parisc-gcc targets you can specify to configure. Use one of them as a basis. On my (10.20) box: serv01 22: ./config -h Usage: config [options] -d Add a debug- prefix to machine choice. -t Test mode, do not run the Configure perl script. -h This help. Any other text will be passed to the Configure perl script. See INSTALL for instructions. Operating system: 9000/780-hp-hpux10 Configuring for hpux-parisc-gcc /usr/local/bin/perl5 ./Configure hpux-parisc-gcc -D_REENTRANT So now I can issue /usr/local/bin/perl5 ./Configure hpux-parisc-cc -D_REENTRANT to choose HP's ANSI-C compiler target. Your settings for 64bit will vary... Best regards, Lutz -- Lutz Jaenicke [EMAIL PROTECTED] http://www.aet.TU-Cottbus.DE/personen/jaenicke/ BTU Cottbus, Allgemeine Elektrotechnik Universitaetsplatz 3-4, D-03044 Cottbus ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]