NetBSD Problem Report #43371

From www@NetBSD.org  Thu May 27 20:10:01 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 3C53363B8A8
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 27 May 2010 20:10:01 +0000 (UTC)
Message-Id: <20100527201000.AD98163B879@www.NetBSD.org>
Date: Thu, 27 May 2010 20:10:00 +0000 (UTC)
From: pda@sdf.org
Reply-To: pda@sdf.org
To: gnats-bugs@NetBSD.org
Subject: Compiler error bootstrapping pkgsrc on HP-UX 11.11
X-Send-Pr-Version: www-1.0

>Number:         43371
>Category:       pkg
>Synopsis:       Compiler error bootstrapping pkgsrc on HP-UX 11.11
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 27 20:15:00 +0000 2010
>Last-Modified:  Sat May 29 16:43:53 +0000 2010
>Originator:     Paul Ackersviller
>Release:        pkgsrc-2010Q1
>Organization:
>Environment:
HP-UX esi0q80d B.11.11 U 9000/800 3313510918 unlimited-user license

>Description:
The following errora are produced by gcc-4.2.3:

libarchive/archive_read_support_format_xar.c
In file included from libarchive/archive_read_support_format_xar.c:56:
libarchive/archive_hash.h:54: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'archive_md5_ctx

The trouble seems to originate from /usr/include/md5.h, as I can verify by the modifying the file
  archivers/libarchive/files/libarchive/archive_hash.h
such that

#if defined(HAVE_MD5_H) && defined(HAVE_MD5INIT)
...
#elif defined(HAVE_OPENSSL_MD5_H)

was reversed to

#if defined(HAVE_OPENSSL_MD5_H)
...
#elif defined(HAVE_MD5_H) && defined(HAVE_MD5INIT)

and then set CPPFLAGS='-DHAVE_OPENSSL_MD5_H -I/usr/local/include'
and LDFLAGS=-L/usr/local/lib to insert the openssl I have in /usr/local/.

>How-To-Repeat:
./bootstrap --unprivileged --ignore-user-check --varbase /var/home/pkgdb --workdir /var/home/pkgwork --prefix /usr/local/bsd --compiler gcc
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 29 May 2010 16:43:53 +0000
Responsible-Changed-Why:
Over to bootstrapmaster.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.