Subject: port-sparc/10846: Cannot make many packages in pkgsrc due to ld giving "illegal reloc type mix" errors
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dlganger@earthlink.net>
List: netbsd-bugs
Date: 08/16/2000 14:54:16
>Number:         10846
>Category:       port-sparc
>Synopsis:       Cannot make many packages in pkgsrc due to ld giving "illegal reloc type mix" errors
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 16 14:55:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Devin L. Ganger
>Release:        1.4.2
>Organization:
>Environment:
NetBSD bofh 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
>Description:
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

Downloading the binary version of libtool only caused the error message to repeat in the build of libslang.
>How-To-Repeat:


>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted: