From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Aug 4 14:50:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EC671065677 for ; Tue, 4 Aug 2009 14:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7A5908FC17 for ; Tue, 4 Aug 2009 14:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n74Eo41K006106 for ; Tue, 4 Aug 2009 14:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n74Eo4lI006105; Tue, 4 Aug 2009 14:50:04 GMT (envelope-from gnats) Resent-Date: Tue, 4 Aug 2009 14:50:04 GMT Resent-Message-Id: <200908041450.n74Eo4lI006105@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E51D01065672; Tue, 4 Aug 2009 14:45:08 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id A55678FC1A; Tue, 4 Aug 2009 14:45:08 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1MYLGI-0006xC-A4; Tue, 04 Aug 2009 18:45:10 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 62728B868; Tue, 4 Aug 2009 18:45:06 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 0227D108842; Tue, 4 Aug 2009 18:44:48 +0400 (MSD) Message-Id: <20090804144448.0227D108842@hades.panopticon> Date: Tue, 4 Aug 2009 18:44:47 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: markus@FreeBSD.org Subject: ports/137429: [PATCH] audio/cdparanoia: fix build on !i386 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2009 14:50:05 -0000 >Number: 137429 >Category: ports >Synopsis: [PATCH] audio/cdparanoia: fix build on !i386 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 04 14:50:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.0-BETA2 i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.0-BETA2 FreeBSD 8.0-BETA2 #0: Fri Jul 31 16:00:15 MSD 2009 >Description: cdparanoia doesn't build on !i386: --- cc -fpic -shared -o libcdda_interface.so.0.9.8 -Wl,-soname -Wl,libcdda_interface.so.0 scan_devices.o common_interface.o cooked_interface.o interface.o scsi_interface.o smallft.o toc.o test_interface.o -lm -lcam /usr/bin/ld: scan_devices.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC scan_devices.o: could not read symbols: Bad value --- (I've just noticed there's -fpic, so maybe it should just be reinplaced to -fPIC). Full log: http://people.freebsd.org/~amdmi3/cdparanoia-3.9.8_8.log Port maintainer (markus@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- cdparanoia-3.9.8_8.patch begins here --- Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/audio/cdparanoia/Makefile,v retrieving revision 1.15 diff -u -u -r1.15 Makefile --- Makefile 20 Mar 2008 09:19:34 -0000 1.15 +++ Makefile 4 Aug 2009 13:59:34 -0000 @@ -22,7 +22,14 @@ MAN1= cdparanoia.1 +.include + +.if ${ARCH} != "i386" +CFLAGS+= -fPIC +CXXFLAGS+= -fPIC +.endif + post-patch: @${REINPLACE_CMD} -e 's/\(^ *default:\)/\1break;/' ${WRKSRC}/interface/utils.h -.include +.include --- cdparanoia-3.9.8_8.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: