pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/52002: Building archivers/libarchive fails on Tru64 UNIX.
>Number: 52002
>Category: pkg
>Synopsis: Building archivers/libarchive fails on Tru64 UNIX.
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 25 01:20:00 +0000 2017
>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
Home |
Main Index |
Thread Index |
Old Index