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

Bug#264558: ocaml-vorbis: FTBFS on amd64: '-fPIC' missing in CFLAGS



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
 




Reply to: