From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 24 18:21:33 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EFA2EE36 for ; Mon, 24 Nov 2014 18:21:32 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0D46B5C for ; Mon, 24 Nov 2014 18:21:32 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAOILWRX025159 for ; Mon, 24 Nov 2014 18:21:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 195343] New: audio/libsidplay2 shoud be compiled with adding "-fPIC" to CFLAGS. Date: Mon, 24 Nov 2014 18:21:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: crest@sahiro.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2014 18:21:33 -0000 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@FreeBSD.org Reporter: crest@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.