Subject: pkg/23263: othersrc/bootstrap-pkgsrc/pkg_install build fails on RedHat 7.3
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hal@vailsys.com>
List: netbsd-bugs
Date: 10/24/2003 21:11:36
>Number:         23263
>Category:       pkg
>Synopsis:       othersrc/bootstrap-pkgsrc/pkg_install build fails on RedHat 7.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 24 21:12:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hal Snyder
>Release:        RedHat Linux 7.3
>Organization:
Vail Systems, Inc
>Environment:
Linux ddrjct02 2.4.20-18.7 #1 Thu May 29 08:32:50 EDT 2003 i686 unknown
(gcc 2.96)
>Description:
./bootstrap aborts during build of pkg_install:

gcc -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/var/db/pkg\" -DTAR_CMD=\"/usr/pkg/bin/tar\" -DFTP_CMD=\"/usr/pkg/bin/ftp\" -I../libnbcompat -I../../libnbcompat -I. -I. -g -O2 -c plist.c
In file included from plist.c:46:
/usr/include/md5.h:27: parse error before `UINT4'
/usr/include/md5.h:27: warning: no semicolon at end of struct or union
/usr/include/md5.h:28: warning: data definition has no type or storage class
/usr/include/md5.h:30: parse error before `}'
/usr/include/md5.h:30: warning: empty declaration
/usr/include/md5.h:32: parse error before `PROTO_LIST'
/usr/include/md5.h:33: parse error before `PROTO_LIST'
/usr/include/md5.h:35: parse error before `PROTO_LIST'
/usr/include/md5.h:37: parse error before `PROTO_LIST'
*** Error code 1

Stop.
bmake: stopped in /home/hal/othersrc/bootstrap-pkgsrc/pkg_install/lib
*** Error code 1

Stop.
bmake: stopped in /home/hal/othersrc/bootstrap-pkgsrc/pkg_install
===> exited with status 1
aborted.


>How-To-Repeat:
Take latest tarball from
ftp://ftp.NetBSD.org/pub/NetBSD/packages/bootstrap-pkgsrc.tar.gz
or do anoncvs checkout of othersrc/bootstrap-pkgsrc, 
cd to othersrc/bootstrap-pkgsrc, and do ./bootstrap as root

>Fix:
When including <md5.h> on this platform, need first to include
<md5global.h>.
>Release-Note:
>Audit-Trail:
>Unformatted: