Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  4 Aug 2009 18:44:47 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        markus@FreeBSD.org
Subject:   ports/137429: [PATCH] audio/cdparanoia: fix build on !i386
Message-ID:  <20090804144448.0227D108842@hades.panopticon>
Resent-Message-ID: <200908041450.n74Eo4lI006105@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.pre.mk>
+
+.if ${ARCH} != "i386"
+CFLAGS+=	-fPIC
+CXXFLAGS+=	-fPIC
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's/\(^ *default:\)/\1break;/' ${WRKSRC}/interface/utils.h
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- cdparanoia-3.9.8_8.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090804144448.0227D108842>