tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libarchive bootstrap fails on hp-ux 11.23 with Q1-2011 Pkgsrc



All:

System:

vintage% uname -a
HP-UX ISHD1 B.11.23 U ia64 3532207342 unlimited-user license

vintage% model
ia64 hp server rx4640

Boostrap Command:

vintage% CC=/usr/local/bin/gcc ./bootstrap --prefix=/home/bs827200/pkg
--unprivileged --compiler gcc

This is GCC version:

vintage% /usr/local/bin/gcc -v
Reading specs from /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/specs
gcc version 3.4.3


From the HP toolkit, not the GCC for HP from AIX.


libtool: compile:  gcc -DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE
-D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=0022
-I/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/bzip2
-I/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/zlib
-I/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive
-I/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch
-DHAVE_NBCOMPAT_H=1
-I/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat
-O2 -c libarchive/archive_string.c -o libarchive/archive_string.o
libarchive/archive_string.c: In function `__archive_strappend_w_mbs':
libarchive/archive_string.c:417: error: `mbstate_t' undeclared (first use
in this function)
libarchive/archive_string.c:417: error: (Each undeclared identifier is
reported only once
libarchive/archive_string.c:417: error: for each function it appears in.)
libarchive/archive_string.c:417: error: parse error before "shift_state"
libarchive/archive_string.c:419: error: `shift_state' undeclared (first
use in this function)
*** Error code 1

Stop.
bmake: stopped in
/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive
*** Error code 1

Stop.
bmake: stopped in
/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive


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

Here's what I know:

1) mbstate_t is declared in /usr/include/sys/_mbstate_t.h

    Via Include:

    /usr/include/wchar.h:#             include <sys/_mbstate_t.h>

   -------

  #ifndef _MBSTATE_T_INCLUDED
  #define _MBSTATE_T_INCLUDED

  #  ifndef _MBSTATE_T
  #     define _MBSTATE_T
      typedef struct {
         unsigned char __parse_size:3;
         unsigned char __dummy:4;
         unsigned char __shift_state:1;
         char __parse_buf[7];
      } mbstate_t;
  #  endif
  #endif /* _MBSTATE_T_INCLUDED */

   -------

2)
/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/Makefile
and config.status both have:



D["HAVE_WCHAR_H"]=" 1"
D["HAVE_WCHAR_T"]=" 1"
D["SIZEOF_WCHAR_T"]=" 4"



3) Therefore
/home/bs827200/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive/archive_string.h
should include this just fine:

It has:

  #ifdef HAVE_WCHAR_H
  #include <wchar.h>
  #endif


Not sure what's up; but if we figure this out, we gotta find a way to get
into README.hpux.

~BAS


Home | Main Index | Thread Index | Old Index