Bug#385356: lablgtksourceview: FTBFS: relocation R_X86_64_32 against `ml_table_source_search_flag' can not be used when making a shared object
tags 385356 + pending thanks On Sat, Sep 02, 2006 at 06:11:10AM +0200, Julien Cristau wrote: 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. Tnx for the patch. Actually, the one I applied to the package came from Maxence Guesdon, and consists in letting ocamlc compile all .c files, so that -fPIC is (consistently) used depending on the architecture where the package is being built. By the way, lablgtksourceview is currently a native package; is this intended? Yes. I used to follow the scheme x.y.z-k even for native debian packages. Incrementing only the k component when changes where applied only to the debian packaging, not inducing a new upstream release. Nowadays it seems that the debian packaging tools are more and more discouraging this practice (see the quite new lintian warning); I will eventually quit this practice ..., even I don't think there's anything wrong with that. Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!- signature.asc Description: Digital signature
Processed: Re: Bug#385356: lablgtksourceview: FTBFS: relocation R_X86_64_32 against `ml_table_source_search_flag' can not be used when making a shared object
Processing commands for [EMAIL PROTECTED]: tags 385356 + pending Bug#385356: lablgtksourceview: FTBFS: relocation R_X86_64_32 against `ml_table_source_search_flag' can not be used when making a shared object There were no tags set. Tags added: pending thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#385356: lablgtksourceview: FTBFS: relocation R_X86_64_32 against `ml_table_source_search_flag' can not be used when making a shared object
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/Makefile2006-08-28 17:06:28.0 +0200 +++ lablgtksourceview-mine/Makefile 2006-09-02 06:04:02.0 +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
Bug#385356: lablgtksourceview: FTBFS: relocation R_X86_64_32 against `ml_table_source_search_flag' can not be used when making a shared object
Package: lablgtksourceview Version: 0.2.0-1 Severity: serious Hi, Your package is failing to build with the following error on amd64: gcc -c -I -fPIC -I '/usr/lib/ocaml/3.09.2/lablgtk2' -I `/usr/bin/ocamlc -warn-error FSPUYZ -dtypes -w m -where` -I/usr/include/gtksourceview-1.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libart-2.0 ml_gtk_sourceview.c ml_gtk_sourceview.c: In function 'ml__gtk_source_language_new_from_file': ml_gtk_sourceview.c:261: warning: cast to pointer from integer of different size ml_gtk_sourceview.c: In function 'ml_gtk_source_languages_manager_get_lang_files_dirs': ml_gtk_sourceview.c:275: warning: passing argument 1 of 'Val_GSList' discards qualifiers from pointer target type ml_gtk_sourceview.c: In function 'ml_gtk_source_languages_manager_get_available_languages': ml_gtk_sourceview.c:277: warning: passing argument 1 of 'source_language_list_of_GSList' discards qualifiers from pointer target type ml_gtk_sourceview.c: At top level: /usr/lib/ocaml/3.09.2/lablgtk2/ml_gdk.h:69: warning: array 'ml_table_extension_ events' assumed to have one element /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? Kurt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]