Subject: Re: ncurses won't
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Frederick Bruckman <fb@enteract.com>
List: tech-pkg
Date: 01/02/2000 08:13:32
On Sat, 1 Jan 2000, Jukka Marin wrote:

> Trying to install ncurses (for mutt) on NetBSD/sparc 1.4.1 from a recent
> pkgsrc tarball:
> 
> cd ../lib && /usr/pkg/bin/pkglibtool-a.out-1.2p2  --cplusplus --mode=link
> c++ -o libncurses++.la ../objects/cursesf.lo ../objects/cursesm.lo
> ../objects/cursesw.lo ../objects/cursesp.lo ../objects/cursslk.lo
> ../objects/cursesapp.lo ../objects/cursesmain.lo -rpath /usr/pkg/lib
> -version-info 4:2
> rm -f .libs/libncurses++.la .libs/libncurses++.* .libs/libncurses++.*
> /usr/bin/ld -Bshareable -o .libs/libncurses++.so.4.2 ../objects/cursesf.lo
> ../objects/cursesm.lo ../objects/cursesw.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
> 
> I did "make clean" and started over, no help. :-(
> 
> Any ideas?

This has been reported on sparc before. Evidently, no PR was filed.
Suggestions: 1) Re-compile and reinstall c++rt0.o with -fPIC, 2) Edit
the Makefile in the package build directory to disable the
libncurses++ build, and then install.