Hi,

I'm trying to build openssl-0.9.6a on:

  maas34:eedalf {101} uname -a
  SunOS maas34 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-5_10

using:

  maas34:eedalf {102} gcc -v
  Reading specs from 
/opt/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
  gcc version 2.95.2 19991024 (release)

and I've used:
  
  maas34:openssl-0.9.6a {132} ./Configure --prefix=/home/eedalf gcc
 
After I issued "make", everything run through until the:

gcc -DMONOLITH -I../include -O3  -c  ciphers.c
gcc -DMONOLITH -I../include -O3  -c  nseq.c
gcc -DMONOLITH -I../include -O3  -c  pkcs12.c
gcc -DMONOLITH -I../include -O3  -c  pkcs8.c
gcc -DMONOLITH -I../include -O3  -c  spkac.c
gcc -DMONOLITH -I../include -O3  -c  smime.c
gcc -DMONOLITH -I../include -O3  -c  rand.c
gcc -DMONOLITH -I../include -O3  -c  openssl.c
rm -f openssl
gcc -o openssl -DMONOLITH -I../include -O3 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  -L.. -lssl -L.. -lcrypto 
Undefined                       first referenced
 symbol                             in file
socket                              s_socket.o
gethostbyname                       s_socket.o
accept                              s_socket.o
bind                                s_socket.o
setsockopt                          s_socket.o
getservbyname                       s_socket.o
gethostbyaddr                       s_socket.o
getsockopt                          ../libcrypto.a(b_sock.o)
shutdown                            s_server.o
listen                              s_socket.o
connect                             s_socket.o
ld: fatal: Symbol referencing errors. No output written to openssl
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `openssl'
Current working directory /home/eedalf/src/openssl-0.9.6a/apps
*** Error code 1
make: Fatal error: Command failed for target `sub_all'

So I went into apps and issued manually:

  maas34:apps {147} gcc -o openssl -DMONOLITH -I../include -O3 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 -L.. -lssl -L.. -lcrypto
-lsocket

And it helped. So maybe you should add it to the Makefile?

Regards
Alex
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to