compile error 2.1.21 with openssl-0.9.8

Ran Li Ran.Li at sprint-canada.com
Mon Aug 29 14:54:54 EDT 2005


Hello all,

When I compile cyrus-sasl-2.1.21 with openssl-0.9.8 on
CentOS4.1(2.6.9-11.EL), I ran into the similar problem as below Alex
metioned, I m not sure if anybody replied the message, if so please let
me know. Thanks.

The error on screen shows

...

In file included from ../include/saslplug.h:14,
                 from ntlm.c:96:
../include/hmac-md5.h:11: error: syntax error before "MD5_CTX"
../include/hmac-md5.h:11: warning: no semicolon at end of struct or
union
../include/hmac-md5.h:12: warning: type defaults to `int' in declaration
of `HMA
C_MD5_CTX'
../include/hmac-md5.h:12: warning: data definition has no type or
storage class
../include/hmac-md5.h:36: error: syntax error before '*' token
../include/hmac-md5.h:46: error: syntax error before '*' token
../include/hmac-md5.h:53: error: syntax error before "HMAC_MD5_CTX"
In file included from ntlm.c:96:
../include/saslplug.h:73: error: syntax error before '*' token
../include/saslplug.h:74: error: syntax error before '*' token
../include/saslplug.h:75: error: syntax error before "MD5_CTX"
../include/saslplug.h:79: error: syntax error before '*' token
../include/saslplug.h:81: error: syntax error before "HMAC_MD5_CTX"
../include/saslplug.h:84: error: syntax error before '*' token
ntlm.c: In function `ntlm_server_mech_step2':
ntlm.c:1491: warning: dereferencing type-punned pointer will break
strict-aliasi
ng rules
ntlm.c:1497: warning: dereferencing type-punned pointer will break
strict-aliasi
ng rules
ntlm.c:1574: error: `MD5_DIGEST_LENGTH' undeclared (first use in this
function)
ntlm.c:1574: error: (Each undeclared identifier is reported only once
ntlm.c:1574: error: for each function it appears in.)
ntlm.c: In function `ntlm_client_mech_step2':
ntlm.c:1987: warning: dereferencing type-punned pointer will break
strict-aliasi
ng rules
ntlm.c:2002: error: `MD5_DIGEST_LENGTH' undeclared (first use in this
function)
make[2]: *** [ntlm.lo] Error 1
make[2]: Leaving directory `/opt/src/cyrus-sasl-2.1.21/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/src/cyrus-sasl-2.1.21'
make: *** [all] Error 2

I attached the config.log file, 
CPPFLAGS="-Wl,-rpath,/usr/local/BerkeleyDB.4.3/lib" 

Thanks and Regards,

-ran


-----Original Message-----
From: cyrus-sasl-bounces at lists.andrew.cmu.edu
[mailto:cyrus-sasl-bounces at lists.andrew.cmu.edu] On Behalf Of
tiamat at komi.mts.ru
Sent: Tuesday, August 16, 2005 8:49 AM
To: cyrus-sasl at lists.andrew.cmu.edu
Subject: compile error 2.1.21 with openssl-0.9.8 on Solaris


Is it possible to compile it on Solaris 9 (Sparc)?

$ ./configure --enable-ntlm --with-openssl=/usr/local
...

$ make
...
if /bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I../include -I../lib -I../sasldb -I../include  -I/usr/local/include
-Wall -W -I/usr/local/include -MT ntlm.lo -MD -MP -MF ".deps/ntlm.Tpo" \
  -c -o ntlm.lo `test -f 'ntlm.c' || echo './'`ntlm.c; \
then mv ".deps/ntlm.Tpo" ".deps/ntlm.Plo"; \
else rm -f ".deps/ntlm.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb
-I../include -I/usr/local/include -Wall -W -I/usr/local/include -MT
ntlm.lo -MD -MP -MF .deps/ntlm.Tpo -c ntlm.c  -fPIC -DPIC -o ntlm.lo In
file included from ../include/saslplug.h:14,
                 from ntlm.c:96:
../include/hmac-md5.h:11: error: parse error before "MD5_CTX"
../include/hmac-md5.h:11: warning: no semicolon at end of struct or
union
../include/hmac-md5.h:12: warning: type defaults to `int' in declaration
of `HMAC_MD5_CTX'
../include/hmac-md5.h:12: warning: data definition has no type or
storage class
../include/hmac-md5.h:36: error: parse error before '*' token
../include/hmac-md5.h:46: error: parse error before '*' token
../include/hmac-md5.h:53: error: parse error before "HMAC_MD5_CTX" In
file included from ntlm.c:96:
../include/saslplug.h:73: error: parse error before '*' token
../include/saslplug.h:74: error: parse error before '*' token
../include/saslplug.h:75: error: parse error before "MD5_CTX"
../include/saslplug.h:79: error: parse error before '*' token
../include/saslplug.h:81: error: parse error before "HMAC_MD5_CTX"
../include/saslplug.h:84: error: parse error before '*' token
ntlm.c: In function `ntlm_server_mech_step2':
ntlm.c:1574: error: `MD5_DIGEST_LENGTH' undeclared (first use in this
function)
ntlm.c:1574: error: (Each undeclared identifier is reported only once
ntlm.c:1574: error: for each function it appears in.)
ntlm.c: In function `ntlm_client_mech_step2':
ntlm.c:2002: error: `MD5_DIGEST_LENGTH' undeclared (first use in this
function)
make[2]: *** [ntlm.lo] Error 1
make[2]: Leaving directory
`/export/home/devel/tmp/cyrus-sasl-2.1.21/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/devel/tmp/cyrus-sasl-2.1.21'
make: *** [all] Error 2

Thanks!

-- 
Alex Deiter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.with.openssl-0.9.8-1
Type: application/octet-stream
Size: 93966 bytes
Desc: config.log.with.openssl-0.9.8-1
Url : https://lists.andrew.cmu.edu/mailman/private/cyrus-sasl/attachments/20050829/02919628/config.log.with.openssl-0.9-0001.obj


More information about the Cyrus-sasl mailing list