Date: Fri, 29 May 2009 09:24:53 GMT From: "Alexander V. Chernikov" <melifaro@ipfw.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/135054: comms/gammu amd64 build problems Message-ID: <200905290924.n4T9Orrm059574@www.freebsd.org> Resent-Message-ID: <200905290930.n4T9U2Me019803@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.pre.mk> +.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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905290924.n4T9Orrm059574>