Subject: Error installing libtool from pkgsrc on 1.4.2 sparc
To: None <netbsd-help@netbsd.org>
From: Devin L. Ganger <dlganger@earthlink.net>
List: netbsd-help
Date: 08/13/2000 02:13:43
Hello.

I was trying to install slrn-0.9.6.2 on my shiny new NetBSD 1.4.2
install via pkgsrc (downloaded on 11 Aug 2000, 0558 PST), and ran into
problems compiling some of the dependencies (slrn 0.9.6.2 depends on
slang-1.4.1, and slang depends on libtool-1.3.5).

Specifically, libtool-1.3.5 is bombing out on the following:

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.*
cc -shared -o .libs/libltdl.so.1.2
 ltdl.lo   -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib
ld: ltdl.lo: illegal reloc type mix
collect2: ld returned 1 exit status
*** Error code 1

I have no clue what could be causing this.  This is a fresh install of
NetBSD 1.4.2 sparc, done on 11 Aug 2000, via miniroot and ftp.  I've
included the dmesg output and the full error output from the initial
make-install command for slrn, in the hopes they'll give some clues.

Thanks in advance.


Here is the output of dmesg:

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
real mem = 133554176
avail mem = 121155584
using 1630 buffers containing 6676480 bytes of memory
bootpath:
/iommu@f,e0000000/sbus@f,e0001000/dma@f,81000/esp@f,80000/sd@0,0
mainbus0 (root): SUNW,SPARCsystem-600
cpu0 at mainbus0: TMS390Z50 v0 or TMS390Z55 @ 40 MHz, on-chip FPU
cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l): cache
enabled
cpu at mainbus0 not configured
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08 (eeprom)
timer0 at obio0 slot 0 offset 0x300000 delay constant 18
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0 (console)
ms0 at zs1 channel 1
audio at obio0 slot 0 offset 0x500000 level 13 not configured
leds at obio0 slot 0 offset 0x600000 not configured
iommu0 at mainbus0 ioaddr 0xe0000000: version 0x1/0x0, page-size 4096,
range 64MB
sbus0 at iommu0: clock = 20 MHz
dma0 at sbus0 slot 15 offset 0x81000: rev esc
esp0 at dma0 slot 15 offset 0x80000 level 4: ESP200, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
probe(esp0:0:0): max sync rate 6.25Mb/s
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST32171W, 0338> SCSI2 0/direct
fixed
sd0: 2061MB, 5168 cyl, 5 head, 163 sec, 512 bytes/sect x 4222640 sectors
probe(esp0:1:0): max sync rate 6.25Mb/s
sd1 at scsibus0 targ 1 lun 0: <SEAGATE, ST32171W, 0484> SCSI2 0/direct
fixed
sd1: 2062MB, 5172 cyl, 5 head, 163 sec, 512 bytes/sect x 4223444 sectors
cd0 at scsibus0 targ 6 lun 0: <SONY, CD-ROM CDU-8012, 3.1a> SCSI2
5/cdrom removable
lebuffer0 at sbus0 slot 15 offset 0x40000: 128K memory
le0 at lebuffer0 slot 15 offset 0x60000 level 6: address
08:00:20:11:51:6a
le0: 64 receive buffers, 16 transmit buffers
cgsix0 at sbus0 slot 1 offset 0x0 level 9: SUNW,501-1672, 1152 x 900,
rev 8 (console)
cgsix0: attached to /dev/fb
vme0 at iommu0: version 0x0
eccmemctl0 at mainbus0: version 0x0/0x0
root on sd0a dumps on sd0b
root file system type: ffs


And here is the full text of the make-install session for slrn:

bofh# make install
===> Validating dependencies for slrn-0.9.6.2
=> slrn-0.9.6.2.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch slrn-0.9.6.2.tar.gz from
ftp://space.mit.edu/pub/davis/slrn/.
Connected to space.mit.edu.
220 space FTP server (SunOS 4.1) ready.
331 Guest login ok, send ident as password.
230 Guest login ok, access restrictions apply.
200 Type set to I.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
local: slrn-0.9.6.2.tar.gz remote: slrn-0.9.6.2.tar.gz
227 Entering Passive Mode (18,75,0,10,16,233)
150 Binary data connection for slrn-0.9.6.2.tar.gz
(209.20.131.125,65527) (366666 bytes).
226 Binary Transfer complete.
366666 bytes received in 00:13 (26.02 KB/s)
221 Goodbye.
=> Checksum OK for slrn-0.9.6.2.tar.gz.
===> Extracting for slrn-0.9.6.2
===> slrn-0.9.6.2 depends on package: libslang-*
===> Verifying reinstall for ../../devel/libslang
=> slang-1.4.1.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch slang-1.4.1.tar.gz from
ftp://space.mit.edu/pub/davis/slang/v1.4/.
Connected to space.mit.edu.
220 space FTP server (SunOS 4.1) ready.
331 Guest login ok, send ident as password.
230 Guest login ok, access restrictions apply.
200 Type set to I.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
local: slang-1.4.1.tar.gz remote: slang-1.4.1.tar.gz
227 Entering Passive Mode (18,75,0,10,16,240)
150 Binary data connection for slang-1.4.1.tar.gz (209.20.131.125,65525)
(732159 bytes).
226 Binary Transfer complete.
732159 bytes received in 00:26 (26.51 KB/s)
221 Goodbye.
=> Checksum OK for slang-1.4.1.tar.gz.
===> Extracting for libslang-1.4.1
===> libslang-1.4.1 depends on package: libtool>1.3.5nb3
===> Verifying reinstall for ../../devel/libtool
=> libtool-1.3.5.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch libtool-1.3.5.tar.gz from
ftp://ftp.gnu.org/pub/gnu/libtool/.
ftp: connect: Connection timed out
ftp: Can't connect or login to host `ftp.gnu.org'
=> Attempting to fetch libtool-1.3.5.tar.gz from
ftp://ftp.cs.columbia.edu/archives/gnu/prep/libtool/.
Connected to lol.cs.columbia.edu.
220 lol.cs.columbia.edu FTP server (UNIX(r) System V Release 4.0) ready.
331 Guest login ok, send ident as password.
230 Guest login ok, access restrictions apply.
200 Type set to I.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
local: libtool-1.3.5.tar.gz remote: libtool-1.3.5.tar.gz
227 Entering Passive Mode (128,59,16,34,224,37)
150 Binary data connection for libtool-1.3.5.tar.gz
(209.20.131.125,65522) (538884 bytes).
226 Binary Transfer complete.
538884 bytes received in 00:07 (67.72 KB/s)
221 Goodbye.
=> Checksum OK for libtool-1.3.5.tar.gz.
===> Extracting for libtool-1.3.5nb4
===> Patching for libtool-1.3.5nb4
===> Applying NetBSD patches for libtool-1.3.5nb4
===> Configuring for libtool-1.3.5nb4
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-instal
l --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.5nb4
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 --srcd
ir=.  --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-instal
l --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.*
cc -shared -o .libs/libltdl.so.1.2
 ltdl.lo   -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib
ld: ltdl.lo: illegal reloc type mix
collect2: ld returned 1 exit status
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.


--
Devin L. Ganger