[Bug 195343] New: audio/libsidplay2 shoud be compiled with adding "-fPIC" to CFLAGS.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 24 18:21:33 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195343

            Bug ID: 195343
           Summary: audio/libsidplay2 shoud be compiled with adding
                    "-fPIC" to CFLAGS.
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: crest at sahiro.org

Created attachment 149783
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149783&action=edit
A log and an errors when audio/xmms2 was built.

Building "SID" enabled audio/xmms2 on 10.1-R/amd64 faild as following.

% cd /usr/ports/audio/xmms2
% sudo make
...
Optional configuration:
======================= 
Enabled:  et, launcher, mdns, nycli, pixmaps, vistest 
..
====================== 
Output:  airplay, alsa, ao, diskwrite, ices, jack, null, oss, pulse 
..
sid, sndfile, speex, tremor, tta, vocoder, vorbis, wave, wavpack, xml, xspf 
Disabled:  coreaudio, gvfs, nms, sc68, sun, waveout 
'configure' finished successfully (4.603s)
===>  Building for xmms2-0.8_14
...
[217/285] cxxshlib: _build_/src/plugins/sid/sid.c.1.o
_build_/src/plugins/sid/sidplay_wrapper.cpp.1.o
_build_/src/plugins/sid/md5.cpp.1.o -> _build_/src/plugins/sid/libxmms_sid.so
/usr/bin/ld:
/usr/local/lib/sidplay/builders/libresid-builder.a(resid-builder.o): relocation
R_X86_64_32S against `_ZTV12ReSIDBuilder' can not be used when making a shared
object; recompile with -fPIC
/usr/local/lib/sidplay/builders/libresid-builder.a: could not read symbols: Bad
value
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Waf: Leaving directory
`/var/portbuild/usr/ports/audio/xmms2/work/xmms2-0.8DrO_o/_build_'
Build failed
...
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/audio/xmms2
*** Error code 1

Stop.

As shown, error was occurred. And the message "relocation R_X86_64_32S against
`_ZTV12ReSIDBuilder' can not be used when making a shared object; recompile
with -fPIC" was recognised.
Then, I work on adding "CFlAGS+=-fPIC" to Makefile of audio/libsidplay2 and
bulding & installing audio/libsidplay2. After that, bulding audio/xmms2
finished normaly.

When using i386, "CFlAGS+=-fPIC" is not necessary. So I changed "CFLAGS+=-fPIC"
to "CFLAGS_amd64+=-fPIC".

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list