From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 29 09:30:02 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 6F0A4106566B for ; Fri, 29 May 2009 09:30:02 +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 49D248FC1C for ; Fri, 29 May 2009 09:30:02 +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 n4T9U2OT019806 for ; Fri, 29 May 2009 09:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4T9U2Me019803; Fri, 29 May 2009 09:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 29 May 2009 09:30:02 GMT Resent-Message-Id: <200905290930.n4T9U2Me019803@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, "Alexander V. Chernikov" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67560106564A for ; Fri, 29 May 2009 09:24:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 561868FC0C for ; Fri, 29 May 2009 09:24:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4T9OrZ5059588 for ; Fri, 29 May 2009 09:24:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4T9Orrm059574; Fri, 29 May 2009 09:24:53 GMT (envelope-from nobody) Message-Id: <200905290924.n4T9Orrm059574@www.freebsd.org> Date: Fri, 29 May 2009 09:24:53 GMT From: "Alexander V. Chernikov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/135054: comms/gammu amd64 build problems 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: Fri, 29 May 2009 09:30:02 -0000 >Number: 135054 >Category: ports >Synopsis: comms/gammu amd64 build problems >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 29 09:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexander V. Chernikov >Release: FreeBSD 7.2-RELEASE >Organization: JSC Astel Telecom >Environment: FreeBSD office-gw.runext.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: gammu doestn't compile on amd64 [100%] Building C object python/gammu/CMakeFiles/python_gammu.dir/src/convertors/wap.o Linking C shared module _gammu.so /usr/bin/ld: ../../helper/libstring.a(string.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC ./../helper/libstring.a: could not read symbols: Bad value >How-To-Repeat: >Fix: Apply patch Patch attached with submission follows: diff -urN gammu/Makefile gammu.new/Makefile --- gammu/Makefile 2009-04-25 23:10:43.000000000 +0000 +++ gammu.new/Makefile 2009-05-29 08:45:19.000000000 +0000 @@ -43,6 +43,10 @@ .include +.if ${ARCH} == "amd64" +EXTRA_PATCHES+= ${FILESDIR}/helper-amd64 +.endif + post-patch: @${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config .if ${OSVERSION} < 700042 diff -urN gammu/files/helper-amd64 gammu.new/files/helper-amd64 --- gammu/files/helper-amd64 1970-01-01 00:00:00.000000000 +0000 +++ gammu.new/files/helper-amd64 2009-05-25 19:37:50.000000000 +0000 @@ -0,0 +1,10 @@ +--- helper/CMakeLists.txt 2009-05-25 19:32:54.000000000 +0000 ++++ helper/CMakeLists.txt.orig 2009-05-25 19:32:40.000000000 +0000 +@@ -10,6 +10,7 @@ + "${Gammu_BINARY_DIR}/include" + ) + ++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") + add_library(string STATIC string.c) + + add_library (printing STATIC printing.c) >Release-Note: >Audit-Trail: >Unformatted: