Ticket #82 (new defect)

Opened 3 years ago

Last modified 6 months ago

Compilation failure: piv-tool.c:420: undefined reference to `ERR_load_crypto_strings'

Reported by: mikko.ahonen@… Owned by: opensc-devel@…
Priority: low Milestone: 0.11.5
Component: build Version: 0.11.0
Severity: normal Keywords:
Cc: mikko.ahonen@…

Description (last modified by martin) (diff)

Untar, installation with OpenCT 0.6.6.

% ./configure --prefix=/opt/opensc/0.11.0 --with-openct=/opt/openct/0.6.6
% make

Gives out the following problems:

Making all in tools
make[3]: Entering directory `/scratch/opensc-0.11.0/src/tools'
/bin/sh ../../libtool --tag=CC --mode=link gcc -I/opt/openssl/0.9.8a/include   -Wall -fno-strict-aliasing -g -O2  ../../src/libopensc/libopensc.la  -o piv-tool  piv-tool.o util.o  -lpthread 
gcc -I/opt/openssl/0.9.8a/include -Wall -fno-strict-aliasing -g -O2 -o .libs/piv-tool piv-tool.o util.o  ../../src/libopensc/.libs/libopensc.so -lpthread -Wl,--rpath -Wl,/opt/opensc/0.11.0/lib
piv-tool.o(.text+0x143): In function `main':
/scratch/opensc-0.11.0/src/tools/piv-tool.c:420: undefined reference to `ERR_load_crypto_strings'
piv-tool.o(.text+0x148):/scratch/opensc-0.11.0/src/tools/piv-tool.c:421: undefined reference to `OPENSSL_add_all_algorithms_noconf'
piv-tool.o(.text+0x7fc):/scratch/opensc-0.11.0/src/tools/piv-tool.c:115: undefined reference to `PEM_read_X509'
collect2: ld returned 1 exit status
make[3]: *** [piv-tool] Error 1
make[3]: Leaving directory `/scratch/opensc-0.11.0/src/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/scratch/opensc-0.11.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/opensc-0.11.0'
make: *** [all] Error 2

Change History

Changed 2 years ago by martin

  • owner changed from opensc-devel@… to opensc-devel@…
  • component changed from opensc to build
  • description modified (diff)
  • milestone changed from 0.10.0 to 0.11.2

This seems like a problem with build scripts and openssl location/detection and/or OpenSSL version. On what platform are you trying to build opensc? Have you tried with the latest versions(s) of all related software? (openssl+opensc)

Changed 22 months ago by martin

  • cc mikko.ahonen@… added
  • priority changed from normal to low

What version of openssl are you trying to build against ? No problems with 0.9.8d on osx/linux

Changed 6 months ago by airforce1

Note: See TracTickets for help on using tickets.