Subject: pkg/7940: kdelibs 1.1.1 package make fails with 'ld: /usr/lib/c++rt0.o: illegal reloc type mix' on netbsd/sparc 1.4
To: None <>
From: None <>
List: netbsd-bugs
Date: 07/08/1999 13:12:26
>Number:         7940
>Category:       pkg
>Synopsis:       kdelibs 1.1.1 package make fails with 'ld: /usr/lib/c++rt0.o: illegal reloc type mix' on netbsd/sparc 1.4
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul  8 06:05:01 1999
>Originator:     Doug Wegscheid
- none -
>Release:        NetBSD 1.4/Sparc
(whoops) didn't get that - here's the top of dmesg:
NetBSD 1.4 (GENERIC) #0: Sun May  9 03:00:22 MEST 1999

Making kdelibs-1.1.1 on NetBSD 1.4/sparc fails with a 'ld: /usr/lib/c++rt0.o: illegal reloc type mix' when building the dynamic libkdecore (the static build succeeds). Building kdelibs from scratch without the help of the package system does not have the problem (since it does not attempt to build dynamic link libraries). Building without the help of the package system has a rash of others problems (not generating the moc files), however, and does seem to be a workaround...

===>  Building for kdelibs-1.1.1
gmake  all-recursive
gmake[1]: Entering directory `/usr/pkgsrc/x11/kdelibs/work/kdelibs-1.1.1'
Making all in kdecore
gmake[2]: Entering directory `/usr/pkgsrc/x11/kdelibs/work/kdelibs-1.1.1/kdecore
/usr/pkg/bin/pkglibtool-1.2p1 --cplusplus --install-la --mode=link g++  -O2 -I/u
sr/pkg/include -I/usr/pkg/include -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/u
sr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/l
ib -L/usr/pkg/lib -o -rpath /usr/X11R6/lib -version-info 2:0 kconf
ig.lo kconfigbase.lo ksimpleconfig.lo kcolorgroup.lo kapp.lo kurl.lo ksock.lo dr
ag.lo kprocess.lo kprocctrl.lo klocale.lo libintl.lo fakes.lo kiconloader.lo kde
bug.lo kstdaccel.lo kwm.lo krootprop.lo kcharsets.lo kcharsetsdata.lo kchartable
s.lo kstring.lo kpixmap.lo dither.lo kckey.lo kaccel.lo kglobalaccel.lo kclipboa
rd.lo krect.lo ksize.lo kpoint.lo
rm -f .libs/ .libs/libkdecore.* .libs/libkdecore.*
/usr/bin/ld -Bshareable -o .libs/ kconfig.lo kconfigbase.lo ksi
mpleconfig.lo kcolorgroup.lo kapp.lo kurl.lo ksock.lo drag.lo kprocess.lo kprocc
trl.lo klocale.lo libintl.lo fakes.lo kiconloader.lo kdebug.lo kstdaccel.lo kwm.
lo krootprop.lo kcharsets.lo kcharsetsdata.lo kchartables.lo kstring.lo kpixmap.
lo dither.lo kckey.lo kaccel.lo kglobalaccel.lo kclipboard.lo krect.lo ksize.lo
kpoint.lo /usr/lib/c++rt0.o
ld: /usr/lib/c++rt0.o: illegal reloc type mix
gmake[2]: *** [] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/x11/kdelibs/work/kdelibs-1.1.1/kdecore'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/x11/kdelibs/work/kdelibs-1.1.1'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

*** Error code 1

*** Error code 1


using the pkgsrc from the -current on July 6, 1999. build and load prerequisites. go to /usr/pkgsrc/x11/kdelibs and do a 'make'.