First time trying to retro-fit an app with SSL so could use some help...
Compiling on Scientific Linux 6.4
openssl-devel 1.0.1e-15.el6_5.x86-64

#include <openssl/ssl.h>

gcc -lssl -lcrypto    -pipe -Wall -Wno-unused-parameter -ggdb3 -fPIC 
-fno-strict-aliasing -rdynamic -I/opt/apps/include  -D__USE_FILE_OFFSET64 -c 
net.c -o net.o
In file included from /usr/include/openssl/x509_vfy.h:70,
                 from /usr/include/openssl/x509.h:600,
                 from /usr/include/openssl/ssl.h:156,
                 from net.c:11:
/usr/include/openssl/lhash.h:143: error: expected ')' before '->' token
/usr/include/openssl/lhash.h:144: error: expected ';' before 'unsigned'
In file included from /usr/include/openssl/dtls1.h:64,
                 from /usr/include/openssl/ssl.h:1320,
                 from net.c:11:
/usr/include/openssl/pqueue.h:82: error: conflicting types for 'pqueue_free'
/apps/IPsoft/IPmon/include/lib/pqueue.h:97: note: previous declaration of 
'pqueue_free' was here
/usr/include/openssl/pqueue.h:84: error: conflicting types for 'pqueue_insert'
/apps/IPsoft/IPmon/include/lib/pqueue.h:113: note: previous declaration of 
'pqueue_insert' was here
/usr/include/openssl/pqueue.h:85: error: conflicting types for 'pqueue_peek'
/apps/IPsoft/IPmon/include/lib/pqueue.h:150: note: previous declaration of 
'pqueue_peek' was here
/usr/include/openssl/pqueue.h:86: error: conflicting types for 'pqueue_pop'
/apps/IPsoft/IPmon/include/lib/pqueue.h:133: note: previous declaration of 
'pqueue_pop' was here
/usr/include/openssl/pqueue.h:91: error: conflicting types for 'pqueue_print'
/apps/IPsoft/IPmon/include/lib/pqueue.h:162: note: previous declaration of 
'pqueue_print' was here
/usr/include/openssl/pqueue.h:92: error: conflicting types for 'pqueue_size'
/apps/IPsoft/IPmon/include/lib/pqueue.h:104: note: previous declaration of 
'pqueue_size' was here
make: *** [net.o] Error 1


Other ssl apps seem to compile ok, so guessing I’ve missed something….any ideas 
why this blows up?

Thanks!
Dan

Reply via email to