Mantis - Resin
Viewing Issue Advanced Details
4401 minor always 02-22-11 02:57 02-22-11 14:22
Bertram  
ferg  
normal  
closed 3.1.11  
fixed  
none    
none 3.1.11  
0004401: error: redefinition of 'ssl_init_locks'
Hello all,

SSL resin lib cannot be created, there is log below:

gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -m64 -fPIC -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/opt/resin\" -I/usr/include -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -I../common -I../resin -DCPU=\"x86_64\" -DOS= -m64 -fPIC -D_FILE_OFFSET_BITS=64 -fpic -DSSL_ENGINE -c -o ssl.o ssl.c
ssl.c: In function 'ssl_thread_lock':
ssl.c:309: error: 'g_crypto_num_locks' undeclared (first use in this function)
ssl.c:309: error: (Each undeclared identifier is reported only once
ssl.c:309: error: for each function it appears in.)
ssl.c:313: error: 'g_crypto_locks' undeclared (first use in this function)
ssl.c: In function 'ssl_create_dynlock':
ssl.c:330: error: 'CRYPTO_dynlock_value' undeclared (first use in this function)
ssl.c:330: error: expected expression before ')' token
ssl.c: In function 'ssl_init_locks':
ssl.c:371: error: 'g_crypto_locks' undeclared (first use in this function)
ssl.c:374: error: 'g_crypto_num_locks' undeclared (first use in this function)
ssl.c:392: error: 'ssl_thread_id' undeclared (first use in this function)
ssl.c:400:2: error: #else without #if
ssl.c: At top level:
ssl.c:403: error: redefinition of 'ssl_init_locks'
ssl.c:364: note: previous definition of 'ssl_init_locks' was here
ssl.c:407:2: error: #endif without #if
make[2]: *** [ssl.o] Error 1

I have put ssl lib from resin 3.1.10 and the server starts

There are no notes attached to this issue.