tags 385356 patch kthxbye On Wed, Aug 30, 2006 at 19:48:24 +0200, Kurt Roeckx wrote:
> Package: lablgtksourceview > Version: 0.2.0-1 > Severity: serious > > Hi, > > Your package is failing to build with the following error on amd64: [snip] > /usr/bin/ocamlmklib -o lablgtksourceview gtk_sourceview_tags.o > ml_gtk_sourceview.o -Wl,--export-dynamic -lgtksourceview-1.0 -lgtk-x11-2.0 > -lgnomeprint-2-2 -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm > -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr > -lXcursor -lXfixes -lcairo -lX11 -lart_lgpl_2 -lxml2 -lpango-1.0 > -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 > Unknown option -Wl,--export-dynamic > /usr/bin/ld: ml_gtk_sourceview.o: relocation R_X86_64_32 against > `ml_table_source_search_flag' can not be used when making a shared object; > recompile with -fPIC > ml_gtk_sourceview.o: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[1]: *** [liblablgtksourceview.a] Error 2 > > > Note that it is actually using -fPIC, so I have no idea what's really > wrong here. Could it be using some assembler? > Actually -fPIC is used inconsistently. It is part of the compile flags, but not used at link time, which (I think) causes this FTBFS. The attached patch should fix this. By the way, lablgtksourceview is currently a native package; is this intended? Cheers, Julien
diff -ru lablgtksourceview-0.2.0/Makefile lablgtksourceview-mine/Makefile --- lablgtksourceview-0.2.0/Makefile 2006-08-28 17:06:28.000000000 +0200 +++ lablgtksourceview-mine/Makefile 2006-09-02 06:04:02.000000000 +0200 @@ -124,7 +124,7 @@ $(ARCHIVE).cmxa: $(ML_OBJECTS_OPT) $(OCAMLMKLIB) -o $(ARCHIVE) $^ $(GTKSOURCEVIEW_LIBS) lib$(ARCHIVE).a $(DLL): $(C_OBJECTS) - $(OCAMLMKLIB) -o $(ARCHIVE) $^ $(GTKSOURCEVIEW_LIBS) + $(OCAMLMKLIB) -o $(ARCHIVE) -ldopt -fPIC $^ $(GTKSOURCEVIEW_LIBS) # Documentation : #################
signature.asc
Description: Digital signature