Subject: pkg/28562: security/cyrus-saslauthd doesn't build on Darwin
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <michael@nosflow.com>
List: pkgsrc-bugs
Date: 12/06/2004 08:21:00
>Number:         28562
>Category:       pkg
>Synopsis:       security/cyrus-saslauthd doesn't build on Darwin
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 06 08:21:00 +0000 2004
>Originator:     Michael Wolfson
>Release:        Darwin 7.6.0
>Organization:
>Environment:
Darwin GizmMac-ether.nosflow.com 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC  Power Macintosh powerpc

>Description:
When compiling saslauthd, it bugs out when trying to compile md5

if gcc -pipe -DHAVE_CONFIG_H -DSASLAUTHD_CONF_FILE_DEFAULT=\"/usr/pkg/etc/saslau
thd.conf\" -I. -I. -I.. -I. -I. -I. -I./include -I./include -I./../include   -no
-cpp-precomp -I/usr/include -I/usr/include  -O2 -I/usr/include -MT saslauthd-mai
n.o -MD -MP -MF ".deps/saslauthd-main.Tpo"  -c -o saslauthd-main.o `test -f 'sas
lauthd-main.c' || echo './'`saslauthd-main.c;  then mv ".deps/saslauthd-main.Tpo
" ".deps/saslauthd-main.Po";  else rm -f ".deps/saslauthd-main.Tpo"; exit 1;  fi
if gcc -pipe -DHAVE_CONFIG_H -DSASLAUTHD_CONF_FILE_DEFAULT=\"/usr/pkg/etc/saslau
thd.conf\" -I. -I. -I.. -I. -I. -I. -I./include -I./include -I./../include   -no
-cpp-precomp -I/usr/include -I/usr/include  -O2 -I/usr/include -MT md5.o -MD -MP
 -MF ".deps/md5.Tpo"  -c -o md5.o `test -f 'md5.c' || echo './'`md5.c;  then mv 
".deps/md5.Tpo" ".deps/md5.Po";  else rm -f ".deps/md5.Tpo"; exit 1;  fi
md5.c:30:17: md5.h: No such file or directory
In file included from md5.c:31:
../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: 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"
md5.c:102: error: parse error before "MD5_CTX"
md5.c:102: warning: data definition has no type or storage class
md5.c:103: error: parse error before '{' token
md5.c:118: error: parse error before "MD5_CTX"
md5.c:118: warning: data definition has no type or storage class
md5.c:121: error: parse error before '{' token
md5.c:125: warning: built-in function `index' declared as non-function
md5.c:125: error: request for member `count' in something not a structure or uni
on
md5.c:125: warning: data definition has no type or storage class
md5.c:128: error: parse error before "if"
md5.c:133: error: initializer element is not constant
md5.c:133: warning: data definition has no type or storage class
md5.c:138: error: parse error before "if"
md5.c:141: error: parse error before '->' token
md5.c:141: error: conflicting types for `MD5Transform'
md5.c:57: error: previous declaration of `MD5Transform'
md5.c:141: warning: data definition has no type or storage class
md5.c:146: error: redefinition of `index'
md5.c:125: error: `index' previously defined here
md5.c:146: warning: data definition has no type or storage class
md5.c:147: error: parse error before '}' token
md5.c:153: error: parse error before '(' token
md5.c: In function `_saslauthd_MD5Final':
md5.c:164: error: parse error before "MD5_CTX"
md5.c:170: error: invalid type argument of `->'
md5.c:173: error: invalid type argument of `->'
md5.c:181: error: invalid type argument of `->'
md5.c:184: error: invalid type argument of `unary *'
md5.c: At top level:
md5.c:190: error: conflicting types for `MD5Transform'
md5.c:141: error: previous declaration of `MD5Transform'
md5.c:345: error: parse error before '*' token
md5.c: In function `_saslauthd_hmac_md5_init':
md5.c:358: error: `key_len' undeclared (first use in this function)
md5.c:358: error: (Each undeclared identifier is reported only once
md5.c:358: error: for each function it appears in.)
md5.c:360: error: `MD5_CTX' undeclared (first use in this function)
md5.c:360: error: parse error before "tctx"
md5.c:362: error: `tctx' undeclared (first use in this function)
md5.c:363: error: `key' undeclared (first use in this function)
md5.c:393: error: `hmac' undeclared (first use in this function)
md5.c: In function `_saslauthd_hmac_md5_precalc':
md5.c:419: error: parse error before "hmac"
md5.c:422: error: `hmac' undeclared (first use in this function)
md5.c: At top level:
md5.c:431: error: parse error before '*' token
md5.c: In function `_saslauthd_hmac_md5_import':
md5.c:435: error: `hmac' undeclared (first use in this function)
md5.c:437: error: `state' undeclared (first use in this function)
md5.c: At top level:
md5.c:447: error: parse error before "HMAC_MD5_CTX"
md5.c: In function `_saslauthd_hmac_md5_final':
md5.c:449: error: `digest' undeclared (first use in this function)
md5.c:449: error: `hmac' undeclared (first use in this function)
md5.c: In function `_saslauthd_hmac_md5':
md5.c:462: error: `MD5_CTX' undeclared (first use in this function)
md5.c:462: error: parse error before "context"
md5.c:475: error: parse error before "tctx"
md5.c:477: error: `tctx' undeclared (first use in this function)
{standard input}:80:FATAL:Symbol _index already defined.
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/usr/src/pkgsrc/security/cyrus-saslauthd/work/c
yrus-sasl-2.1.19/saslauthd
*** Error code 1

>How-To-Repeat:
cd security/cyrus-saslauthd;make
>Fix: