[erlang-questions] Odd error messages when compiling R12-B5

Yves S. Garret yoursurrogategod@REDACTED
Fri Jan 23 01:50:24 CET 2009


Hi. I'm trying to get R12-B5 to compile on my machine (Linux foo
2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686 GNU/Linux).

These are the input values that I put into the configure script:
./configure --with-ssl=/usr/lib/ssl

All of the crypto goodies are hidden there.

Here's what happens when a certain line is reached during the compile
process:
make[4]: Entering directory `/R12B5/otp_src_R12B-5/lib/crypto/c_src'
/usr/bin/install -c -d ../priv/obj/i686-pc-linux-gnu
gcc -c -o ../priv/obj/i686-pc-linux-gnu/crypto_drv.o -g -O2 -I/R12B5/
otp_src_R12B-5/erts/i686-pc-linux-gnu  -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE  -DUSE_THREADS -D_THREAD_SAFE -
D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS -fPIC -I/usr/lib/ssl/
include -I/usr/include -I/R12B5/otp_src_R12B-5/erts/emulator/beam -I/
R12B5/otp_src_R12B-5/erts/emulator/sys/unix crypto_drv.c
crypto_drv.c:34:33: error: openssl/opensslconf.h: No such file or
directory
crypto_drv.c:37:6: warning: #warning No thread support by openssl.
Driver will use coarse grain locking.
crypto_drv.c:41:28: error: openssl/crypto.h: No such file or directory
crypto_drv.c:42:25: error: openssl/des.h: No such file or directory
crypto_drv.c:44:25: error: openssl/dsa.h: No such file or directory
crypto_drv.c:45:25: error: openssl/rsa.h: No such file or directory
crypto_drv.c:46:25: error: openssl/aes.h: No such file or directory
crypto_drv.c:47:25: error: openssl/md5.h: No such file or directory
crypto_drv.c:48:25: error: openssl/md4.h: No such file or directory
crypto_drv.c:49:25: error: openssl/sha.h: No such file or directory
crypto_drv.c:50:24: error: openssl/bn.h: No such file or directory
crypto_drv.c:51:29: error: openssl/objects.h: No such file or
directory
crypto_drv.c:52:25: error: openssl/rc4.h: No such file or directory
crypto_drv.c:53:25: error: openssl/rc2.h: No such file or directory
crypto_drv.c: In function ‘control’:
crypto_drv.c:330: error: ‘const_DES_cblock’ undeclared (first use in
this function)
crypto_drv.c:330: error: (Each undeclared identifier is reported only
once
crypto_drv.c:330: error: for each function it appears in.)
crypto_drv.c:330: error: ‘des_key’ undeclared (first use in this
function)
crypto_drv.c:330: error: ‘des_key2’ undeclared (first use in this
function)
crypto_drv.c:330: error: ‘des_key3’ undeclared (first use in this
function)
crypto_drv.c:332: error: ‘BIGNUM’ undeclared (first use in this
function)
crypto_drv.c:332: error: ‘bn_from’ undeclared (first use in this
function)
crypto_drv.c:332: error: ‘bn_to’ undeclared (first use in this
function)
crypto_drv.c:332: error: ‘bn_rand’ undeclared (first use in this
function)
crypto_drv.c:332: error: ‘bn_result’ undeclared (first use in this
function)
crypto_drv.c:333: error: ‘bn_base’ undeclared (first use in this
function)
crypto_drv.c:333: error: ‘bn_exponent’ undeclared (first use in this
function)
crypto_drv.c:333: error: ‘bn_modulo’ undeclared (first use in this
function)
crypto_drv.c:334: error: ‘dsa_p’ undeclared (first use in this
function)
crypto_drv.c:334: error: ‘dsa_q’ undeclared (first use in this
function)
crypto_drv.c:334: error: ‘dsa_r’ undeclared (first use in this
function)
crypto_drv.c:334: error: ‘dsa_g’ undeclared (first use in this
function)
crypto_drv.c:334: error: ‘dsa_y’ undeclared (first use in this
function)
crypto_drv.c:335: error: ‘rsa_n’ undeclared (first use in this
function)
crypto_drv.c:335: error: ‘rsa_e’ undeclared (first use in this
function)
crypto_drv.c:335: error: ‘rsa_d’ undeclared (first use in this
function)
crypto_drv.c:336: error: ‘dh_p’ undeclared (first use in this
function)
crypto_drv.c:336: error: ‘dh_g’ undeclared (first use in this
function)
crypto_drv.c:336: error: ‘privkey’ undeclared (first use in this
function)
crypto_drv.c:336: error: ‘pubkey’ undeclared (first use in this
function)
crypto_drv.c:337: error: ‘DES_cblock’ undeclared (first use in this
function)
crypto_drv.c:337: error: ‘des_ivec’ undeclared (first use in this
function)
crypto_drv.c:339: error: ‘DES_key_schedule’ undeclared (first use in
this function)
crypto_drv.c:339: error: expected ‘;’ before ‘schedule’
crypto_drv.c:340: error: ‘DH’ undeclared (first use in this function)
crypto_drv.c:340: error: ‘dh_params’ undeclared (first use in this
function)
crypto_drv.c:342: error: ‘SHA_DIGEST_LENGTH’ undeclared (first use in
this function)
crypto_drv.c:349: error: ‘MD5_CTX’ undeclared (first use in this
function)
crypto_drv.c:349: error: expected ‘;’ before ‘md5_ctx’
crypto_drv.c:350: error: ‘MD4_CTX’ undeclared (first use in this
function)
crypto_drv.c:350: error: expected ‘;’ before ‘md4_ctx’
crypto_drv.c:351: error: ‘SHA_CTX’ undeclared (first use in this
function)
crypto_drv.c:351: error: expected ‘;’ before ‘sha_ctx’
crypto_drv.c:353: error: ‘BN_CTX’ undeclared (first use in this
function)
crypto_drv.c:353: error: ‘bn_ctx’ undeclared (first use in this
function)
crypto_drv.c:354: error: ‘DSA’ undeclared (first use in this function)
crypto_drv.c:354: error: ‘dsa’ undeclared (first use in this function)
crypto_drv.c:355: error: ‘RSA’ undeclared (first use in this function)
crypto_drv.c:355: error: ‘rsa’ undeclared (first use in this function)
crypto_drv.c:356: error: ‘AES_KEY’ undeclared (first use in this
function)
crypto_drv.c:356: error: expected ‘;’ before ‘aes_key’
crypto_drv.c:357: error: ‘RC4_KEY’ undeclared (first use in this
function)
crypto_drv.c:357: error: expected ‘;’ before ‘rc4_key’
crypto_drv.c:358: error: ‘RC2_KEY’ undeclared (first use in this
function)
crypto_drv.c:358: error: expected ‘;’ before ‘rc2_key’
crypto_drv.c:380: error: expected expression before ‘)’ token
crypto_drv.c:390: error: expected expression before ‘)’ token
crypto_drv.c:398: error: ‘md5_ctx’ undeclared (first use in this
function)
crypto_drv.c:415: error: expected expression before ‘)’ token
crypto_drv.c:425: error: expected expression before ‘)’ token
crypto_drv.c:433: error: ‘sha_ctx’ undeclared (first use in this
function)
crypto_drv.c:478: error: expected expression before ‘)’ token
crypto_drv.c:479: error: expected expression before ‘)’ token
crypto_drv.c:483: error: ‘schedule’ undeclared (first use in this
function)
crypto_drv.c:516: error: ‘rc2_key’ undeclared (first use in this
function)
crypto_drv.c:527: error: expected expression before ‘)’ token
crypto_drv.c:528: error: expected expression before ‘)’ token
crypto_drv.c:529: error: expected expression before ‘)’ token
crypto_drv.c:530: error: expected expression before ‘)’ token
crypto_drv.c:535: error: ‘schedule2’ undeclared (first use in this
function)
crypto_drv.c:536: error: ‘schedule3’ undeclared (first use in this
function)
crypto_drv.c:551: error: ‘aes_key’ undeclared (first use in this
function)
crypto_drv.c:565: error: ‘rc4_key’ undeclared (first use in this
function)
crypto_drv.c:808: error: ‘NID_sha1’ undeclared (first use in this
function)
crypto_drv.c:863: error: ‘NID_md5’ undeclared (first use in this
function)
crypto_drv.c:863: error: ‘MD5_DIGEST_LENGTH’ undeclared (first use in
this function)
crypto_drv.c:988: error: ‘RSA_NO_PADDING’ undeclared (first use in
this function)
crypto_drv.c:991: error: ‘RSA_PKCS1_PADDING’ undeclared (first use in
this function)
crypto_drv.c:994: error: ‘RSA_PKCS1_OAEP_PADDING’ undeclared (first
use in this function)
crypto_drv.c:997: error: ‘RSA_SSLV23_PADDING’ undeclared (first use in
this function)
crypto_drv.c:1139: error: ‘AES_ENCRYPT’ undeclared (first use in this
function)
crypto_drv.c:1142: error: ‘AES_DECRYPT’ undeclared (first use in this
function)
crypto_drv.c:1370: error: expected expression before ‘)’ token
crypto_drv.c:1379: error: expected expression before ‘)’ token
crypto_drv.c:1386: error: ‘md4_ctx’ undeclared (first use in this
function)
crypto_drv.c:1460: error: ‘SSLEAY_VERSION’ undeclared (first use in
this function)
crypto_drv.c:1460: warning: initialization makes pointer from integer
without a cast
crypto_drv.c: In function ‘hmac_md5’:
crypto_drv.c:1540: error: ‘MD5_CTX’ undeclared (first use in this
function)
crypto_drv.c:1540: error: expected ‘;’ before ‘ctx’
crypto_drv.c:1548: error: expected ‘;’ before ‘kctx’
crypto_drv.c:1550: error: ‘kctx’ undeclared (first use in this
function)
crypto_drv.c:1568: error: ‘ctx’ undeclared (first use in this
function)
crypto_drv.c: In function ‘hmac_sha1’:
crypto_drv.c:1582: error: ‘SHA_CTX’ undeclared (first use in this
function)
crypto_drv.c:1582: error: expected ‘;’ before ‘ctx’
crypto_drv.c:1590: error: expected ‘;’ before ‘kctx’
crypto_drv.c:1592: error: ‘kctx’ undeclared (first use in this
function)
crypto_drv.c:1610: error: ‘ctx’ undeclared (first use in this
function)
make[4]: *** [../priv/obj/i686-pc-linux-gnu/crypto_drv.o] Error 1
make[4]: Leaving directory `/R12B5/otp_src_R12B-5/lib/crypto/c_src'
make[3]: *** [opt] Error 2
make[3]: Leaving directory `/R12B5/otp_src_R12B-5/lib/crypto/c_src'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/R12B5/otp_src_R12B-5/lib/crypto'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/R12B5/otp_src_R12B-5/lib'
make: *** [libs] Error 2

I'm not sure what else I could have not installed for openssl. I
checked in synaptic to make sure that I had the package openssl there
and I do. What am I missing?

Also, as the compile process was going on, I was getting these errors:
gcc  -g -O2 -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -
Wmissing-declarations -Wnested-externs -Winline -fno-strict-aliasing -
I. -I../include -Iconnect -Iencode -Idecode -Imisc -Iepmd -Iregistry -
Ii686-pc-linux-gnu   -D_REENTRANT -D_THREAD_SAFE -DPOSIX_THREADS -c
legacy/erl_format.c -o /R12B5/otp_src_R12B-5/lib/erl_interface/obj.mt/
i686-pc-linux-gnu/erl_format.o
legacy/erl_format.c: In function ‘find_lvar’:
legacy/erl_format.c:81: warning: pointer targets in passing argument 1
of ‘strlen’ differ in signedness
legacy/erl_format.c:81: warning: pointer targets in passing argument 1
of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:81: warning: pointer targets in passing argument 1
of ‘strlen’ differ in signedness
legacy/erl_format.c:81: warning: pointer targets in passing argument 1
of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:81: warning: pointer targets in passing argument 1
of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:81: warning: pointer targets in passing argument 1
of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c: In function ‘ematch’:
legacy/erl_format.c:574: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:574: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:574: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:574: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:574: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:574: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:576: warning: pointer targets in passing argument
1 of ‘find_lvar’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:602: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:612: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘strlen’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
1 of ‘__builtin_strcmp’ differ in signedness
legacy/erl_format.c:623: warning: pointer targets in passing argument
2 of ‘__builtin_strcmp’ differ in signedness

Why so many? Seems strange.

Your input is appreciated.



More information about the erlang-questions mailing list