The first error refers to the rand function being unavailble. This can be fixed by adding
Code: Select all
#include <cstdlib>
This fix was found in the following thread, thanks.
http://www.makemkv.com/forum2/viewtopic.php?f=3&t=542
However I still have issues relating to OpenSSL which I cant fix. I have all of the required packages installed. Here is the build output, hopefully someone will have some suggestions.
Code: Select all
make -f makefile.linux
mkdir -p out
gcc -O3 -D_linux_ -D_REENTRANT -shared -Wl,-z,defs -oout/libmakemkv.so.1.full -Ilibebml/inc -Ilibmatroska/inc -Ilibmakemkv/inc -Isstring/inc \
-Imakemkvgui/inc -Ilibabi/inc libebml/src/EbmlBinary.cpp libebml/src/EbmlContexts.cpp libebml/src/EbmlCrc32.cpp libebml/src/EbmlDate.cpp libebml/src/EbmlDummy.cpp libebml/src/EbmlElement.cpp libebml/src/EbmlFloat.cpp libebml/src/EbmlHead.cpp libebml/src/EbmlMaster.cpp libebml/src/EbmlSInteger.cpp libebml/src/EbmlStream.cpp libebml/src/EbmlString.cpp libebml/src/EbmlSubHead.cpp libebml/src/EbmlUInteger.cpp libebml/src/EbmlUnicodeString.cpp libebml/src/EbmlVersion.cpp libebml/src/EbmlVoid.cpp libebml/src/IOCallback.cpp libebml/src/MemIOCallback.cpp libmatroska/src/FileKax.cpp libmatroska/src/KaxAttached.cpp libmatroska/src/KaxAttachments.cpp libmatroska/src/KaxBlock.cpp libmatroska/src/KaxBlockData.cpp libmatroska/src/KaxChapters.cpp libmatroska/src/KaxCluster.cpp libmatroska/src/KaxClusterData.cpp libmatroska/src/KaxContentEncoding.cpp libmatroska/src/KaxContexts.cpp libmatroska/src/KaxCues.cpp libmatroska/src/KaxCuesData.cpp libmatroska/src/KaxInfo.cpp libmatroska/src/KaxInfoData.cpp libmatroska/src/KaxSeekHead.cpp libmatroska/src/KaxSegment.cpp libmatroska/src/KaxTag.cpp libmatroska/src/KaxTagMulti.cpp libmatroska/src/KaxTags.cpp libmatroska/src/KaxTrackAudio.cpp libmatroska/src/KaxTrackEntryData.cpp libmatroska/src/KaxTracks.cpp libmatroska/src/KaxTrackVideo.cpp libmatroska/src/KaxVersion.cpp libmakemkv/src/ebmlwrite.cpp libmakemkv/src/libmkv.cpp libmakemkv/src/version.cpp libmakemkv/src/world.cpp sstring/src/sstring.cpp libabi/src/ossl.c libabi/src/zlib.c \
-DHAVE_BUILDINFO_H -Itmp \
-fPIC -Xlinker -dy -Xlinker --version-script=libmakemkv/src/libmakemkv.vers \
-Xlinker -soname=libmakemkv.so.1 -lc -lstdc++ -lcrypto -lz
libabi/src/ossl.c:23:24: error: openssl/ec.h: No such file or directory
libabi/src/ossl.c:24:27: error: openssl/ecdsa.h: No such file or directory
libabi/src/ossl.c: In function ‘OSSL_BN_free’:
libabi/src/ossl.c:96: error: ‘BIGNUM’ undeclared (first use in this function)
libabi/src/ossl.c:96: error: (Each undeclared identifier is reported only once
libabi/src/ossl.c:96: error: for each function it appears in.)
libabi/src/ossl.c:96: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_BN_bin2bn’:
libabi/src/ossl.c:101: error: ‘BIGNUM’ undeclared (first use in this function)
libabi/src/ossl.c:101: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_BN_bn2bin’:
libabi/src/ossl.c:106: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c: In function ‘OSSL_BN_dec2bn’:
libabi/src/ossl.c:111: error: ‘BIGNUM’ undeclared (first use in this function)
libabi/src/ossl.c:111: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_BN_ucmp’:
libabi/src/ossl.c:116: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c:116: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c: In function ‘OSSL_BN_is_zero’:
libabi/src/ossl.c:121: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c: In function ‘OSSL_BN_set_word’:
libabi/src/ossl.c:126: error: ‘BIGNUM’ undeclared (first use in this function)
libabi/src/ossl.c:126: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_BN_CTX_free’:
libabi/src/ossl.c:136: error: ‘BN_CTX’ undeclared (first use in this function)
libabi/src/ossl.c:136: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_GROUP_get0_generator’:
libabi/src/ossl.c:143: error: expected ‘)’ before ‘EC_GROUP’
libabi/src/ossl.c: In function ‘OSSL_EC_GROUP_set_generator’:
libabi/src/ossl.c:148: error: ‘EC_GROUP’ undeclared (first use in this function)
libabi/src/ossl.c:148: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_GROUP_get_order’:
libabi/src/ossl.c:153: error: expected ‘)’ before ‘EC_GROUP’
libabi/src/ossl.c:153: error: ‘BIGNUM’ undeclared (first use in this function)
libabi/src/ossl.c:153: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_GROUP_new_curve_GFp’:
libabi/src/ossl.c:158: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c:158: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c:158: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c:158: error: ‘BN_CTX’ undeclared (first use in this function)
libabi/src/ossl.c:158: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_POINT_new’:
libabi/src/ossl.c:163: error: expected ‘)’ before ‘EC_GROUP’
libabi/src/ossl.c: In function ‘OSSL_EC_POINT_free’:
libabi/src/ossl.c:168: error: ‘EC_POINT’ undeclared (first use in this function)
libabi/src/ossl.c:168: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_POINT_mul’:
libabi/src/ossl.c:173: error: expected ‘)’ before ‘EC_GROUP’
libabi/src/ossl.c:173: error: ‘EC_POINT’ undeclared (first use in this function)
libabi/src/ossl.c:173: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_POINT_set_affine_coordinates_GFp’:
libabi/src/ossl.c:179: error: expected ‘)’ before ‘EC_GROUP’
libabi/src/ossl.c:179: error: ‘EC_POINT’ undeclared (first use in this function)
libabi/src/ossl.c:179: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_POINT_get_affine_coordinates_GFp’:
libabi/src/ossl.c:186: error: expected ‘)’ before ‘EC_GROUP’
libabi/src/ossl.c:186: error: expected ‘)’ before ‘EC_POINT’
libabi/src/ossl.c:187: error: ‘BIGNUM’ undeclared (first use in this function)
libabi/src/ossl.c:187: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_KEY_free’:
libabi/src/ossl.c:197: error: ‘EC_KEY’ undeclared (first use in this function)
libabi/src/ossl.c:197: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_KEY_get0_group’:
libabi/src/ossl.c:202: error: expected ‘)’ before ‘EC_KEY’
libabi/src/ossl.c: In function ‘OSSL_EC_KEY_set_group’:
libabi/src/ossl.c:207: error: ‘EC_KEY’ undeclared (first use in this function)
libabi/src/ossl.c:207: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_KEY_set_public_key’:
libabi/src/ossl.c:212: error: ‘EC_KEY’ undeclared (first use in this function)
libabi/src/ossl.c:212: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_EC_KEY_set_private_key’:
libabi/src/ossl.c:217: error: ‘EC_KEY’ undeclared (first use in this function)
libabi/src/ossl.c:217: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_ECDSA_do_verify_rs’:
libabi/src/ossl.c:229: error: ‘ECDSA_SIG’ undeclared (first use in this function)
libabi/src/ossl.c:229: error: expected ‘;’ before ‘sig’
libabi/src/ossl.c:230: error: ‘sig’ undeclared (first use in this function)
libabi/src/ossl.c:230: error: ‘BIGNUM’ undeclared (first use in this function)
libabi/src/ossl.c:230: error: expected expression before ‘)’ token
libabi/src/ossl.c:231: error: expected expression before ‘)’ token
libabi/src/ossl.c:232: error: ‘EC_KEY’ undeclared (first use in this function)
libabi/src/ossl.c:232: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_ECDSA_do_sign_ex’:
libabi/src/ossl.c:237: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c:237: error: expected ‘)’ before ‘BIGNUM’
libabi/src/ossl.c:237: error: ‘EC_KEY’ undeclared (first use in this function)
libabi/src/ossl.c:237: error: expected expression before ‘)’ token
libabi/src/ossl.c: In function ‘OSSL_ecdsa_sig_get_r’:
libabi/src/ossl.c:242: error: expected ‘)’ before ‘ECDSA_SIG’
libabi/src/ossl.c:242: error: invalid type argument of ‘->’ (have ‘int’)
libabi/src/ossl.c: In function ‘OSSL_ecdsa_sig_get_s’:
libabi/src/ossl.c:247: error: expected ‘)’ before ‘ECDSA_SIG’
libabi/src/ossl.c:247: error: invalid type argument of ‘->’ (have ‘int’)
libabi/src/ossl.c: In function ‘OSSL_ECDSA_SIG_free’:
libabi/src/ossl.c:252: error: ‘ECDSA_SIG’ undeclared (first use in this function)
libabi/src/ossl.c:252: error: expected expression before ‘)’ token
Code: Select all
find / -iname "*openssl*"
/usr/bin/openssl
/usr/include/openssl
/usr/include/openssl/opensslconf.h
/usr/include/openssl/opensslconf-i386.h
/usr/include/openssl/opensslv.h
/usr/include/kde/kopenssl.h
/usr/include/gnutls/openssl.h
/usr/include/boost/asio/ssl/detail/openssl_init.hpp
/usr/include/boost/asio/ssl/detail/openssl_operation.hpp
/usr/include/boost/asio/ssl/detail/openssl_types.hpp
/usr/include/boost/asio/ssl/detail/openssl_stream_service.hpp
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp
/usr/lib/libgnutls-openssl.a
/usr/lib/openssl
/usr/lib/python2.6/site-packages/OpenSSL
/usr/lib/python2.6/site-packages/pyOpenSSL-0.7-py2.6.egg-info
/usr/lib/libgnutls-openssl.so
/usr/lib/pkgconfig/openssl.pc
/usr/lib/libgnutls-openssl.so.26
/usr/lib/libgnutls-openssl.so.26.11.7
/usr/share/kde4/apps/cmake/modules/FindOpenSSL.cmake
/usr/share/man/man1/openssl.1ssl.gz
/usr/share/man/man3/OPENSSL_Applink.3ssl.gz
/usr/share/man/man3/OpenSSL_add_all_digests.3ssl.gz
/usr/share/man/man3/OPENSSL_load_builtin_modules.3ssl.gz
/usr/share/man/man3/UI_OpenSSL.3ssl.gz
/usr/share/man/man3/OPENSSL_VERSION_NUMBER.3ssl.gz
/usr/share/man/man3/OpenSSL_add_ssl_algorithms.3ssl.gz
/usr/share/man/man3/OPENSSL_no_config.3ssl.gz
/usr/share/man/man3/OpenSSL_add_all_ciphers.3ssl.gz
/usr/share/man/man3/OPENSSL_config.3ssl.gz
/usr/share/man/man3/DH_OpenSSL.3ssl.gz
/usr/share/man/man3/DSA_OpenSSL.3ssl.gz
/usr/share/man/man3/OpenSSL_add_all_algorithms.3ssl.gz
/usr/share/man/man3/OPENSSL_ia32cap.3ssl.gz
/usr/share/cmake/Modules/FindOpenSSL.cmake
/usr/share/doc/openssl-0.9.8k
/usr/share/doc/openssl-0.9.8k/openssl_button.gif
/usr/share/doc/openssl-0.9.8k/openssl.txt
/usr/share/doc/openssl-0.9.8k/openssl_button.html
/usr/share/doc/pyOpenSSL-0.7
/usr/share/doc/pyOpenSSL-0.7/pyOpenSSL.txt
/usr/share/doc/pyOpenSSL-0.7/html/openssl-netscape-spki.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-pkey.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-connection.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-rand.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-x509store.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-x509.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-crypto.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-pkcs7.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-context.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-x509req.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-x509name.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-509ext.html
/usr/share/doc/pyOpenSSL-0.7/html/pyOpenSSL.how
/usr/share/doc/pyOpenSSL-0.7/html/openssl.html
/usr/share/doc/pyOpenSSL-0.7/html/pyOpenSSL.html
/usr/share/doc/pyOpenSSL-0.7/html/openssl-ssl.html
/usr/share/doc/pyOpenSSL-0.7/html/pyOpenSSL.css
/usr/share/doc/pyOpenSSL-0.7/html/openssl-pkcs12.html
/usr/share/doc/pyOpenSSL-0.7/pyOpenSSL.ps
/usr/share/doc/libcurl-devel-7.19.4/opensslthreadlock.c
/etc/pki/tls/openssl.cnf