pkgsrc-Users archive

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

Re: Bootstrap failures on Solaris 10 1/13



"Vivianne Ombretta" <vivianne%chinstrap.org@localhost> writes:

> Attempting to bootstrap on Solaris 10 1/13 with the system GCC 3.4.3 (/usr/sfw/bin) fails:

Wow, welcome to 2004!

I expect you will have some difficulty, and could perhaps build a newer
gcc in a different prefix and try to use that.  But I have no Solaris
experience.

> If you run bootstrap with CFLAGS="-std=gnu99 -O2" then you get past this, but run into another error:
>
> ===> Bootstrapping pkgtools
> ===> running: /usr/bin/sh /export/genome/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g root /export/genome/pkgsrc/bootstrap/work/libarchive
> ===> running: (cd /export/genome/pkgsrc/bootstrap/work/libarchive; env
> INSTALL='/usr/pkg/bin/install-sh -c' CONFIG_SHELL=/usr/bin/sh
> /usr/bin/sh ./configure --enable-static --disable-shared
> --disable-bsdtar --disable-bsdcpio --disable-posix-regex-lib
> --disable-xattr --disable-maintainer-mode --disable-acl --without-zlib
> --without-bz2lib --without-iconv --without-lzma --without-lzo2
> --without-lz4 --without-nettle --without-openssl --without-xml2
> --without-expat --without-zstd
> MAKE=/export/genome/pkgsrc/bootstrap/work/bin/bmake &&
> /export/genome/pkgsrc/bootstrap/work/bin/bmake -j1)
> ./configure: syntax error at line 3494: `ARCHIVE_MINOR=$' unexpected
> ===> exited with status 2
> aborted.
>
> From cursorily reading the bootstrap source, it seems /usr/bin/bash
> should be selected as the shell, but this doesn't appear to be taking
> effect.

There may be a difference between using it as the shell when
intentionally invoked from pkgsrc and just running ./configure which is
a script that has its own #! line.  If that's true (and I am
*guessing*), then it could perhaps be overridden.  Try changing it to
/usr/bin/sh in files/configure before bootstrapping.


Home | Main Index | Thread Index | Old Index