[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#264558: marked as done (ocaml-vorbis: FTBFS on amd64: '-fPIC' missing in CFLAGS)



Your message dated Mon, 9 Aug 2004 14:59:12 +0200
with message-id <20040809145912.47774383@babasse>
and subject line Bug#264558: ocaml-vorbis: FTBFS on amd64: '-fPIC' missing in CFLAGS
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Aug 2004 12:15:36 +0000
>From aj@andaco.de Mon Aug 09 05:15:36 2004
Return-path: <aj@andaco.de>
Received: from c156167.adsl.hansenet.de (localhost) [213.39.156.167] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bu93v-0006MY-00; Mon, 09 Aug 2004 05:15:35 -0700
Received: from aj by localhost with local (Exim 4.34)
	id 1Bu93t-0000kp-Fi; Mon, 09 Aug 2004 14:15:33 +0200
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: ocaml-vorbis: FTBFS on amd64: '-fPIC' missing in CFLAGS
Message-Id: <[🔎] E1Bu93t-0000kp-Fi@localhost>
Date: Mon, 09 Aug 2004 14:15:33 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: ocaml-vorbis
Severity: normal
Tags: patch

When building 'ocaml-vorbis' on amd64 I get the following error:

cc -shared         \
			-o dllvorbis_stubs.so  charset.o utf8.o vorbis_stubs.o -lvorbis -lvorbisenc -lvorbisfile
/usr/bin/ld: charset.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
charset.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [dllvorbis_stubs.so] Error 1
make[3]: Leaving directory `/ocaml-vorbis-0.1.1/src'

With the attached patch 'ocaml-vorbis' can be compiled on amd64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/ocaml-vorbis-0.1.1/src/Makefile.in ./src/Makefile.in
--- ../tmp-orig/ocaml-vorbis-0.1.1/src/Makefile.in	2004-06-30 01:22:16.000000000 +0200
+++ ./src/Makefile.in	2004-08-09 14:08:17.307092225 +0200
@@ -31,7 +31,7 @@
 LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so)
 LIBS = unix str
 CLIBS = vorbis vorbisenc vorbisfile
-CFLAGS = -g -O2
+CFLAGS = -fPIC -g -O2
 OCAMLBCFLAGS = -g
 OCAMLBLDFLAGS = -g
 

---------------------------------------
Received: (at 264558-done) by bugs.debian.org; 9 Aug 2004 12:59:16 +0000
>From samuel.mimram@ens-lyon.fr Mon Aug 09 05:59:16 2004
Return-path: <samuel.mimram@ens-lyon.fr>
Received: from babasse.csbnet.se (smimou.is-a-geek.org) [193.11.251.151] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bu9kC-0002VF-00; Mon, 09 Aug 2004 05:59:16 -0700
Received: from babasse (localhost [127.0.0.1])
	by smimou.is-a-geek.org (Postfix) with ESMTP id C60B2B1499;
	Mon,  9 Aug 2004 14:59:13 +0200 (CEST)
Date: Mon, 9 Aug 2004 14:59:12 +0200
From: Samuel Mimram <samuel.mimram@ens-lyon.fr>
To: Andreas Jochens <aj@andaco.de>, 264558-done@bugs.debian.org
Cc: Julien Cristau <julien.cristau@ens-lyon.fr>
Subject: Re: Bug#264558: ocaml-vorbis: FTBFS on amd64: '-fPIC' missing in
 CFLAGS
Message-Id: <20040809145912.47774383@babasse>
In-Reply-To: <[🔎] E1Bu93t-0000kp-Fi@localhost>
References: <[🔎] E1Bu93t-0000kp-Fi@localhost>
X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature";
 micalg="pgp-sha1";
 boundary="Signature=_Mon__9_Aug_2004_14_59_12_+0200_OOcXDfghTDb4FKQ/"
Delivered-To: 264558-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

--Signature=_Mon__9_Aug_2004_14_59_12_+0200_OOcXDfghTDb4FKQ/
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hello,

Thanks for reporting this. I had already noticed it and it should be
fixed in the -2 which was already uploaded. Upstream is also aware of
that and it should be corrected in the next release. Therefore I close
this bug.

Cheers,

Samuel.


On Mon, 09 Aug 2004 14:15:33 +0200 Andreas Jochens <aj@andaco.de> wrote:

> Package: ocaml-vorbis
> Severity: normal
> Tags: patch
> 
> When building 'ocaml-vorbis' on amd64 I get the following error:
> 
> cc -shared         \
> 			-o dllvorbis_stubs.so  charset.o utf8.o vorbis_stubs.o
> 			-lvorbis -lvorbisenc -lvorbisfile
> /usr/bin/ld: charset.o: relocation R_X86_64_32S can not be used when
> making a shared object; recompile with -fPIC charset.o: could not read
> symbols: Bad value collect2: ld returned 1 exit status
> make[3]: *** [dllvorbis_stubs.so] Error 1
> make[3]: Leaving directory `/ocaml-vorbis-0.1.1/src'
> 
> With the attached patch 'ocaml-vorbis' can be compiled on amd64.
> 
> Regards
> Andreas Jochens
> 
> diff -urN ../tmp-orig/ocaml-vorbis-0.1.1/src/Makefile.in
> ./src/Makefile.in--- ../tmp-orig/ocaml-vorbis-0.1.1/src/Makefile.in	2004-06-30 01:22:16.000000000 +0200
> +++ ./src/Makefile.in	2004-08-09 14:08:17.307092225 +0200
> @@ -31,7 +31,7 @@
>  LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so)
>  LIBS = unix str
>  CLIBS = vorbis vorbisenc vorbisfile
> -CFLAGS = -g -O2
> +CFLAGS = -fPIC -g -O2
>  OCAMLBCFLAGS = -g
>  OCAMLBLDFLAGS = -g
>  
> 


--Signature=_Mon__9_Aug_2004_14_59_12_+0200_OOcXDfghTDb4FKQ/
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBF3UhIae1O4AJae8RAiX4AJ9ebiQq930l68zMQ2l/JcocaoGAFgCdFA0i
5FZhIulahf9e+dr6XPLa5N4=
=DFzh
-----END PGP SIGNATURE-----

--Signature=_Mon__9_Aug_2004_14_59_12_+0200_OOcXDfghTDb4FKQ/--



Reply to: