Subject: pkg/26094: pkgsrc/mail/libesmtp not finding installed pkgsrc/security/openssl-0.9.6m header on MacOS X 10.3.4
To: gnats bugs <gnats-bugs@gnats.netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: pkgsrc-bugs
Date: 06/27/2004 21:03:48
>Number:         26094
>Category:       pkg
>Synopsis:       pkgsrc/mail/libesmtp not finding installed pkgsrc/security/openssl-0.9.6m header on MacOS X 10.3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 28 01:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Mark E. Perkins
>Release:        Darwin 7.4.0 Power Macintosh
>Organization:
>Environment:


System: Darwin crow.fringe.mep 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC  Power Macintosh


>Description:


building pkgsrc/mail/libesmtp fails when compiling ntlmdes.c (in work/libesmtp-1.0.3r1/ntlm):

gcc -DHAVE_CONFIG_H -I. -I.. -no-cpp-precomp -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wbad-function-cast -Wcast-align -c ntlmdes.c -MT ntlmdes.lo -MD -MP -MF .deps/ntlmdes.TPlo  -fno-common -DPIC -o .libs/ntlmdes.o
ntlmdes.c:33: error: parse error before "const_des_cblock"
ntlmdes.c:34: warning: function declaration isn't a prototype
ntlmdes.c: In function `lm_deshash':
ntlmdes.c:41: error: `secret' undeclared (first use in this function)
ntlmdes.c:41: error: (Each undeclared identifier is reported only once
ntlmdes.c:41: error: for each function it appears in.)
ntlmdes.c:58: warning: implicit declaration of function `des_set_odd_parity'
ntlmdes.c:59: warning: implicit declaration of function `des_set_key'
ntlmdes.c:60: error: `iv' undeclared (first use in this function)
ntlmdes.c:60: error: `result' undeclared (first use in this function)
ntlmdes.c: In function `lm_hash_password':
ntlmdes.c:88: error: syntax error before "iv"
ntlmdes.c: At top level:
ntlmdes.c:92: error: parse error before "sizeof"
ntlmdes.c:92: warning: type defaults to `int' in declaration of `lm_uccpy'
ntlmdes.c:92: warning: function declaration isn't a prototype
ntlmdes.c:92: error: conflicting types for `lm_uccpy'
ntlmdes.c:71: error: previous declaration of `lm_uccpy'
ntlmdes.c:92: warning: data definition has no type or storage class
ntlmdes.c:93: error: parse error before '&' token
ntlmdes.c:93: warning: type defaults to `int' in declaration of `lm_deshash'
ntlmdes.c:93: warning: function declaration isn't a prototype
ntlmdes.c:93: error: conflicting types for `lm_deshash'
ntlmdes.c:34: error: previous declaration of `lm_deshash'
ntlmdes.c:93: warning: data definition has no type or storage class
ntlmdes.c:94: error: parse error before '+' token
ntlmdes.c:94: warning: type defaults to `int' in declaration of `lm_deshash'
ntlmdes.c:94: warning: function declaration isn't a prototype
ntlmdes.c:94: warning: data definition has no type or storage class
ntlmdes.c:95: error: parse error before numeric constant
ntlmdes.c:95: warning: type defaults to `int' in declaration of `memset'
ntlmdes.c:95: warning: function declaration isn't a prototype
ntlmdes.c:95: warning: data definition has no type or storage class
gnumake[2]: *** [ntlmdes.lo] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/mail/libesmtp
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/mail/libesmtp



>How-To-Repeat:


run make in /usr/pkgsrc/mail/libesmtp



>Fix:


add a link to /usr/pkg/include/openssl/des.h to .buildlink... not sure how to implement
this properly in the pkgsrc way.

I have pkgsrc/security/openssl (0.9.6m) installed, but apparently either the build logic does not
find it or is finding a bad des.h from Apple's openssl, which is 0.9.7b (and according to
the Makefile the des.h interface changed).



>Release-Note:
>Audit-Trail:
>Unformatted: