ghex 64bit build errors.
Thorsten Leemhuis
fedora at leemhuis.info
Mon Dec 27 15:25:56 UTC 2004
Am Samstag, den 25.12.2004, 20:31 +0100 schrieb Thorsten Leemhuis:
> Am Mittwoch, den 22.12.2004, 16:03 -0500 schrieb seth vidal:
> > Building ghex for 64bit I get the following error:
> >
> > gcc -O2 -g -pipe -m64 -o .libs/ghex2 hex-document-ui.o preferences.o
> > findreplace.o converter.o config.o main.o ui.o chartable.o session.o
> > print.o ghex-window.o gnome-print-font-dialog.o gnome-print-font-
> > picker.o factory.o hex-dialog.o -Wl,--export-dynamic -pthread
> > -L/usr/X11R6/lib64 -lgnomeui-2 -lSM -lICE -lbonoboui-2
> > -lgnome-2 /usr/lib/libpopt.so -lbonobo-2 -lgconf-2 -lgnomevfs-2
> > -lbonobo-activation -lORBit-2 -lgthread-2.0 -lgnomeprintui-2-2
> > -lgnomeprint-2-2 -lgnomecanvas-2 -lxml2 -lpthread -lz -lart_lgpl_2
> > -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
> > -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0
> > -ldl -lglib-2.0 ./.libs/libgtkhex.so -Wl,--rpath
> > -Wl,/usr/lib64/usr/lib/libpopt.so: could not read symbols: File in wrong
> > format
> > collect2: ld returned 1 exit status
> > make[3]: *** [ghex2] Error 1
> > make[3]: Leaving directory
> > `/rpmbuild/extras/cvs/rpms/ghex/devel/ghex-2.8.0/src'make[2]: *** [all-
> > recursive] Error 1
> > make[2]: Leaving directory
> > `/rpmbuild/extras/cvs/rpms/ghex/devel/ghex-2.8.0'
> > make[1]: *** [all-recursive-am] Error 2
> > make[1]: Leaving directory
> > `/rpmbuild/extras/cvs/rpms/ghex/devel/ghex-2.8.0'
> > error: Bad exit status from /var/tmp/rpm-tmp.11654 (%build)
> >
> Will try to look deeper into it and create a patch on monday that fixed
> this. I can also update it to 2.8.1 while at it.
Was harder then I thought -- result is here:
http://www.leemhuis.info/files/fedorarpms/SRPMS.fdr/ghex-2.8.1-1.src.rpm
Works fine on i386 and x86_64; Diff below; I'm not sure if there is a
better way to fix but I found none...
HTH
CU
thl
--- ghex-2.8.0-3/ghex-2.8.0-no-scrollkeeper2.patch 1970-01-01 01:00:00.000000000 +0100
+++ ghex-2.8.1-1/ghex-2.8.0-no-scrollkeeper2.patch 2004-12-27 15:58:53.000000000 +0100
@@ -0,0 +1,14 @@
+--- omf-install/Makefile.am.old 2004-12-27 15:58:12.259054552 +0100
++++ omf-install/Makefile.am 2004-12-27 15:58:23.614328288 +0100
+@@ -5,11 +5,9 @@
+ -for file in $(srcdir)/*.omf; do \
+ $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(omf_dest_dir); \
+ done
+- -scrollkeeper-update -p $(localstatedir)/scrollkeeper
+
+ uninstall-local:
+ -for file in $(srcdir)/*.omf; do \
+ basefile=`basename $$file`; \
+ rm -f $(omf_dest_dir)/$$basefile; \
+ done
+- -scrollkeeper-update -p $(localstatedir)/scrollkeeper
diff -r -Nu ghex-2.8.0-3/ghex-2.8.0-no-scrollkeeper.patch ghex-2.8.1-1/ghex-2.8.0-no-scrollkeeper.patch
--- ghex-2.8.0-3/ghex-2.8.0-no-scrollkeeper.patch 2004-11-10 19:08:49.000000000 +0100
+++ ghex-2.8.1-1/ghex-2.8.0-no-scrollkeeper.patch 1970-01-01 01:00:00.000000000 +0100
@@ -1,20 +0,0 @@
-diff -Nur ghex-2.8.0-orig/omf-install/Makefile.in ghex-2.8.0/omf-install/Makefile.in
---- ghex-2.8.0-orig/omf-install/Makefile.in 2004-10-11 21:43:42.000000000 +0200
-+++ ghex-2.8.0/omf-install/Makefile.in 2004-11-10 18:58:47.513392008 +0100
-@@ -247,14 +247,14 @@
- -for file in $(srcdir)/*.omf; do \
- $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(omf_dest_dir); \
- done
-- -scrollkeeper-update -p $(localstatedir)/scrollkeeper
-+# -scrollkeeper-update -p $(localstatedir)/scrollkeeper
-
- uninstall-local:
- -for file in $(srcdir)/*.omf; do \
- basefile=`basename $$file`; \
- rm -f $(omf_dest_dir)/$$basefile; \
- done
-- -scrollkeeper-update -p $(localstatedir)/scrollkeeper
-+# -scrollkeeper-update -p $(localstatedir)/scrollkeeper
-
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
Binärdateien ghex-2.8.0-3/ghex-2.8.0.tar.bz2 and ghex-2.8.1-1/ghex-2.8.0.tar.bz2 sind verschieden.
Binärdateien ghex-2.8.0-3/ghex-2.8.1.tar.bz2 and ghex-2.8.1-1/ghex-2.8.1.tar.bz2 sind verschieden.
diff -r -Nu ghex-2.8.0-3/ghex.spec ghex-2.8.1-1/ghex.spec
--- ghex-2.8.0-3/ghex.spec 2004-12-24 13:10:45.000000000 +0100
+++ ghex-2.8.1-1/ghex.spec 2004-12-27 16:22:42.000000000 +0100
@@ -1,13 +1,13 @@
Name: ghex
-Version: 2.8.0
-Release: 3
+Version: 2.8.1
+Release: 1
Summary: A binary editor for GNOME
Group: Applications/Editors
License: GPL
URL: http://www.gnome.org/softwaremap/projects/ghex
-Source0: http://ftp.gnome.org/pub/GNOME/sources/ghex/2.8/ghex-2.8.0.tar.bz2
-Patch: ghex-2.8.0-no-scrollkeeper.patch
+Source0: http://ftp.gnome.org/pub/GNOME/sources/ghex/2.8/ghex-2.8.1.tar.bz2
+Patch0: ghex-2.8.0-no-scrollkeeper2.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libgnomeui-devel
@@ -16,6 +16,8 @@
BuildRequires: gettext
BuildRequires: desktop-file-utils
BuildRequires: scrollkeeper
+BuildRequires: intltool
+BuildRequires: libtool
Requires(post): GConf2
Requires(post): scrollkeeper
Requires(post): /sbin/ldconfig
@@ -41,8 +43,14 @@
%prep
%setup -q
-%patch -p1 -b .noscrollkeeper
-
+%patch0 -b .noscrollkeeper
+# recreate autoconf & co; fixed build issues on x86_64
+rm missing
+intltoolize --force
+libtoolize --force
+aclocal
+autoconf
+automake -a
%build
%configure
@@ -108,6 +116,10 @@
%changelog
+* Mon Dec 27 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.8.1-1
+- Update to 2.8.1
+- recreate autoconf & co data during pre; fixes build issues on x86_64
+
* Tue Dec 21 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.8.0-3
- Ran into the incomplete-removal-of-epoch trap. Fixed that.
--
Thorsten Leemhuis <fedora at leemhuis.info>
More information about the fedora-extras-list
mailing list