DeveloperSide.NET Forums
December 05, 2019, 03:46:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem building openSSL on Linux/Opteron  (Read 15771 times)
0 Members and 1 Guest are viewing this topic.
brapp
Member
*
Posts: 3

dilireus@speakeasy.net
View Profile WWW
« on: February 18, 2005, 07:41:39 PM »

I am trying to build a secure web server by following the directions at http://www.devside.net/web/server/linux/openssl.  The target hardware is a dual Opteron machine (HP DL585) running RHEL 3.  

I have followed the instructions verbatim starting with the zlib build, which completed successfully.  When I issue the 'make' command for openssl, I get the following error:

Code:
+ gcc -m64 -shared -o libcrypto.so.0.9.7 -Wl,-soname=libcrypto.so.0.9.7 -Wl,-Bsymbolic -Wl,--whole-archive libcrypto.a -Wl,--no-whole-archive -L. -ldl -lc
/usr/bin/ld: libcrypto.a(rc5_skey.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
libcrypto.a(rc5_skey.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [do_gnu-shared] Error 1
make[3]: Leaving directory `/usr/local/src/openssl-0.9.7e'
make[2]: *** [libcrypto.so.0.9.7] Error 2
make[2]: Leaving directory `/usr/local/src/openssl-0.9.7e'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/usr/local/src/openssl-0.9.7e/crypto'
make: *** [sub_all] Error 1


Any idea what the problem is or how to fix it?
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: February 18, 2005, 07:47:24 PM »

Did you build zlib shared?  Are you building openssl shared?
Have you acounted for the already installed RH native zlib and openssl libs that might be getting in the way?
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
brapp
Member
*
Posts: 3

dilireus@speakeasy.net
View Profile WWW
« Reply #2 on: February 18, 2005, 08:01:04 PM »

I built both zlib and openssl shared exactly as instructed.

I added

/usr/local/lib
/usr/local/ssl/lib

to /etc/ld.so.conf and ran ldconf

Also added /usr/local/ssl/bin to my PATH in anticipation of the conflict with the already installed openssl

What else would I do to account for native zlib and openssl libs?
Logged
brapp
Member
*
Posts: 3

dilireus@speakeasy.net
View Profile WWW
« Reply #3 on: February 18, 2005, 08:36:38 PM »

I did some poking around and found the following libz files:

Code:
[root@wbes709 zlib-1.1.4]# ll /usr/local/lib/
total 292
-rwxr-xr-x    1 root     root       106270 Feb 18 15:18 libz.a
lrwxrwxrwx    1 root     root           13 Feb 18 15:18 libz.so -> libz.so.1.1.4
lrwxrwxrwx    1 root     root           13 Feb 18 15:18 libz.so.1 -> libz.so.1.2.1
-rwxr-xr-x    1 root     root        90050 Feb 18 15:18 libz.so.1.1.4
-rwxr-xr-x    1 root     root        89117 Feb 18 13:46 libz.so.1.2.1


Code:
[root@wbes709 lib]# ll /usr/lib/libz*
-rwxr-xr-x    1 root     root        70588 Sep 17  2003 /usr/lib/libz.a
lrwxrwxrwx    1 root     root           13 Jan  6 14:38 /usr/lib/libz.so -> libz.so.1.1.4
lrwxrwxrwx    1 root     root           13 Jan  6 14:08 /usr/lib/libz.so.1 -> libz.so.1.1.4
-rwxr-xr-x    1 root     root        52584 Sep 17  2003 /usr/lib/libz.so.1.1.4


Code:
[root@wbes709 lib]# ll /usr/lib64/libz*
-rwxr-xr-x    1 root     root        83942 Sep 17  2003 /usr/lib64/libz.a
lrwxrwxrwx    1 root     root           13 Jan  6 14:38 /usr/lib64/libz.so -> libz.so.1.1.4
lrwxrwxrwx    1 root     root           13 Jan  6 14:08 /usr/lib64/libz.so.1 -> libz.so.1.1.4
-rwxr-xr-x    1 root     root        58472 Sep 17  2003 /usr/lib64/libz.so.1.1.4
-rw-r--r--    1 root     root       140790 Jun  9  2003 /usr/lib64/libzvt.a
lrwxrwxrwx    1 root     root           16 Jan  6 14:40 /usr/lib64/libzvt.so -> libzvt.so.2.2.10
lrwxrwxrwx    1 root     root           16 Jan  6 14:40 /usr/lib64/libzvt.so.2 -> libzvt.so.2.2.10
-rwxr-xr-x    1 root     root        97088 Jun  9  2003 /usr/lib64/libzvt.so.2.2.10
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!