Subject: pkgsrc/devel/libtool 1.3.5nb5 problem
To: None <netbsd-users@netbsd.org>
From: Steven Grunza <steven_grunza@ieee.org>
List: netbsd-users
Date: 09/22/2000 14:59:10
In trying to build lynx, I ran into build problems with libtool-1.3.5nb5 on
a 1.4.2 sparc system.  I may have done something wrong during install but I
can't figure out what.  Here's the make output:

root@hw-sbus#(1) make clean
===> Cleaning for libtool-1.3.5nb5
root@hw-sbus#(2) make
=> Checksum OK for libtool-1.3.5.tar.gz.
===> Extracting for libtool-1.3.5nb5
===> Patching for libtool-1.3.5nb5
===> Applying NetBSD patches for libtool-1.3.5nb5
===> Configuring for libtool-1.3.5nb5
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking whether make 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... found
checking for gcc... cc
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for ranlib... ranlib
checking host system type... sparc--netbsd
checking build system type... sparc--netbsd
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating tests/Makefile
configuring in libltdl
running /bin/sh ./configure  --host=sparc--netbsd --prefix=/usr/pkg
--enable-ltdl-install --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) 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... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) cc
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for working const... yes
checking for inline... inline
checking host system type... sparc--netbsd
checking build system type... sparc--netbsd
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
updating cache .././config.cache
loading cache .././config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... NetBSD (a.out) ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache .././config.cache
loading cache .././config.cache
checking which extension is used for shared libraries... .so
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for objdir... .libs
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for malloc.h... yes
checking for memory.h... yes
checking for stdlib.h... yes
checking for stdio.h... yes
checking for ctype.h... yes
checking for dlfcn.h... yes
checking for dl.h... no
checking for dld.h... no
checking for string.h... yes
checking for strchr... yes
checking for strrchr... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for dlopen in -ldl... no
checking for dlopen... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dld_link in -ldld... no
checking for dlerror... yes
checking command to parse /usr/bin/nm -B output... yes
checking for _ prefix in compiled symbols... (cached) yes
checking whether we have to add an underscore for dlsym... yes
updating cache .././config.cache
creating ./config.status
creating Makefile
creating config.h
===> Building for libtool-1.3.5nb5
Making all in .
rm -f ltmain.shT
date=`/bin/sh ./mkstamp < ./ChangeLog` &&  sed -e 's/@''PACKAGE@/libtool/'
-e 's/@''VERSION@/1.3.5/'  -e "s%@""TIMESTAMP@%$date%" ./ltmain.in >
ltmain.shT
mv -f ltmain.shT ./ltmain.sh ||  (rm -f ./ltmain.sh && cp ltmain.shT
./ltmain.sh && rm -f ltmain.shT)
rm -f ltconfig.T
date=`/bin/sh ./mkstamp < ./ChangeLog` &&  awk '/@LINENO@/ { printf "%d:",
NR } { print }' ./ltconfig.in |  sed -e 's/@''PACKAGE@/libtool/' -e
's/@''VERSION@/1.3.5/'  -e "s%@""TIMESTAMP@%$date%"  -e
'/@LINENO@/s/^\([0-9][0-9]*\):\(.*\)@LINENO@/\2\1/'  > ltconfig.T
chmod +x ltconfig.T
mv -f ltconfig.T ./ltconfig ||  (rm -f ./ltconfig && cp ltconfig.T
./ltconfig && rm -f ltconfig.T)
CC="cc" CFLAGS="-O2" CPPFLAGS=""  LD="/usr/bin/ld"
LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib" LIBS=""  LN_S="ln -s" NM="/usr/bin/nm -B" RANLIB="ranlib"
DLLTOOL="" OBJDUMP="" AS=""  /bin/sh ./ltconfig --cache-file=./config.cache
--with-gcc --enable-dlopen --srcdir=.  --output=libtool ./ltmain.sh
loading cache ./config.cache within ltconfig
checking host system type... sparc-unknown-netbsd1.4.2
checking for object suffix... o
checking for executable suffix... (cached) no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... NetBSD (a.out) ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
checking for dlopen in -ldl... (cached) no
checking for dlopen... (cached) yes
checking for dlfcn.h... (cached) yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
updating cache ./config.cache
CONFIG_FILES=libtoolize CONFIG_HEADERS= ./config.status
creating libtoolize
chmod +x libtoolize
Making all in libltdl
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --host=sparc--netbsd --prefix=/usr/pkg
--enable-ltdl-install --cache-file=.././config.cache --srcdir=. --no-create
--no-recursion
loading cache .././config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) 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... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) cc
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking host system type... sparc--netbsd
checking build system type... sparc--netbsd
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
updating cache .././config.cache
loading cache .././config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... NetBSD (a.out) ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache .././config.cache
loading cache .././config.cache
checking which extension is used for shared libraries... (cached) .so
checking which variable specifies run-time library path... (cached)
LD_LIBRARY_PATH
checking for objdir... (cached) .libs
checking how to run the C preprocessor... (cached) cc -E
checking for ANSI C header files... (cached) yes
checking for malloc.h... (cached) yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdio.h... (cached) yes
checking for ctype.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for dl.h... (cached) no
checking for dld.h... (cached) no
checking for string.h... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (cached) yes
checking whether libtool supports -dlopen/-dlpreopen... (cached) yes
checking for dlopen in -ldl... (cached) no
checking for dlopen... (cached) yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dld_link in -ldld... (cached) no
checking for dlerror... (cached) yes
checking command to parse /usr/bin/nm -B output... (cached) yes
checking for _ prefix in compiled symbols... (cached) yes
checking whether we have to add an underscore for dlsym... (cached) yes
updating cache .././config.cache
creating ./config.status
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -c
ltdl.c
mkdir .libs
cc -DHAVE_CONFIG_H -I. -I. -I. -O2 -c ltdl.c  -fPIC -DPIC -o .libs/ltdl.lo
cc -DHAVE_CONFIG_H -I. -I. -I. -O2 -c ltdl.c -o ltdl.o >/dev/null 2>&1
mv -f .libs/ltdl.lo ltdl.lo
/bin/sh ./libtool --mode=link cc  -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o libltdl.la -rpath /usr/pkg/lib
-version-info 1:2:1 ltdl.lo  
rm -fr .libs/libltdl.la .libs/libltdl.* .libs/libltdl.*
/usr/bin/ld -Bshareable -o .libs/libltdl.so.1.2  ltdl.lo   -R/usr/pkg/lib
-R/usr/pkg/lib /usr/lib/c++rt0.o
ld: /usr/lib/c++rt0.o: illegal reloc type mix
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

root@hw-sbus#(3) uname -a
NetBSD hw-sbus 1.4.2 NetBSD 1.4.2 (GENERIC) #2: Thu Mar 16 00:08:53 PST
2000     toddpw@threepio.toddpw.net:/usr/src/sys/arch/sparc/compile/GENERIC
sparc
root@hw-sbus#(4) 
root@hw-sbus#(4) pwd
/usr/pkgsrc/devel/libtool



----------------------------------------------------------------------
"Luke, you're going to find that many | Steven Grunza
of the truths we cling to depend      | voice:  (856) 787 - 2759 
greatly on our own point of view."    | fax:    (856) 866 - 2033
 - Obi Wan Kenobi, Return of the Jedi | e-mail: steven_grunza@ieee.org
----------------------------------------------------------------------