NetBSD Problem Report #9988

Received: (qmail 20089 invoked from network); 26 Apr 2000 23:03:02 -0000
Message-Id: <200004262303.TAA28522@cowboy-burt.mcmahill.net>
Date: Wed, 26 Apr 2000 19:03:00 -0400 (EDT)
From: mcmahill@mtl.mit.edu
Reply-To: mcmahill@mtl.mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: ncurses fails on sparc
X-Send-Pr-Version: 3.95

>Number:         9988
>Category:       pkg
>Synopsis:       ncurses fails on sparc
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 26 23:04:00 +0000 2000
>Closed-Date:    Sat Apr 29 20:27:43 +0000 2000
>Last-Modified:  Sat Apr 29 20:27:43 +0000 2000
>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:

From: matthew green <mrg@eterna.com.au>
To: mcmahill@mtl.mit.edu
Cc: gnats-bugs@gnats.netbsd.org
Subject: re: pkg/9988: ncurses fails on sparc 
Date: Thu, 27 Apr 2000 10:36:21 +1000


    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?


 hmmm... blah, i thought we had decided to do this in base NetBSD/sparc
 ages ago, but i seem it is not the case today.  *sigh*

From: Frederick Bruckman <fb@enteract.com>
To: mcmahill@mtl.mit.edu
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/9988: ncurses fails on sparc
Date: Sat, 29 Apr 2000 11:55:44 -0500 (CDT)

 On Wed, 26 Apr 2000 mcmahill@mtl.mit.edu wrote:

 > 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

 Got my vote. The c++ interfaces are undocumented, so AFAIK nothing
 uses them except for the examples, which are never installed. You'll
 also need to remove libncurses++.* from the PLIST.


State-Changed-From-To: open->closed 
State-Changed-By: dmcmahill 
State-Changed-When: Sat Apr 29 13:24:55 PDT 2000 
State-Changed-Why:  
There is a PIC compiled c++rt0 available for NetBSD-1.4.*/sparc at 
ftp://ftp.netbsd.org//pub/NetBSD/arch/sparc/c++rt0/ 
By using this, ncurses builds properly.  In addition, rev 1.14 of 
basesrc/lib/csu/c++/Makefile makes c++rt0 get compiled with -fPIC 
so future releases should work correctly. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.