Hi,

I had this problem when trying to compile OpenSSL 0.9.7d on a Linux Redhat 9



make[2]: Entering directory `/home/superporco/openssl-0.9.7d/crypto'
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -c -o cryptlib.o cryptlib.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cryptlib.c:70: parse error before "IMPLEMENT_STACK_OF"
cryptlib.c:73: warning: return type defaults to `int'
cryptlib.c: In function `IMPLEMENT_STACK_OF':
cryptlib.c:73: `CRYPTO_NUM_LOCKS' undeclared (first use in this function)
cryptlib.c:73: (Each undeclared identifier is reported only once
cryptlib.c:73: for each function it appears in.)
cryptlib.c:73: storage class specified for parameter `lock_names'
cryptlib.c:73: parameter `lock_names' is initialized
cryptlib.c:76: warning: excess elements in scalar initializer
cryptlib.c:76: warning: (near initialization for `lock_names')
cryptlib.c:77: warning: excess elements in scalar initializer
cryptlib.c:77: warning: (near initialization for `lock_names')
cryptlib.c:78: warning: excess elements in scalar initializer
cryptlib.c:78: warning: (near initialization for `lock_names')
cryptlib.c:79: warning: excess elements in scalar initializer
cryptlib.c:79: warning: (near initialization for `lock_names')
cryptlib.c:80: warning: excess elements in scalar initializer
cryptlib.c:80: warning: (near initialization for `lock_names')
cryptlib.c:81: warning: excess elements in scalar initializer
cryptlib.c:81: warning: (near initialization for `lock_names')
cryptlib.c:82: warning: excess elements in scalar initializer
cryptlib.c:82: warning: (near initialization for `lock_names')
cryptlib.c:83: warning: excess elements in scalar initializer
cryptlib.c:83: warning: (near initialization for `lock_names')
cryptlib.c:84: warning: excess elements in scalar initializer
cryptlib.c:84: warning: (near initialization for `lock_names')
cryptlib.c:85: warning: excess elements in scalar initializer
cryptlib.c:85: warning: (near initialization for `lock_names')
cryptlib.c:86: warning: excess elements in scalar initializer
cryptlib.c:86: warning: (near initialization for `lock_names')
cryptlib.c:87: warning: excess elements in scalar initializer
cryptlib.c:87: warning: (near initialization for `lock_names')
cryptlib.c:88: warning: excess elements in scalar initializer
cryptlib.c:88: warning: (near initialization for `lock_names')
cryptlib.c:89: warning: excess elements in scalar initializer
cryptlib.c:89: warning: (near initialization for `lock_names')
cryptlib.c:90: warning: excess elements in scalar initializer
cryptlib.c:90: warning: (near initialization for `lock_names')
cryptlib.c:91: warning: excess elements in scalar initializer
cryptlib.c:91: warning: (near initialization for `lock_names')
cryptlib.c:92: warning: excess elements in scalar initializer
cryptlib.c:92: warning: (near initialization for `lock_names')
cryptlib.c:93: warning: excess elements in scalar initializer
cryptlib.c:93: warning: (near initialization for `lock_names')
cryptlib.c:94: warning: excess elements in scalar initializer
cryptlib.c:94: warning: (near initialization for `lock_names')
cryptlib.c:95: warning: excess elements in scalar initializer
cryptlib.c:95: warning: (near initialization for `lock_names')
cryptlib.c:96: warning: excess elements in scalar initializer
cryptlib.c:96: warning: (near initialization for `lock_names')
cryptlib.c:97: warning: excess elements in scalar initializer
cryptlib.c:97: warning: (near initialization for `lock_names')
cryptlib.c:98: warning: excess elements in scalar initializer
cryptlib.c:98: warning: (near initialization for `lock_names')
cryptlib.c:99: warning: excess elements in scalar initializer
cryptlib.c:99: warning: (near initialization for `lock_names')
cryptlib.c:100: warning: excess elements in scalar initializer
cryptlib.c:100: warning: (near initialization for `lock_names')
cryptlib.c:101: warning: excess elements in scalar initializer
cryptlib.c:101: warning: (near initialization for `lock_names')
cryptlib.c:102: warning: excess elements in scalar initializer
cryptlib.c:102: warning: (near initialization for `lock_names')
cryptlib.c:103: warning: excess elements in scalar initializer
cryptlib.c:103: warning: (near initialization for `lock_names')
cryptlib.c:104: warning: excess elements in scalar initializer
cryptlib.c:104: warning: (near initialization for `lock_names')
cryptlib.c:105: warning: excess elements in scalar initializer
cryptlib.c:105: warning: (near initialization for `lock_names')
cryptlib.c:106: warning: excess elements in scalar initializer
cryptlib.c:106: warning: (near initialization for `lock_names')
cryptlib.c:107: warning: excess elements in scalar initializer
cryptlib.c:107: warning: (near initialization for `lock_names')
cryptlib.c:109:3: #error "Inconsistency between crypto.h and cryptlib.c"
cryptlib.c:115: warning: type defaults to `int' in declaration of `STACK'
cryptlib.c:115: storage class specified for parameter `STACK'
cryptlib.c:115: parse error before '*' token
cryptlib.c:115: declaration for parameter `STACK' but no such parameter
cryptlib.c:73: declaration for parameter `lock_names' but no such parameter
cryptlib.c:148: `app_locks' undeclared (first use in this function)
cryptlib.c:148: warning: implicit declaration of function `sk_new_null'
cryptlib.c:150: warning: implicit declaration of function `CRYPTOerr'
cryptlib.c:150: `CRYPTO_F_CRYPTO_GET_NEW_LOCKID' undeclared (first use in this function)
cryptlib.c:150: `ERR_R_MALLOC_FAILURE' undeclared (first use in this function)
cryptlib.c:153: warning: implicit declaration of function `BUF_strdup'
cryptlib.c:153: `name' undeclared (first use in this function)
cryptlib.c:153: warning: assignment makes pointer from integer without a cast
cryptlib.c:158: warning: implicit declaration of function `sk_push'
cryptlib.c:160: warning: implicit declaration of function `OPENSSL_free'
cryptlib.c: In function `CRYPTO_num_locks':
cryptlib.c:168: `CRYPTO_NUM_LOCKS' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_new_dynlockid':
cryptlib.c:174: `CRYPTO_dynlock' undeclared (first use in this function)
cryptlib.c:174: `pointer' undeclared (first use in this function)
cryptlib.c:176: `dynlock_create_callback' undeclared (first use in this function)
cryptlib.c:178: `CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID' undeclared (first use in this function)
cryptlib.c:178: `CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK' undeclared (first use in this function)
cryptlib.c:181: warning: implicit declaration of function `CRYPTO_w_lock'
cryptlib.c:181: `CRYPTO_LOCK_DYNLOCK' undeclared (first use in this function)
cryptlib.c:182: `dyn_locks' undeclared (first use in this function)
cryptlib.c:183: warning: implicit declaration of function `sk_CRYPTO_dynlock_new_null'
cryptlib.c:185: warning: implicit declaration of function `CRYPTO_w_unlock'
cryptlib.c:186: `ERR_R_MALLOC_FAILURE' undeclared (first use in this function)
cryptlib.c:191: parse error before ')' token
cryptlib.c:198: `dynlock_create_callback' used prior to declaration
cryptlib.c:198: warning: implicit declaration of function `dynlock_create_callback'
cryptlib.c:208: warning: implicit declaration of function `sk_CRYPTO_dynlock_find'
cryptlib.c:215: warning: implicit declaration of function `sk_CRYPTO_dynlock_push'
cryptlib.c:219: warning: implicit declaration of function `sk_CRYPTO_dynlock_set'
cryptlib.c:224: warning: implicit declaration of function `dynlock_destroy_callback'
cryptlib.c: In function `CRYPTO_destroy_dynlockid':
cryptlib.c:234: `CRYPTO_dynlock' undeclared (first use in this function)
cryptlib.c:234: `pointer' undeclared (first use in this function)
cryptlib.c:237: `dynlock_destroy_callback' undeclared (first use in this function)
cryptlib.c:240: `CRYPTO_LOCK_DYNLOCK' undeclared (first use in this function)
cryptlib.c:242: `dyn_locks' undeclared (first use in this function)
cryptlib.c:242: warning: implicit declaration of function `sk_CRYPTO_dynlock_num'
cryptlib.c:247: warning: implicit declaration of function `sk_CRYPTO_dynlock_value'
cryptlib.c:270: `dynlock_destroy_callback' used prior to declaration
cryptlib.c: In function `CRYPTO_get_dynlock_value':
cryptlib.c:277: `CRYPTO_dynlock' undeclared (first use in this function)
cryptlib.c:277: `pointer' undeclared (first use in this function)
cryptlib.c:281: `CRYPTO_LOCK_DYNLOCK' undeclared (first use in this function)
cryptlib.c:283: `dyn_locks' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_dynlock_create_callback':
cryptlib.c:298: `dynlock_create_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_dynlock_lock_callback':
cryptlib.c:304: `dynlock_lock_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_dynlock_destroy_callback':
cryptlib.c:310: `dynlock_destroy_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_set_dynlock_create_callback':
cryptlib.c:316: `dynlock_create_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_set_dynlock_lock_callback':
cryptlib.c:322: `dynlock_lock_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_set_dynlock_destroy_callback':
cryptlib.c:328: `dynlock_destroy_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_locking_callback':
cryptlib.c:335: `locking_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_add_lock_callback':
cryptlib.c:341: `add_lock_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_set_locking_callback':
cryptlib.c:347: `locking_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_set_add_lock_callback':
cryptlib.c:353: `add_lock_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_id_callback':
cryptlib.c:358: `id_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_set_id_callback':
cryptlib.c:363: `id_callback' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_thread_id':
cryptlib.c:370: `id_callback' undeclared (first use in this function)
cryptlib.c:383: `id_callback' used prior to declaration
cryptlib.c:383: warning: implicit declaration of function `id_callback'
cryptlib.c: In function `CRYPTO_lock':
cryptlib.c:414: `dynlock_lock_callback' undeclared (first use in this function)
cryptlib.c:419: warning: implicit declaration of function `OPENSSL_assert'
cryptlib.c:421: `dynlock_lock_callback' used prior to declaration
cryptlib.c:421: warning: implicit declaration of function `dynlock_lock_callback'
cryptlib.c:427: `locking_callback' undeclared (first use in this function)
cryptlib.c:428: `locking_callback' used prior to declaration
cryptlib.c:428: warning: implicit declaration of function `locking_callback'
cryptlib.c: In function `CRYPTO_add_lock':
cryptlib.c:436: `add_lock_callback' undeclared (first use in this function)
cryptlib.c:442: `add_lock_callback' used prior to declaration
cryptlib.c:442: warning: implicit declaration of function `add_lock_callback'
cryptlib.c:453: `CRYPTO_LOCK' undeclared (first use in this function)
cryptlib.c:453: `CRYPTO_WRITE' undeclared (first use in this function)
cryptlib.c:464: `CRYPTO_UNLOCK' undeclared (first use in this function)
cryptlib.c: In function `CRYPTO_get_lock_name':
cryptlib.c:473: `CRYPTO_NUM_LOCKS' undeclared (first use in this function)
cryptlib.c:474: `lock_names' undeclared (first use in this function)
cryptlib.c:475: warning: implicit declaration of function `sk_num'
cryptlib.c:475: `app_locks' undeclared (first use in this function)
cryptlib.c:478: warning: implicit declaration of function `sk_value'
cryptlib.c:478: warning: return makes pointer from integer without a cast
make[2]: *** [cryptlib.o] Error 1
make[2]: Leaving directory `/home/superporco/openssl-0.9.7d/crypto'
make[1]: *** [sub_all] Error 1
make[1]: Leaving directory `/home/superporco/openssl-0.9.7d'
make: *** [top] Error 2


./config command output seems ok.
Anyone can help?

Thanks



Lorenzo Pierfelice
[EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to