Re: Shared Libs on Linux-x86_64

2008-03-21 Thread Andy Polyakov
 I get an error when enabling the shared build on my RH machine. I enable
 the
 shared lib build with the following config command:
 
$ ./Configure shared --prefix=/usr/local/openssl-0.9.9 linux-x86_64
 
 The error I get is the following (only when I build the share libs, the
 static
 libs get build correctly):
 
 [ --==oooOOOooo==-- *OpenSSL SNAP - 20080318* --====--]
 
 /usr/bin/ranlib ../../libcrypto.a || echo Never mind.
 make[2]: Leaving directory
 `/home/madwolf/devel/originals/openssl-SNAP-20080318/crypto/ts'
 if [ -n libcrypto.so.0.9.9 libssl.so.0.9.9 ]; then \
 (cd ..; make libcrypto.so.0.9.9); \
 fi
 make[2]: Entering directory
 `/home/madwolf/devel/originals/openssl-SNAP-20080318'
 make[3]: Entering directory
 `/home/madwolf/devel/originals/openssl-SNAP-20080318'
 make[4]: Entering directory
 `/home/madwolf/devel/originals/openssl-SNAP-20080318'
 /usr/bin/ld: libcrypto.a(aes_wrap.o): relocation R_X86_64_32 against `a
 local symbol' can not be used when making a shared object; recompile
 with -fPIC
 libcrypto.a(aes_wrap.o): could not read symbols: Bad value

'a local symbol'? That's not very helpful message... In either case, I
bet aes_wrap.o is left after static build. Run 'make clean' or even '(cd
crypto/aes; make clean)' followed by 'make'.

One can wonder how come all other modules get recompiled, but not
aes_wrap.o. Someone apparently forgot to generate dependencies for
aes_wrap.o in crypto/aes/Makefile. Meanwhile stick to 'make clean'. A.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Shared Libs on Linux-x86_64

2008-03-19 Thread Massimiliano Pala

Hi guys,

I get an error when enabling the shared build on my RH machine. I enable the
shared lib build with the following config command:

   $ ./Configure shared --prefix=/usr/local/openssl-0.9.9 linux-x86_64

The error I get is the following (only when I build the share libs, the static
libs get build correctly):

[ --==oooOOOooo==-- *OpenSSL SNAP - 20080318* --====--]

/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
make[2]: Leaving directory 
`/home/madwolf/devel/originals/openssl-SNAP-20080318/crypto/ts'
if [ -n libcrypto.so.0.9.9 libssl.so.0.9.9 ]; then \
(cd ..; make libcrypto.so.0.9.9); \
fi
make[2]: Entering directory 
`/home/madwolf/devel/originals/openssl-SNAP-20080318'
make[3]: Entering directory 
`/home/madwolf/devel/originals/openssl-SNAP-20080318'
make[4]: Entering directory 
`/home/madwolf/devel/originals/openssl-SNAP-20080318'
/usr/bin/ld: libcrypto.a(aes_wrap.o): relocation R_X86_64_32 against `a local symbol' can 
not be used when making a shared object; recompile with -fPIC

libcrypto.a(aes_wrap.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [link_a.gnu] Error 1
make[4]: Leaving directory `/home/madwolf/devel/originals/openssl-SNAP-20080318'
make[3]: *** [do_linux-shared] Error 2
make[3]: Leaving directory `/home/madwolf/devel/originals/openssl-SNAP-20080318'
make[2]: *** [libcrypto.so.0.9.9] Error 2
make[2]: Leaving directory `/home/madwolf/devel/originals/openssl-SNAP-20080318'
make[1]: *** [shared] Error 2
make[1]: Leaving directory 
`/home/madwolf/devel/originals/openssl-SNAP-20080318/crypto'
make: *** [build_crypto] Error 1

--

Best Regards,

Massimiliano Pala

--o
Massimiliano Pala [OpenCA Project Manager][EMAIL PROTECTED]
 [EMAIL PROTECTED]

Dartmouth Computer Science Dept   Home Phone: +1 (603) 397-3883
PKI/Trust - Office 063Work Phone: +1 (603) 646-9179
--o


smime.p7s
Description: S/MIME Cryptographic Signature