tpoechtrager / cctools-port

Apple cctools port for Linux and *BSD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest ldid master breaks build process

gasgallo opened this issue · comments

If I try to run build.sh in usage_examples, the process fails with latest ldid master, but it's successfull with ldid commit f83af8eff0bbd79972fe61a11453b0f9c8deba00.

I need more information. What's your OS and version? What exactly fails? A build log would be great.

I'm using Ubuntu 16.04. ldid build fails for ldid commits more recent than f83af8eff0bbd79972fe61a11453b0f9c8deba00.

Here's the log:

*** extracting SDK ***

extracting iPhoneOS14.0.sdk.tar.gz ...

*** building wrapper ***

cc -O2 -Wall -Wextra -pedantic wrapper.c -DSDK_DIR="\"iPhoneOS14.0.sdk\"" -DTARGET_CPU="\"arm64\"" -DOS_VER_MIN="\"14.0\"" -o /mace-toolkit/mace/third_party/cctools-port/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang
ln -sf arm-apple-darwin11-clang arm-apple-darwin11-clang++

*** building ldid ***

Cloning into 'ldid'...
remote: Enumerating objects: 253, done.
remote: Counting objects: 100% (253/253), done.
remote: Compressing objects: 100% (174/174), done.
remote: Total 253 (delta 58), reused 247 (delta 58), pack-reused 0
Receiving objects: 100% (253/253), 239.04 KiB | 240.00 KiB/s, done.
Resolving deltas: 100% (58/58), done.
Checking connectivity... done.
HEAD is now at 564b705 Simplify build process
Already on 'master'
Your branch is up-to-date with 'origin/master'.
From https://github.com/tpoechtrager/ldid
 * branch            master     -> FETCH_HEAD
Already up-to-date.
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/libcnary/node.o libplist/libcnary/node.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/libcnary/node_list.o libplist/libcnary/node_list.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/base64.o libplist/src/base64.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/time64.o libplist/src/time64.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/bytearray.o libplist/src/bytearray.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/ptrarray.o libplist/src/ptrarray.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/bplist.o libplist/src/bplist.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/plist.o libplist/src/plist.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/xplist.o libplist/src/xplist.c
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing   -c -o libplist/src/hashtable.o libplist/src/hashtable.c
g++ -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-sign-compare -Wno-deprecated-declarations -Wno-unused-function -std=c++0x -o ldid.cpp.o -c ldid.cpp -I.
cc -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing -o lookup2.c.o -c lookup2.c -I.
ldid.cpp: In constructor 'Signature::Signature(const Stuff&, const Buffer&, const string&)':
ldid.cpp:1638:23: warning: value computed is not used [-Wunused-value]
         BIO_flush(bio);
                       ^
g++ -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-strict-aliasing -O2 -fPIC -isystem libplist/src -isystem libplist/libcnary/include -isystem libplist/include -Wall -Wno-sign-compare -Wno-deprecated-declarations -Wno-unused-function -lcrypto -pthread -o ldid libplist/libcnary/node.o libplist/libcnary/node_list.o libplist/src/base64.o libplist/src/time64.o libplist/src/bytearray.o libplist/src/ptrarray.o libplist/src/bplist.o libplist/src/plist.o libplist/src/xplist.o libplist/src/hashtable.o ldid.cpp.o lookup2.c.o
ldid.cpp.o: In function `ldid::get(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, X509_name_st*, int)':
ldid.cpp:(.text+0x27f): undefined reference to `X509_NAME_get_index_by_NID'
ldid.cpp:(.text+0x292): undefined reference to `X509_NAME_get_index_by_NID'
ldid.cpp:(.text+0x2a5): undefined reference to `X509_NAME_get_entry'
ldid.cpp:(.text+0x2b6): undefined reference to `X509_NAME_ENTRY_get_data'
ldid.cpp:(.text+0x2ca): undefined reference to `ASN1_STRING_length'
ldid.cpp:(.text+0x2d4): undefined reference to `ASN1_STRING_data'
ldid.cpp.o: In function `ldid::Sign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ldid::Folder&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ldid::Hash, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ldid::Hash> > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ldid::Functor<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> const&, ldid::Progress const&)::{lambda(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)#6}::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const::{lambda(std::basic_streambuf<char, std::char_traits<char> >&, unsigned long, void const*)#1}::operator()(std::basic_streambuf<char, std::char_traits<char> >, unsigned long, void const) const::{lambda(std::basic_streambuf<char, std::char_traits<char> >)#2}::operator()(std::basic_streambuf<char, std::char_traits<char> >) const [clone .constprop.385]':
ldid.cpp:(.text+0xc99): undefined reference to `SHA1_Init'
ldid.cpp:(.text+0xca6): undefined reference to `SHA256_Init'
ldid.cpp:(.text+0xcd8): undefined reference to `SHA1_Update'
ldid.cpp:(.text+0xceb): undefined reference to `SHA256_Update'
ldid.cpp:(.text+0xd3d): undefined reference to `SHA1_Final'
ldid.cpp:(.text+0xd53): undefined reference to `SHA256_Final'
ldid.cpp.o: In function `ldid::Sign(void const*, unsigned long, std::basic_streambuf<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<unsigned int, ldid::Hash, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, ldid::Hash> > > const&, unsigned int, bool, ldid::Progress const&)::{lambda(MachHeader const&, Baton const&, std::basic_streambuf<char, std::char_traits<char> >&, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, ldid::Progress const&)#2}::operator()(MachHeader const&, Baton const&, std::basic_streambuf<char, std::char_traits<char> >&, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, ldid::Progress const&) const [clone .constprop.395]':
ldid.cpp:(.text+0x70a3): undefined reference to `BIO_new_mem_buf'
ldid.cpp:(.text+0x70b9): undefined reference to `d2i_PKCS12_bio'
ldid.cpp:(.text+0x7105): undefined reference to `PKCS12_parse'
ldid.cpp:(.text+0x7142): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x714e): undefined reference to `BIO_new_mem_buf'
ldid.cpp:(.text+0x7195): undefined reference to `BIO_new_mem_buf'
ldid.cpp:(.text+0x71d4): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x71f3): undefined reference to `BIO_s_mem'
ldid.cpp:(.text+0x71fb): undefined reference to `BIO_new'
ldid.cpp:(.text+0x7209): undefined reference to `i2d_PKCS7_bio'
ldid.cpp:(.text+0x7228): undefined reference to `BIO_ctrl'
ldid.cpp:(.text+0x72c3): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x72d0): undefined reference to `PKCS7_free'
ldid.cpp:(.text+0x72d8): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x72df): undefined reference to `X509_free'
ldid.cpp:(.text+0x72ec): undefined reference to `sk_pop_free'
ldid.cpp:(.text+0x72f9): undefined reference to `X509_free'
ldid.cpp:(.text+0x7306): undefined reference to `EVP_PKEY_free'
ldid.cpp:(.text+0x7313): undefined reference to `PKCS12_free'
ldid.cpp:(.text+0x7458): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x7465): undefined reference to `PKCS7_free'
ldid.cpp:(.text+0x746d): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x7474): undefined reference to `X509_free'
ldid.cpp:(.text+0x7481): undefined reference to `sk_pop_free'
ldid.cpp:(.text+0x748e): undefined reference to `X509_free'
ldid.cpp:(.text+0x749b): undefined reference to `EVP_PKEY_free'
ldid.cpp:(.text+0x74a8): undefined reference to `PKCS12_free'
ldid.cpp:(.text+0x7569): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x7586): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0x75c9): undefined reference to `sk_new_null'
ldid.cpp:(.text+0x7742): undefined reference to `BIO_free_all'
ldid.cpp.o: In function `ldid::Sign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ldid::Folder&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ldid::Hash, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ldid::Hash> > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ldid::Functor<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> const&, ldid::Progress const&)::{lambda(std::basic_streambuf<char, std::char_traits<char> >&)#9}::operator()(std::basic_streambuf<char, std::char_traits<char> >&) const [clone .constprop.383]':
ldid.cpp:(.text+0x7f75): undefined reference to `SHA1_Init'
ldid.cpp:(.text+0x7f81): undefined reference to `SHA256_Init'
ldid.cpp:(.text+0x7fdb): undefined reference to `SHA1_Update'
ldid.cpp:(.text+0x7fed): undefined reference to `SHA256_Update'
ldid.cpp:(.text+0x802e): undefined reference to `SHA1_Final'
ldid.cpp:(.text+0x8046): undefined reference to `SHA256_Final'
ldid.cpp.o: In function `ldid::Sign(void const*, unsigned long, std::basic_streambuf<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<unsigned int, ldid::Hash, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, ldid::Hash> > > const&, unsigned int, bool, ldid::Progress const&)':
ldid.cpp:(.text+0xbbdd): undefined reference to `BIO_new_mem_buf'
ldid.cpp:(.text+0xbbf3): undefined reference to `d2i_PKCS12_bio'
ldid.cpp:(.text+0xbc33): undefined reference to `PKCS12_parse'
ldid.cpp:(.text+0xbc70): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0xbc7d): undefined reference to `X509_get_subject_name'
ldid.cpp:(.text+0xbcb2): undefined reference to `X509_free'
ldid.cpp:(.text+0xbcbf): undefined reference to `sk_pop_free'
ldid.cpp:(.text+0xbccc): undefined reference to `X509_free'
ldid.cpp:(.text+0xbcd9): undefined reference to `EVP_PKEY_free'
ldid.cpp:(.text+0xbce6): undefined reference to `PKCS12_free'
ldid.cpp:(.text+0xc2b1): undefined reference to `sk_new_null'
ldid.cpp:(.text+0xc323): undefined reference to `BIO_free_all'
ldid.cpp:(.text+0xc436): undefined reference to `X509_free'
ldid.cpp:(.text+0xc446): undefined reference to `sk_pop_free'
ldid.cpp:(.text+0xc453): undefined reference to `X509_free'
ldid.cpp:(.text+0xc460): undefined reference to `EVP_PKEY_free'
ldid.cpp:(.text+0xc46d): undefined reference to `PKCS12_free'
ldid.cpp.o: In function `ldid::Sign(unsigned char const*, unsigned long, std::basic_streambuf<char, std::char_traits<char> >&, ldid::Hash&, std::basic_streambuf<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<unsigned int, ldid::Hash, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, ldid::Hash> > > const&, unsigned long, unsigned int, bool, ldid::Progress const&) [clone .constprop.388]':
ldid.cpp:(.text+0xcb57): undefined reference to `SHA1_Init'
ldid.cpp:(.text+0xcb64): undefined reference to `SHA256_Init'
ldid.cpp:(.text+0xcbf2): undefined reference to `SHA1_Final'
ldid.cpp:(.text+0xcc0a): undefined reference to `SHA256_Final'
ldid.cpp.o: In function `HashBuffer::xsputn(char const*, long)':
ldid.cpp:(.text._ZN10HashBuffer6xsputnEPKcl[_ZN10HashBuffer6xsputnEPKcl]+0x12): undefined reference to `SHA1_Update'
ldid.cpp:(.text._ZN10HashBuffer6xsputnEPKcl[_ZN10HashBuffer6xsputnEPKcl]+0x24): undefined reference to `SHA256_Update'
ldid.cpp.o: In function `HashProxy::xsputn(char const*, long)':
ldid.cpp:(.text._ZN9HashProxy6xsputnEPKcl[_ZN9HashProxy6xsputnEPKcl]+0x12): undefined reference to `SHA1_Update'
ldid.cpp:(.text._ZN9HashProxy6xsputnEPKcl[_ZN9HashProxy6xsputnEPKcl]+0x25): undefined reference to `SHA256_Update'
ldid.cpp.o: In function `AlgorithmSHA256::operator()(unsigned char*, void const*, unsigned long) const':
ldid.cpp:(.text._ZNK15AlgorithmSHA256clEPhPKvm[_ZNK15AlgorithmSHA256clEPhPKvm]+0xa): undefined reference to `SHA256'
ldid.cpp.o: In function `AlgorithmSHA1::operator()(unsigned char*, void const*, unsigned long) const':
ldid.cpp:(.text._ZNK13AlgorithmSHA1clEPhPKvm[_ZNK13AlgorithmSHA1clEPhPKvm]+0xa): undefined reference to `SHA1'
ldid.cpp.o: In function `HashBuffer::~HashBuffer()':
ldid.cpp:(.text._ZN10HashBufferD2Ev[_ZN10HashBufferD5Ev]+0x1b): undefined reference to `SHA1_Final'
ldid.cpp:(.text._ZN10HashBufferD2Ev[_ZN10HashBufferD5Ev]+0x2f): undefined reference to `SHA256_Final'
ldid.cpp.o: In function `AlgorithmSHA1::operator()(ldid::Hash&, void const*, unsigned long) const':
ldid.cpp:(.text._ZNK13AlgorithmSHA1clERN4ldid4HashEPKvm[_ZNK13AlgorithmSHA1clERN4ldid4HashEPKvm]+0x1d): undefined reference to `SHA1'
ldid.cpp.o: In function `AlgorithmSHA256::operator()(ldid::Hash&, void const*, unsigned long) const':
ldid.cpp:(.text._ZNK15AlgorithmSHA256clERN4ldid4HashEPKvm[_ZNK15AlgorithmSHA256clERN4ldid4HashEPKvm]+0x21): undefined reference to `SHA256'
ldid.cpp.o: In function `HashProxy::~HashProxy()':
ldid.cpp:(.text._ZN9HashProxyD2Ev[_ZN9HashProxyD5Ev]+0x1b): undefined reference to `SHA1_Final'
ldid.cpp:(.text._ZN9HashProxyD2Ev[_ZN9HashProxyD5Ev]+0x2f): undefined reference to `SHA256_Final'
ldid.cpp.o: In function `HashBuffer::~HashBuffer()':
ldid.cpp:(.text._ZN10HashBufferD0Ev[_ZN10HashBufferD5Ev]+0x1b): undefined reference to `SHA1_Final'
ldid.cpp:(.text._ZN10HashBufferD0Ev[_ZN10HashBufferD5Ev]+0x2f): undefined reference to `SHA256_Final'
ldid.cpp.o: In function `HashProxy::~HashProxy()':
ldid.cpp:(.text._ZN9HashProxyD0Ev[_ZN9HashProxyD5Ev]+0x1b): undefined reference to `SHA1_Final'
ldid.cpp:(.text._ZN9HashProxyD0Ev[_ZN9HashProxyD5Ev]+0x2f): undefined reference to `SHA256_Final'
ldid.cpp.o: In function `Signature::Signature(Stuff const&, Buffer const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1b): undefined reference to `PKCS7_new'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x35): undefined reference to `PKCS7_set_type'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x4b): undefined reference to `PKCS7_content_new'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x5f): undefined reference to `sk_num'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x76): undefined reference to `sk_value'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x82): undefined reference to `PKCS7_add_certificate'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x9f): undefined reference to `X509_check_private_key'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xac): undefined reference to `EVP_sha1'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xc0): undefined reference to `PKCS7_add_signature'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xd9): undefined reference to `PKCS7_add_certificate'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xeb): undefined reference to `OBJ_nid2obj'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x100): undefined reference to `PKCS7_add_signed_attribute'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x11d): undefined reference to `PKCS7_ctrl'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x122): undefined reference to `ASN1_OCTET_STRING_new'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x13d): undefined reference to `ASN1_STRING_set'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x171): undefined reference to `PKCS7_add_signed_attribute'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x184): undefined reference to `PKCS7_dataInit'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1a0): undefined reference to `SMIME_crlf_copy'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1b1): undefined reference to `BIO_ctrl'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1bd): undefined reference to `PKCS7_dataFinal'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x202): undefined reference to `OBJ_create'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x31d): undefined reference to `ASN1_OCTET_STRING_free'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x54b): undefined reference to `BIO_free_all'
ldid.cpp:(.text._ZN9SignatureC2ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9SignatureC5ERK5StuffRK6BufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1db): undefined reference to `BIO_free_all'
ldid.cpp.o: In function `AlgorithmSHA256::operator()(std::vector<char, std::allocator<char> >&, void const*, unsigned long) const':
ldid.cpp:(.text._ZNK15AlgorithmSHA256clERSt6vectorIcSaIcEEPKvm[_ZNK15AlgorithmSHA256clERSt6vectorIcSaIcEEPKvm]+0x52): undefined reference to `SHA256'
ldid.cpp.o: In function `AlgorithmSHA1::operator()(std::vector<char, std::allocator<char> >&, void const*, unsigned long) const':
ldid.cpp:(.text._ZNK13AlgorithmSHA1clERSt6vectorIcSaIcEEPKvm[_ZNK13AlgorithmSHA1clERSt6vectorIcSaIcEEPKvm]+0x52): undefined reference to `SHA1'
ldid.cpp.o: In function `main':
ldid.cpp:(.text.startup+0x29): undefined reference to `OPENSSL_add_all_algorithms_noconf'
ldid.cpp:(.text.startup+0x1b55): undefined reference to `SHA1'
ldid.cpp:(.text.startup+0x1c08): undefined reference to `SHA1'
ldid.cpp:(.text.startup+0x1cd5): undefined reference to `SHA256'
ldid.cpp:(.text.startup+0x1e1f): undefined reference to `SHA1'
collect2: error: ld returned 1 exit status
Makefile:44: recipe for target 'ldid' failed
make: *** [ldid] Error 1