NetBSD Problem Report #52001

From www@NetBSD.org  Sat Feb 25 01:15:50 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B2C147A140
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Feb 2017 01:15:50 +0000 (UTC)
Message-Id: <20170225011549.51DCA7A2A4@mollari.NetBSD.org>
Date: Sat, 25 Feb 2017 01:15:49 +0000 (UTC)
From: nullnilaki@gmail.com
Reply-To: nullnilaki@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Building archivers/libarchive fails on Tru64 UNIX.
X-Send-Pr-Version: www-1.0

>Number:         52001
>Category:       pkg
>Synopsis:       Building archivers/libarchive fails on Tru64 UNIX.
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    joerg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 25 01:20:00 +0000 2017
>Closed-Date:    Wed Feb 10 15:32:53 +0000 2021
>Last-Modified:  Wed Feb 10 15:32:53 +0000 2021
>Originator:     Naruaki Etomi
>Release:        pkgsrc-2016Q4
>Organization:
Japan
>Environment:
OSF1 ds15 V5.1 2650 alpha
>Description:
Building archivers/libarchive fails on Tru64 UNIX.

# /usr/local/gcc4/bin/gcc -v
Using built-in specs.
Target: alpha-dec-osf5.1b
Configured with: ../gcc-4.2.3/configure --prefix=/usr/local/gcc4 --enable-languages=c,c++ --enable-threads=posix --disable-nls --host=alpha-dec-osf5.1b --without-gnu-ld --with-ld=/usr/ccs/bin/ld --without-gnu-as --with-as=/usr/bin/as --disable-libssp
Thread model: posix
gcc version 4.2.3


See:
-----------------------------------------------------------------------------------
/usr/pkgsrc/bootstrap/work/bin/bmake  all-am
  CC       libarchive/archive_acl.lo
  CC       libarchive/archive_check_magic.lo
  CC       libarchive/archive_cmdline.lo
  CC       libarchive/archive_cryptor.lo
  CC       libarchive/archive_digest.lo
  CC       libarchive/archive_entry.lo
libarchive/archive_entry.c:406: error: conflicting types for 'archive_entry_gid'
libarchive/archive_entry.h:220: error: previous declaration of 'archive_entry_gid' was here
libarchive/archive_entry.c:507: error: conflicting types for 'archive_entry_ino'
libarchive/archive_entry.h:227: error: previous declaration of 'archive_entry_ino' was here
libarchive/archive_entry.c:519: error: conflicting types for 'archive_entry_ino64'
libarchive/archive_entry.h:228: error: previous declaration of 'archive_entry_ino64' was here
libarchive/archive_entry.c:632: error: conflicting types for 'archive_entry_size'
libarchive/archive_entry.h:244: error: previous declaration of 'archive_entry_size' was here
libarchive/archive_entry.c:720: error: conflicting types for 'archive_entry_uid'
libarchive/archive_entry.h:250: error: previous declaration of 'archive_entry_uid' was here
libarchive/archive_entry.c:823: error: conflicting types for 'archive_entry_set_gid'
libarchive/archive_entry.h:288: error: previous declaration of 'archive_entry_set_gid' was here
libarchive/archive_entry.c:872: error: conflicting types for 'archive_entry_set_ino'
libarchive/archive_entry.h:299: error: previous declaration of 'archive_entry_set_ino' was here
libarchive/archive_entry.c:880: error: conflicting types for 'archive_entry_set_ino64'
libarchive/archive_entry.h:300: error: previous declaration of 'archive_entry_set_ino64' was here
libarchive/archive_entry.c:1213: error: conflicting types for 'archive_entry_set_size'
libarchive/archive_entry.h:319: error: previous declaration of 'archive_entry_set_size' was here
libarchive/archive_entry.c:1310: error: conflicting types for 'archive_entry_set_uid'
libarchive/archive_entry.h:328: error: previous declaration of 'archive_entry_set_uid' was here
*** [libarchive/archive_entry.lo] Error code 1

bmake[1]: stopped in /usr/pkgsrc/bootstrap/work/libarchive
1 error

bmake[1]: stopped in /usr/pkgsrc/bootstrap/work/libarchive
*** [all] Error code 2

bmake: stopped in /usr/pkgsrc/bootstrap/work/libarchive
1 error

bmake: stopped in /usr/pkgsrc/bootstrap/work/libarchive
===> exited with status 2
aborted.
-----------------------------------------------------------------------------------

>How-To-Repeat:

>Fix:
I will make two proposals below.

1. Replace "int64_t" with "la_int64_t".

2. Modify archive.h and archive_entry.h.

Probably Old versions of Tru64 UNIX is not supported int64_t.
http://h41361.www4.hpe.com/dtk/misc_docs/prog_gd/index.html

Recent versions of Tru64 UNIX is supported int64_t.
http://h41361.www4.hpe.com/dtk/Compaq_C_Compiler/doc/lrm/DOCU0006.HTM#data_types_ch.

ds15> uname -a
OSF1 ds15 V5.1 2650 alpha
ds15> pwd
/usr/include
ds15> find . -type f -print | xargs grep int64_t
./db.h:typedef	long long		  int64_t;
./db.h:typedef	unsigned long long	u_int64_t;
./inttypes.h:typedef signed long int64_t;
./inttypes.h:typedef unsigned long uint64_t;

-----------------------------------------------------------------------------------

diff -r libarchive.org/files/libarchive/archive.h libarchive/files/libarchive/archive.h
55c55
< #elif !defined(__WATCOMC__) && !defined(_MSC_VER) && !defined(__INTERIX) && !defined(__BORLANDC__) && !defined(_SCO_DS) && !defined(__osf__)
---
> #elif !defined(__WATCOMC__) && !defined(_MSC_VER) && !defined(__INTERIX) && !defined(__BORLANDC__) && !defined(_SCO_DS)
70c70
< #  if defined(_SCO_DS) || defined(__osf__)
---
> #  if defined(_SCO_DS)
diff -r libarchive.org/files/libarchive/archive_entry.h libarchive/files/libarchive/archive_entry.h
60c60
< #  if defined(_SCO_DS) || defined(__osf__)
---
> #  if defined(_SCO_DS)

-----------------------------------------------------------------------------------

  CC       libarchive/archive_write_set_format_xar.lo
  CC       libarchive/archive_write_set_format_zip.lo
  CC       libarchive/archive_write_set_options.lo
  CC       libarchive/archive_write_set_passphrase.lo
  CC       libarchive/filter_fork_posix.lo
  CC       libarchive/xxhash.lo
  CC       libarchive_fe/libarchive_fe_la-err.lo
  CC       libarchive_fe/libarchive_fe_la-line_reader.lo
  CC       libarchive_fe/libarchive_fe_la-passphrase.lo
  CC       cat/bsdcat-bsdcat.o
  CC       cat/bsdcat-cmdline.o
  CCLD     libarchive.la
  CCLD     libarchive_fe.la
  CCLD     bsdcat

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 25 Feb 2017 08:56:21 +0000
Responsible-Changed-Why:
Over to maintainer


State-Changed-From-To: open->closed
State-Changed-By: cjep@NetBSD.org
State-Changed-When: Wed, 10 Feb 2021 15:32:53 +0000
State-Changed-Why:
This looks like a bootstrap on Tru64 bug. Let's use 52003 to track as
it is more general. If you have a development environemt for Tru64 please
let me knoew.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.