Got past this just by including ssl.h first. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marek Marcola Sent: Friday, June 23, 2006 8:16 PM To: openssl-users@openssl.org Subject: Re: SSL Compile problem
Hello, > Writing an SSL socket program but when I include ssl.h I get the same > sort of errors on all systems like below. This happens even on a new > blank c program. > > This is always the line in ssl.h that causes the first error > > typedef struct ssl_st SSL; > cc -gc -I../include -I/appl/libwww/openssl-0.9.7d/include > -I/usr/local/i > nclude -I/att/include -I/att/msgipc -I/usr/local/include curl_dip.c > UX:acomp: ERROR: "/appl/libwww/openssl-0.9.7d/include/openssl/ssl.h", > line > 353: > Syntax error before or at: 3 > UX:acomp: WARNING: > "/appl/libwww/openssl-0.9.7d/include/openssl/ssl.h", line > 353 > : syntax error: empty declaration > UX:acomp: ERROR: "/appl/libwww/openssl-0.9.7d/include/openssl/ssl.h", > line > 360: > Syntax error before or at: 3 > UX:acomp: ERROR: "/appl/libwww/openssl-0.9.7d/include/openssl/ssl.h", > line > 361: > Syntax error before or at: 3 > UX:acomp: ERROR: "/appl/libwww/openssl-0.9.7d/include/openssl/ssl.h", > line Sometimes preprocessor defines may overlaps in different header files. My proposition is to preprocess your source c program and then look at reported before error line. With gcc you may do this with command: $ gcc -E some_programm.c For example line: typedef struct ssl_st SSL; after preprocessing may look differently but if you look only on static source (not preprocessed) you can be not conscious of such a change. Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]