Subject: Re: OpenSSL engine.h - msg#00016
List: encryption.opensc.devel
Michael Bell wrote:
...
The patch fixes the problem with OpenSSL but I get a new one.
make[4]: Entering directory `/home/michael/OpenSC/cvs/opensc/src/tests'
/bin/sh ../../libtool --mode=link gcc -Wall -fno-strict-aliasing -g -O2
-L/usr -L/usr/lib -L/usr/lib -L/usr/local/ssl/lib
../../src/libopensc/libopensc.la -o base64 base64.o sc-test.o -lpthread
gcc -Wall -fno-strict-aliasing -g -O2 -o .libs/base64 base64.o sc-test.o
-L/usr -L/usr/lib -L/usr/local/ssl/lib
../../src/libopensc/.libs/libopensc.so
/home/michael/OpenSC/cvs/opensc/src/scconf/.libs/libscconf.so -ldl
-lcrypto -lpcsclite -lpthread -Wl,--rpath -Wl,/usr/local/lib
../../src/libopensc/.libs/libopensc.so: undefined reference to
`DES_set_key_unchecked'
../../src/libopensc/.libs/libopensc.so: undefined reference to
`DES_ecb3_encrypt'
../../src/libopensc/.libs/libopensc.so: undefined reference to
`DES_ecb_encrypt'
collect2: ld returned 1 exit status
This is a linker problem because OpenSC builds LDFLAGS in a wrong way:
LDFLAGS= -L/usr -L/usr/lib -L/usr/lib -L/usr/local/ssl/lib
correct would be:
LDFLAGS= -L/usr/local/ssl/lib -L/usr -L/usr/lib -L/usr/lib
the same on my box (after applying the attached patch [1] and reconf)
...
/bin/sh ../../libtool --mode=link gcc -Wall -fno-strict-aliasing -g -O2
-L/home/nils//lib ../../src/libopensc/libopensc.la -o base64
base64.o sc-test.o -lpthread
mkdir .libs
gcc -Wall -fno-strict-aliasing -g -O2 -o .libs/base64 base64.o sc-test.o
-L/home/nils//lib ../../src/libopensc/.libs/libopensc.so
-L/usr/local/lib /home/nils/OpenSC/head/src/scconf/.libs/libscconf.so
-lcrypto /usr/local/lib/libopenct.so /usr/lib/libpcsclite.so -lfl -ldl
-lpthread -Wl,--rpath -Wl,/home/nils/lib -Wl,--rpath -Wl,/usr/local/lib
creating base64
=> on my box the LD flags are in the correct order ...
Note:
1. configure run with the following options: "--prefix=/home/nils
--with-openssl=/home/nils/ --with-pcsclite=/usr/
--with-openct=/usr/local"
2. using OpenSSL 0.9.8-dev in /home/nils/lib
Cheers,
Nils
[1] this is Victor's patch + one $LIBDL
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: OpenSSL engine.h
Nils Larsch wrote:
Michael Bell wrote:
Hi,
I have a problem with the OpenSSL inclusion. I configured with an
OpenSSL 0.9.7c.
./configure --with-openssl=/usr/local/ssl
The configure reports openssl and engine support but the compilation
fails. It looks for me like my openssl path is ignored because I see
no -I/usr/local/ssl/include.
sounds like:
http://www.opensc.org/pipermail/opensc-devel/2004-July/004356.html
in case Victor's patch is ok, I can commit it.
Sorry I didn't have the time so far to test Victor's patch.
Hi,
There is one more minor remark to configure.in.
Without pkg-config installed, after the successeful link-test for the
old style pcsc paths ,
LDFLAGS contains "-L/usr -L/usr/lib -L/usr/lib " at the begining of the
L-path list (configure.in +565).
This can disturb linking with the other libraries.
(So, one has to install pkg-config, or use 'configure
--with-pcsclite=PATH ... '.)
Regards,
Viktor.
Next Message by Date:
click to view message preview
Re: OpenSSL engine.h
Hi Victor,
thanks for your advice. The following configuration works for me
./configure --with-openssl=/usr/local/ssl --with-pcsclite=/usr/local
Thanks again
Michael
--
-------------------------------------------------------------------
Michael Bell Email: michael.bell@xxxxxxxxxxxxxxxx
ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482
(Computing Centre) Fax: +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin Email (private): michael.bell@xxxxxx
Germany http://www.openca.org
Previous Message by Thread:
click to view message preview
Re: OpenSSL engine.h
Nils Larsch wrote:
http://www.opensc.org/pipermail/opensc-devel/2004-July/004356.html
in case Victor's patch is ok, I can commit it.
Sorry I didn't have the time so far to test Victor's patch.
The patch fixes the problem with OpenSSL but I get a new one.
make[4]: Entering directory `/home/michael/OpenSC/cvs/opensc/src/tests'
/bin/sh ../../libtool --mode=link gcc -Wall -fno-strict-aliasing -g -O2
-L/usr -L/usr/lib -L/usr/lib -L/usr/local/ssl/lib
../../src/libopensc/libopensc.la -o base64 base64.o sc-test.o -lpthread
gcc -Wall -fno-strict-aliasing -g -O2 -o .libs/base64 base64.o sc-test.o
-L/usr -L/usr/lib -L/usr/local/ssl/lib
../../src/libopensc/.libs/libopensc.so
/home/michael/OpenSC/cvs/opensc/src/scconf/.libs/libscconf.so -ldl
-lcrypto -lpcsclite -lpthread -Wl,--rpath -Wl,/usr/local/lib
../../src/libopensc/.libs/libopensc.so: undefined reference to
`DES_set_key_unchecked'
../../src/libopensc/.libs/libopensc.so: undefined reference to
`DES_ecb3_encrypt'
../../src/libopensc/.libs/libopensc.so: undefined reference to
`DES_ecb_encrypt'
collect2: ld returned 1 exit status
This is a linker problem because OpenSC builds LDFLAGS in a wrong way:
LDFLAGS= -L/usr -L/usr/lib -L/usr/lib -L/usr/local/ssl/lib
correct would be:
LDFLAGS= -L/usr/local/ssl/lib -L/usr -L/usr/lib -L/usr/lib
OpenSC compiles with headerfiles of OpenSSL 0.9.7 but links with 0.9.6.
I have no idea where this happens.
Michael
--
-------------------------------------------------------------------
Michael Bell Email: michael.bell@xxxxxxxxxxxxxxxx
ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482
(Computing Centre) Fax: +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin Email (private): michael.bell@xxxxxx
Germany http://www.openca.org
Next Message by Thread:
click to view message preview
Re: OpenSSL engine.h
Hi Victor,
thanks for your advice. The following configuration works for me
./configure --with-openssl=/usr/local/ssl --with-pcsclite=/usr/local
Thanks again
Michael
--
-------------------------------------------------------------------
Michael Bell Email: michael.bell@xxxxxxxxxxxxxxxx
ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482
(Computing Centre) Fax: +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin Email (private): michael.bell@xxxxxx
Germany http://www.openca.org