Subject: Re: pkgsrc on solaris 8/sparc + bmake gnome2
To: None <>
From: adam morley <>
List: tech-pkg
Date: 06/24/2003 17:00:28
> > i doubt that will give you anything.  you will have another breakage
> > later because it won't fix the problem only one symptome.
> >=20
> > i am using pkgsrc on Solaris regularly and i've never faced this issue.
> > there seems to be something different in your environment which is
> > causing this lossage and which needs to be fixed.
> >=20
> > if you go into ${WRKSRC} and manually exec 'ksh config.guess' what does
> > it print?
> # env
> _=3D/usr/bin/env
> MANPATH=3D/usr/man:
> HZ=3D
> PATH=3D/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/pkg/bin:/usr/pkg/sbin:/=
> LOGNAME=3Droot
> SHELL=3D/sbin/sh
> HOME=3D/
> TERM=3Dvt100
> PWD=3D/usr/pkgsrc/devel/libtool-base/work/libtool-ml
> TZ=3DUS/Pacific

I should've included these in the other email, sorry:  (plus, I've put a tr=
uss aka strace of the bmake run up at:

I'm going to also try the precompiled binaries, but I am wondering why it i=
sn't working --- I've even recompiled w/o option flags to the bootstrap, no=
t that that should matter.

thanks all!

# bmake PKG_DEBUG_LEVEL=3D2 configure
set -x;                                  if [ -f /usr/pkgsrc/distfiles/vuln=
erabilities ]; then                   /usr/ucb/echo "=3D=3D=3D> Checking fo=
r vulnerabilities in libtool-base-1.4.20010614nb14";  vul=3D`bmake  PKG_DEB=
UG_LEVEL=3D2 OPSYS=3DSunOS OS_VERSION=3D5.8 LOWER_OPSYS=3Dsolaris check-vul=
nerable`;            case "$vul" in "")     ;;                             =
                  *)     /usr/ucb/echo "$vul";                            /=
usr/ucb/echo "or define ALLOW_VULNERABLE_PACKAGES if this package is absolu=
tely essential";  /usr/bin/false ;;                esac;                   =
                                 else                   /usr/ucb/echo "=3D=
=3D=3D> *** No /usr/pkgsrc/distfiles/vulnerabilities file found,";  /usr/uc=
b/echo "=3D=3D=3D> *** skipping vulnerability checks. To fix, install";  /u=
sr/ucb/echo "=3D=3D=3D> *** the pkgsrc/security/audit-packages package and =
run";  /usr/ucb/echo "=3D=3D=3D> *** '/usr/pkg/sbin/download-vulnerability-=
list'.";  fi
+ [ -f /usr/pkgsrc/distfiles/vulnerabilities ]=20
+ /usr/ucb/echo =3D=3D=3D> *** No /usr/pkgsrc/distfiles/vulnerabilities fil=
e found,=20
=3D=3D=3D> *** No /usr/pkgsrc/distfiles/vulnerabilities file found,
+ /usr/ucb/echo =3D=3D=3D> *** skipping vulnerability checks. To fix, insta=
=3D=3D=3D> *** skipping vulnerability checks. To fix, install
+ /usr/ucb/echo =3D=3D=3D> *** the pkgsrc/security/audit-packages package a=
nd run=20
=3D=3D=3D> *** the pkgsrc/security/audit-packages package and run
+ /usr/ucb/echo =3D=3D=3D> *** '/usr/pkg/sbin/download-vulnerability-list'.=
=3D=3D=3D> *** '/usr/pkg/sbin/download-vulnerability-list'.
set -x;                                  /usr/bin/test -d /usr/pkgsrc/distf=
iles/ || /usr/bin/mkdir -p /usr/pkgsrc/distfiles/
+ /usr/bin/test -d /usr/pkgsrc/distfiles/=20
set -x;                                  cd /usr/pkgsrc/distfiles/;        =
     file=3D"libtool-ml-20010614.tar.gz";                                  =
            bfile=3D"libtool-ml-20010614.tar.gz";                          =
iles/LOCAL_PORTS/ =  ftp://ftp.netbsd.or=
es/";  sites=3D" $unsorted_sites";              if [ "X" !=3D "X" ]; then  =
                        for d in "" ; do        if [ "X$d" =3D "X" -o "X$d"=
 =3D "X/usr/pkgsrc/distfiles" ]; then continue; fi;  if [ -f $d//$bfile ]; =
then  /usr/ucb/echo "Using $d//$bfile";  /usr/bin/rm -f $bfile;      /usr/b=
in/ln -s $d//$bfile $bfile;  break;                                       f=
i;                                              done;                      =
    fi;                                              if [ ! -f $file -a ! -=
f $bfile -a ! -h $bfile ]; then   /usr/ucb/echo "=3D> $bfile doesn't seem t=
o exist on this system.";  if [ ! -w /usr/pkgsrc/distfiles//. ]; then      =
              /usr/ucb/echo "=3D> Can't download to /usr/pkgsrc/distfiles/ =
(permission denied?).";  exit 1;                                     fi;   =
                                 for site in $sites; do                    =
               /usr/ucb/echo "=3D> Attempting to fetch $bfile from ${site}.=
";  if [ -f /usr/pkgsrc/devel/libtool-base/../libtool/distinfo ]; then     =
           /usr/bin/nawk 'NF =3D=3D 5 && $1 =3D=3D "Size" && $2 =3D=3D "('$=
bfile')" { printf("=3D> [%s %s]\n", $4, $5) }' /usr/pkgsrc/devel/libtool-ba=
se/../libtool/distinfo;  fi;                                              i=
f /usr/pkg/bin/ftp  ${site}${bfile} ; then  if [ -n "" -a -f /usr/pkgsrc/de=
vel/libtool-base/../libtool/distinfo -a -f /usr/pkgsrc/distfiles//$bfile ];=
 then  alg=3D`/usr/bin/nawk 'NF =3D=3D 4 && $2 =3D=3D "('$file')" && $3 =3D=
=3D "=3D" {print $1;}' /usr/pkgsrc/devel/libtool-base/../libtool/distinfo`;=
  if [ -z "$alg" ]; then           alg=3DSHA1; fi;                         =
   CKSUM=3D`/usr/pkg/bin/digest $alg < /usr/pkgsrc/distfiles//$bfile`;  CKS=
UM2=3D`/usr/bin/nawk '$1 =3D=3D "'$alg'" && $2 =3D=3D "('$file')" {print $4=
;}' </usr/pkgsrc/devel/libtool-base/../libtool/distinfo`;  if [ "$CKSUM" =
=3D "$CKSUM2" -o "$CKSUM2" =3D "IGNORE" ]; then  break;                    =
else                             /usr/ucb/echo "=3D> Checksum failure - try=
ing next site.";  fi;                           elif [ ! -f /usr/pkgsrc/dis=
tfiles//$bfile ]; then  /usr/ucb/echo "=3D> FTP didn't fetch expected file,=
 trying next site." ;  else                                         break; =
                        fi;                                      fi        =
                             done;                                         =
           if [ ! -f /usr/pkgsrc/distfiles//$bfile ]; then  /usr/ucb/echo "=
=3D> Couldn't fetch $bfile - please try to retrieve this"; /usr/ucb/echo "=
=3D> file manually into /usr/pkgsrc/distfiles/ and try again.";  exit 1;   =
                                       fi;            fi;
+ cd /usr/pkgsrc/distfiles/=20
L_PORTS/ ft=
sites=3D ftp://ftp.=
+ [ X !=3D X ]=20
+ [ ! -f libtool-ml-20010614.tar.gz -a ! -f libtool-ml-20010614.tar.gz -a !=
 -h libtool-ml-20010614.tar.gz ]=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;cd /usr/pkgsrc/devel/libtool-base && bmake OPSYS=3DSunOS OS_VERSION=
=3D5.8 LOWER_OPSYS=3Dsolaris DIGEST=3D/usr/pkg/bin/digest DIGEST_VERSION=3D=
"20021220" PKGTOOLS_VERSION=3D"20030423" ZOULARIS_VERSION=3D"20030612" real=
+ cd /usr/pkgsrc/devel/libtool-base=20
+ bmake OPSYS=3DSunOS OS_VERSION=3D5.8 LOWER_OPSYS=3Dsolaris DIGEST=3D/usr/=
pkg/bin/digest DIGEST_VERSION=3D20021220 PKGTOOLS_VERSION=3D20030423 ZOULAR=
IS_VERSION=3D20030612 real-configure=20
=3D=3D=3D> Configuring for libtool-base-1.4.20010614nb14
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;/usr/bin/true
+ /usr/bin/true=20
set -x;cd /usr/pkgsrc/devel/libtool-base/work/libtool-ml && /usr/bin/env  A=
WK=3D"/usr/bin/nawk" CC=3D"gcc" CFLAGS=3D"-O -I/usr/pkg/include" CPPFLAGS=
=3D"  -I/usr/pkg/include"  CXX=3D"g++" CXXFLAGS=3D"-O -I/usr/pkg/include" F=
C=3D"f77" F77=3D"f77" FFLAGS=3D"-O"  INSTALL=3D"`/usr/bin/type /usr/ucb/ins=
tall | /usr/bin/nawk '{ print $NF }'` -c -o root -g root"  ac_given_INSTALL=
=3D"`/usr/bin/type /usr/ucb/install | /usr/bin/nawk '{ print $NF }'` -c -o =
root -g root"  INSTALL_DATA=3D"/usr/ucb/install -c -o root -g root -m 444" =
 INSTALL_PROGRAM=3D"/usr/ucb/install -c -s -o root -g root -m 555"  INSTALL=
_SCRIPT=3D"/usr/ucb/install -c -o root -g root -m 555"  MAKE=3D"bmake" LIBS=
=3D"" CONFIG_SHELL=3D/bin/ksh LDFLAGS=3D" -Wl,-R/usr/pkg/lib -L/usr/pkg/lib=
" M4=3D"/usr/ccs/bin/m4" YACC=3D"yacc" RPATH_FLAG=3D"-R" PATH=3D/usr/pkgsrc=
in:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/usr/pkg/bin:/usr/openwin/bin =
PKG_SYSCONFDIR=3D"/usr/pkg/etc" BUILDLINK_DIR=3D"/usr/pkgsrc/devel/libtool-=
base/work/.buildlink" BUILDLINK_X11_DIR=3D"/usr/pkgsrc/devel/libtool-base/w=
UILDLINK_CPPFLAGS=3D"-I/usr/pkg/include" BUILDLINK_LDFLAGS=3D"-L/usr/pkg/li=
b -Wl,-R/usr/pkg/lib"  CC=3D"gcc" CXX=3D"g++"  LD=3D"ld"    ./configure --e=
nable-ltdl-install --host=3D-sun-solaris --prefix=3D/usr/pkg
+ cd /usr/pkgsrc/devel/libtool-base/work/libtool-ml=20
+ /usr/bin/type /usr/ucb/install=20
+ /usr/bin/nawk { print $NF }=20
+ /usr/bin/type /usr/ucb/install=20
+ /usr/bin/nawk { print $NF }=20
+ /usr/bin/env AWK=3D/usr/bin/nawk CC=3Dgcc CFLAGS=3D-O -I/usr/pkg/include =
CPPFLAGS=3D  -I/usr/pkg/include CXX=3Dg++ CXXFLAGS=3D-O -I/usr/pkg/include =
FC=3Df77 F77=3Df77 FFLAGS=3D-O INSTALL=3D/usr/ucb/install -c -o root -g roo=
t ac_given_INSTALL=3D/usr/ucb/install -c -o root -g root INSTALL_DATA=3D/us=
r/ucb/install -c -o root -g root -m 444 INSTALL_PROGRAM=3D/usr/ucb/install =
-c -s -o root -g root -m 555 INSTALL_SCRIPT=3D/usr/ucb/install -c -o root -=
g root -m 555 MAKE=3Dbmake LIBS=3D CONFIG_SHELL=3D/bin/ksh LDFLAGS=3D -Wl,-=
R/usr/pkg/lib -L/usr/pkg/lib M4=3D/usr/ccs/bin/m4 YACC=3Dyacc RPATH_FLAG=3D=
-R PATH=3D/usr/pkgsrc/devel/libtool-base/work/.buildlink/bin:/usr/bin:/usr/=
bin:/usr/openwin/bin PKG_SYSCONFDIR=3D/usr/pkg/etc BUILDLINK_DIR=3D/usr/pkg=
src/devel/libtool-base/work/.buildlink BUILDLINK_X11_DIR=3D/usr/pkgsrc/deve=
l/libtool-base/work/.buildlink-x11 BUILDLINK_UPDATE_CACHE=3Dno BUILDLINK_CA=
L/usr/pkg/lib -Wl,-R/usr/pkg/lib CC=3Dgcc CXX=3Dg++ LD=3Dld ./configure --e=
nable-ltdl-install --host=3D-sun-solaris --prefix=3D/usr/pkg=20
loading cache ./config.cache
checking for a BSD compatible install... /usr/ucb/install -c -o root -g root
checking whether build environment is sane... yes
checking whether bmake sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing

Configuring libtool 1.4a (1.641.2.255 2001/05/22 10:39:30)

checking for gcc... gcc
checking whether the C compiler (gcc -O -I/usr/pkg/include  -Wl,-R/usr/pkg/=
lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (gcc -O -I/usr/pkg/include  -Wl,-R/usr/pkg/=
lib -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking host system type... config.sub: invalid option -sun-solaris
Try `config.sub --help' for more information.
checking build system type... config.sub: invalid option -sun-solaris
Try `config.sub --help' for more information.
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... no
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking for mawk... /usr/bin/nawk
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for ld option to reload object files... -r
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
=2E/configure: test: unknown operator invalid
*** Error code 1

bmake: stopped in /usr/pkgsrc/devel/libtool-base
*** Error code 1

bmake: stopped in /usr/pkgsrc/devel/libtool-base

config.log (the end of it):
configure:1413: checking for ld option to reload object files
configure:1425: checking how to recognise dependant libraries
configure:1589: checking for object suffix
configure:1595: gcc -c -O -I/usr/pkg/include   -I/usr/pkg/include conftest.=
c 1>&
configure:1615: checking for executable suffix
configure:1625: gcc -o conftest -O -I/usr/pkg/include   -I/usr/pkg/include =
-R/usr/pkg/lib -L/usr/pkg/lib conftest.c  1>&5