Subject: pkg/11136: libtool won't compile on NetBSD-1.4.2/sparc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <g.mcgarry@ieee.org>
List: netbsd-bugs
Date: 10/04/2000 15:54:10
>Number:         11136
>Category:       pkg
>Synopsis:       libtool emits 'illegal reloc type mix' during libtool compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 04 15:54:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Gregory McGarry
>Release:        NetBSD-1.4.2 <NetBSD-current source date>
>Organization:
>Environment:

NetBSD lux 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:

A new install of 1.4.2, and pkgsrc downloaded two days ago.  devel/libtool
won't compile with the following error:

===> Building for libtool-1.3.5nb5
Making all in .
Making all in libltdl
cd .  && CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating Makefile
cd .  && CONFIG_FILES= CONFIG_HEADERS=config.h  /bin/sh ./config.status
creating config.h
config.h is unchanged
/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

>How-To-Repeat:

New NetBSD-1.4.2/sparc install with newish pkgsrc.

>Fix:

Hmm.  I just saw Hubert commit sysutils/c++rt0 which may affect this.
>Release-Note:
>Audit-Trail:
>Unformatted: