Subject: pkg/27050: .../audio/portaudio requirs -fPIC
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rkr@olib.org>
List: pkgsrc-bugs
Date: 09/27/2004 11:07:17
>Number:         27050
>Category:       pkg
>Synopsis:       .../audio/portaudio requirs -fPIC
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 27 11:08:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Richard Rauch
>Release:        NetBSD/amd64 ~2.0
>Organization:
dis-
>Environment:
(links won't let me paste here, but 1.6ZK kernel from a custom config;
not really related to pkgsrc)
>Description:
When trying to build audio/audacity, audio/portaudio gets built.

audio/portaudio fails to build, with an error message like (again, I
cannot paste into here with links-gui; known links-gui bug):


ld: pa_common/pa_convert.o relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
pa_common/pa_convert.o: could not read symbols: Bad value

>How-To-Repeat:
Try to build audio/portaudio on an AMD64 with GCC 3.3.3 from earlier
this year.
>Fix:
It seems to build, at least, if I edit Makefile.in (already patched
by patches/patch-ac) in this manner:

CC = @CC@ -fPIC


I made this change, generated a new patch-ac, redid the distinfo files,
and "make clean && make update" now builds and installs without problem.

I cannot attest to it beyond that.

>Release-Note:
>Audit-Trail:
>Unformatted: