solaris 9 openssl make problem with ld


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users solaris 9 openssl make problem with ld
# 1  
Old 02-03-2004
solaris 9 openssl make problem with ld

i've seen a few posts regarding this issue, and i've tried the resolutions,
but i keep running into the same problem.

i'm trying to compile OpenSSL with the use of rsaref-2.0 (i'm running
through this tutorial
http://www.devshed.com/c/a/PHP/The-S...MySQL-and-PHP/).

i hit the following error:
---------------------------------
if [ "" = "hpux-shared" -o "" = "darwin-shared" ] ; then \
gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_NO_KRB5 -O
openssl.o ve
rify.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 ve
rsion.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o
engin
e.o ocsp.o ../libssl.a ../libcrypto.a ; \
else \
LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH \
gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_NO_KRB5 -O
openssl.o ve
rify.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 ve
rsion.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o
engin
e.o ocsp.o -L.. -lssl -L.. -lcrypto ; \
fi
Undefined first referenced
symbol in file
getsockopt ../libcrypto.a(b_sock.o)
listen s_socket.o
connect s_socket.o
shutdown s_server.o
socket s_socket.o
getservbyname s_socket.o
gethostbyname s_socket.o
accept s_socket.o
bind s_socket.o
setsockopt s_socket.o
gethostbyaddr s_socket.o
ld: fatal: Symbol referencing errors. No output written to openssl
collect2: ld returned 1 exit status
make[1]: *** [openssl] Error 1
make[1]: Leaving directory `/usr/home/austin/openssl-0.9.7c/apps'
make: *** [sub_all] Error 1
-----------------------------------

i've added binutils, i'm sure i have everything in my path (/usr/local/bin,
/usr/local/include, /usr/local/lib)

so right now, i'm really outta ideas on how to resolve this issue.
# 2  
Old 02-03-2004
which path did you add them to?

you need to add them to this path and export it:
LD_LIBRARY_PATH

Library paths goto : LD_LIBRARY_PATH
Execuateble path goto: PATH
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem of encrypt openssl RC4

Hi Guys sorry about post the code in portuguese but now i fix almost parts of code. now i can encryped and decryped the files but have a small problem. When not writte nathing generate automatically a random cypher but after the value of this cypher not appear igual than variable $saved_key. And... (2 Replies)
Discussion started by: Xremix30
2 Replies

2. Shell Programming and Scripting

Openssl scripting problem

im trying to make sure the openssl password does not show up in the output of ps. so i'm trying to do something like this: MAST=yup echo "U2FsdGVkX19wH9LrQhuRZes45BM9rfiRpdhTCi+gLls=" | openssl <<HERE 2>&1 >/dev/null aes-128-cbc -a -d -salt -k "${MAST}" HERE But this isn't working.. I... (10 Replies)
Discussion started by: SkySmart
10 Replies

3. Solaris

Solaris v Ubuntu using OpenSSL paste problem

Hello, I hope this means something to someone. I have an odd problem that just started happening recently. I am not the system admin, so I don't have full info on any changes to the system lately. Except that I did upgrade OpenSSL to version 1.0.1.c from 1.0.0j. Anyway, I am trying to... (4 Replies)
Discussion started by: jonycp
4 Replies

4. UNIX for Dummies Questions & Answers

openssl dgst cat header problem

I am trying to run an old script to modify an image file with a modified header to bypass the md5 check but it comes up with an error message. The image file is for use on a Expressgate SSD so that I can add sqx files to it. This is a link from where I got the script:-... (3 Replies)
Discussion started by: r1speedyrider
3 Replies

5. Solaris

NRPE Compiling problem with OpenSSL 1.0

I am trying to compile nrpe 2.12 against openssl 1.0 on Solaris 10 however I am getting core dumps for some reason. Anyone know a way to fix this? Here is the output of make: bash-3.00# make all cd ./src/; make ; cd .. gcc -g -fPIC -Wall -O2 -I/usr/local/ssl/include... (0 Replies)
Discussion started by: _JPL_
0 Replies

6. Solaris

I need make backup of OS solaris 10

Hello I need to do some backup of operation system Solaris 10, but I donīt know how can I do, I would like to do this backup in tape, but I need to do this backup in both to disk and to tape. How can I do backup of solaris 10 Operation System to disk? How can I do backup of solaris 10... (1 Reply)
Discussion started by: cata
1 Replies

7. Solaris

[problem]Make minimalis CPU and Memory Solaris 10

Dear All master We have Sunfire memory 16G memory and 8 Processor. I install with Solaris 10, but i think resource that use all proccess is very much, I installed this machine 3 times, twice install Oracle the load process make machine is very slow. in new install process like this,... (1 Reply)
Discussion started by: moslemovic
1 Replies

8. Cybersecurity

What Solaris SSL pkg in equivelant to OpenSSL v0.9.8i?

I am researching CVE-2009-1386 and am trying to determine if my version of SUNWopensslr is equivalent to OpenSSL v0.9.8i. Here's my output: root# pkginfo -l SUNWopensslr PKGINST: SUNWopensslr NAME: OpenSSL (Root) CATEGORY: system ARCH: sparc VERSION: ... (1 Reply)
Discussion started by: bluescreen
1 Replies

9. Solaris

Solaris 10 Core Installation wsftpd make problem

Hello, I have just installed a Solaris10 server with core installation option. I tried to install vsftp on this server but it's asking me "make" to compile the program. But I could'nt find make. I searched that on web and installed SUNWarc SUNWbinutils SUNWgcc SUNWgccruntime SUNWgcmn... (2 Replies)
Discussion started by: shadowfaxxxx
2 Replies

10. Solaris

Solaris 10 and 64 bit apache/openssl/gcc

I installed Solaris 10 on a v440. I installed v3.4.6 gcc from Sun Freeware. I was considering installing 64 bit Apache/Openssl and wondered if people encountered any problems with it. What config parameters did you have to compile openssl and apache? Thank you (3 Replies)
Discussion started by: csross
3 Replies
Login or Register to Ask a Question