Subject: Re: build failure with wget
To: Jeremy C. Reed <reed@reedmedia.net>
From: Rob Hamrick <rph@chaosnet.org>
List: netbsd-help
Date: 09/23/2005 10:25:04
On Fri, Sep 23, 2005 at 09:12:30AM -0700, Jeremy C. Reed wrote:
> On Fri, 23 Sep 2005, Rob Hamrick wrote:
>
> >I'm still getting a feel for how the build process works. Is there any
> >relatively easy fix for this; or is it likely to be a bug with the
> >package? (I'm running NetBSD 2.0.2, macppc)
>
> >cc -I. -I. -I/usr/include -DHAVE_CONFIG_H
> >-DSYSTEM_WGETRC=\"/usr/pkg/etc/wgetrc\"
> >-DLOCALEDIR=\"/usr/pkg/share/locale\" -O2 -I/usr/include -c http-ntlm.c
> >http-ntlm.c:185: error: parse error before "des_key_schedule"
> >http-ntlm.c: In function `setup_des_key':
> >http-ntlm.c:187: error: `des_cblock' undeclared (first use in this
> >function)
>
> It appears to be using the wrong openssl/des.h include file.
>
> I don't have this problem myself so can't tell yet.
>
> Is your work/.buildlink/include/openssl/des.h a plain file (not a
> symlink)?
>
> Mine looks like:
>
> rainier:/usr/pkgsrc/net/wget$ cat
> work.rainier/.buildlink/include/openssl/des.h
> /* Created by openssl/builtin.mk:buildlink-openssl-des-h */
> #include "/usr/include/openssl/des.h"
> #include "/usr/include/des.h"
>
> rainier:/usr/pkgsrc/net/wget$ ident /usr/include/openssl/des.h
> /usr/include/des.h
> /usr/include/openssl/des.h:
> ident warning: no id keywords in /usr/include/openssl/des.h
>
> /usr/include/des.h:
> $NetBSD: des.h,v 1.4 2003/07/24 14:16:30 itojun Exp
>
> rainier:/usr/pkgsrc/net/wget$ ls -l /usr/include/openssl/des.h
> /usr/include/des.h
> -r--r--r-- 1 root wheel 10854 Jul 24 2003 /usr/include/des.h
> -r--r--r-- 1 root wheel 10305 Jul 24 2003 /usr/include/openssl/des.h
>
Everything checks out.
1) The file work/.buildlink/include/openssl/des.h is not a symlink and it
includes /usr/include/openssl/des.h and /usr/include/des.h.
2) My output of
$ ident /usr/include/openssl/des.h /usr/include/des.h
is identical to yours.
3) My output of
$ ls -l /usr/include/openssl/des.h /usr/include/des.h
is identical to yours.