pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/45491: pkgsrc does not bootstrap under OpenIndiana
>Number: 45491
>Category: pkg
>Synopsis: pkgsrc does not bootstrap under OpenIndiana
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 18 17:05:00 +0000 2011
>Originator: Andrey N. Oktyabrski
>Release: OpenIndiana 151a
>Organization:
>Environment:
$ uname -a
SunOS thinkpot 5.11 oi_151a i86pc i386 i86pc Solaris
$ isainfo
amd64 i386
$ which gcc
/usr/bin/gcc
$ /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.1/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.6.1/configure --prefix=/usr/gcc/4.6
--libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib
--mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info
--with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/opt/dtbld/bin/ld-wrapper --without-gnu-ld
--enable-languages=c,c++,fortran,objc --enable-shared --disable-static
--enable-decimal-float --with-gmp=/usr/gnu --with-mpfr=/usr/gnu
--with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu -enable-nls
Thread model: posix
gcc version 4.6.1 (GCC)
>Description:
Here is the root of evil:
(/usr/pkgsrc/archivers/libarchive/files/libarchive/archive_write_disk.c)
2264 /* Try setting the flags as given. */
2265 if (ioctl(myfd, EXT2_IOC_GETFLAGS, &oldflags) >= 0) {
2266 newflags = (oldflags & ~clear) | set;
2267 if (ioctl(myfd, EXT2_IOC_SETFLAGS, &newflags) >= 0)
2268 goto cleanup;
2269 if (errno != EPERM)
2270 goto fail;
2271 }
2272 /* If we couldn't set all the flags, try again with a subset. */
2273 if (ioctl(myfd, EXT2_IOC_GETFLAGS, &oldflags) >= 0) {
2274 newflags &= ~sf_mask;
2275 oldflags &= sf_mask;
2276 newflags |= oldflags;
2277 if (ioctl(myfd, EXT2_IOC_SETFLAGS, &newflags) >= 0)
2278 goto cleanup;
2279 }
2280 /* We couldn't set the flags, so report the failure. */
>How-To-Repeat:
$ pfexec su -
# cd /usr/pkgsrc/bootstrap
# ./bootstrap
...
/usr/pkgsrc/bootstrap/work/bin/pdksh ./libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES
-D_FILE_OFFSET_BITS=64 -DDEF_UMASK=022
-I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive
-I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch
-DHAVE_NBCOMPAT_H=1
-I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat
-I/usr/include -O -I/usr/include -c -o libarchive/archive_write_disk.lo
libarchive/archive_write_disk.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES
-D_FILE_OFFSET_BITS=64 -DDEF_UMASK=022
-I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive
-I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch
-DHAVE_NBCOMPAT_H=1
-I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat
-I/usr/include -O -I/usr/include -c libarchive/archive_write_disk.c -o
libarchive/archive_write_disk.o
libarchive/archive_write_disk.c: In function 'set_fflags_platform':
libarchive/archive_write_disk.c:2265:18: error: expected expression before
'long'
libarchive/archive_write_disk.c:2267:19: error: expected expression before
'long'
libarchive/archive_write_disk.c:2273:18: error: expected expression before
'long'
libarchive/archive_write_disk.c:2277:19: error: expected expression before
'long'
*** Error code 1
Stop.
bmake: stopped in
/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive
*** Error code 1
Stop.
bmake: stopped in
/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install
===> exited with status 1
aborted.
>Fix:
Home |
Main Index |
Thread Index |
Old Index