Red Hat Bugzilla – Bug 427639
add sparc support
Last modified: 2010-04-07 12:35:05 EDT
Description of problem:
on fedora/sparc it doesnt compile/work.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
[root@sun SPECS]# uname -a
Linux sun.rdsor.ro 2.6.20-1.2986.al3.3 #1 Mon Mar 26 10:34:05 EDT 2007 sparc
sparc sparc GNU/Linux
rpmbuild -bb hdf.spec --target=sparc
fail to build.
build and pass all make check tests.
Its about sparc port of fedora, leaded by Tom Callaway.
I attached small patch to enable sparc build, on my U10 machine
builded smooth and passed all tests from make check section.
Wold be very nice to add this too.
Created attachment 290898 [details]
patch to enable sparc
Patch added to hdf-4.2r2-5.fc9.
Needed to change:
--- hdf-4.2r2-sparc.patch 7 Jan 2008 21:17:13 -0000 1.1
+++ hdf-4.2r2-sparc.patch 7 Jan 2008 21:35:16 -0000 1.2
@@ -14,7 +14,7 @@
#endif /*Linux PPC */
+/* Linux Sparc32/64 */
-+#if defined __sparc__ || !defined __sparc64__
++#if defined __sparc__ || defined __sparc64__
+If you get an error on this line more than one machine type has been defined.
the changes for this bug dont work. sparc on linux does not define __sparc64__ only solaris defines that
for 64 bit detection you need to use define __sparc__ && defined __arch64__
Currently it seems no attempt at handling sparc 64-bit any differently from 32-bit is made.