Subject: pkg/9988: ncurses fails on sparc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-bugs
Date: 04/26/2000 16:03:09
>Number: 9988
>Category: pkg
>Synopsis: ncurses fails on sparc
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 26 16:04:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:
>Release: ncurses-5.0, NetBSD-1.4.2<NetBSD-current source date>
>Organization:
>Environment:
System: NetBSD cowboy-burt 1.4.1 NetBSD 1.4.1 (COWBOY-BURT) #1: Sat Oct 2 21:08:08 EDT 1999 dan@cowboy-burt:/amd/dinah-moe/export/src/sys/arch/sparc/compile/COWBOY-BURT sparc
>Description:
ncurses fails to link.
most of it builds, then at the end:
/usr/bin/ld -Bshareable -o .libs/libncurses++.so.5.0 ../objects/cursesf.lo ../objects/cursesm.l
o ../objects/cursesw.lo ../objects/cursespad.lo ../objects/cursesp.lo ../objects/cursslk.lo ../
objects/cursesapp.lo ../objects/cursesmain.lo /usr/lib/c++rt0.o
ld: /usr/lib/c++rt0.o: illegal reloc type mix
*** Error code 1
>How-To-Repeat:
on a sparc:
cd /usr/pkgsrc/devel/ncurses
make
>Fix:
none really. some random thoughts are:
The following makes ncurses build, but of course there are no
c++ bindings then. The selection of -fPIC (instead of -fpic) is
set within pkglibtool and is magic I don't understand.
what about providing a c++rt0.o compiled with -fPIC?
could we even just have an extra distfile with this .o file in
it and link to that when building ncurses?
RCS file: /cvsroot/pkgsrc/devel/ncurses/Makefile,v
retrieving revision 1.29
diff -r1.29 Makefile
16c16,17
< --with-manpage-format=normal
---
> --with-manpage-format=normal \
> --without-cxx-binding
>Release-Note:
>Audit-Trail:
>Unformatted: