From: Yury Umanets <umka@namesys.com>
To: cazort@cazort.net
Cc: reiserfs-list@namesys.com, Vitaly Fertman <vitaly@namesys.com>
Subject: Re: reiserfsprogs compilation on PPC
Date: Thu, 30 Jan 2003 16:48:35 +0300 [thread overview]
Message-ID: <3E392D33.1010701@namesys.com> (raw)
In-Reply-To: <3E3891F3.BBBEE09C@cazort.net>
[-- Attachment #1: Type: text/plain, Size: 2886 bytes --]
Alexander Cazort Zorach wrote:
>Hello.
>
>The error messages are abundant, but seem to be all very similar to these:
>
>journal.c:657: undefined reference to `swab32'
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:657:
>relocation truncated to fit: R_PPC_REL24 swab32
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:658:
>undefined reference to `set_bit'
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:658:
>relocation truncated to fit: R_PPC_REL24 set_bit
>../reiserfscore/libcore.a(journal.o): In function `replay_journal':
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:680:
>undefined reference to `swab32'
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:680:
>relocation truncated to fit: R_PPC_REL24 swab32
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:681:
>undefined reference to `swab32'
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:681:
>relocation truncated to fit: R_PPC_REL24 swab32
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:682:
>undefined reference to `swab32'
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:682:
>relocation truncated to fit: R_PPC_REL24 swab32
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:714:
>undefined reference to `set_bit'
>/home/cazort/packages/reiserfsprogs-3.6.4/reiserfscore/journal.c:714:
>relocation truncated to fit: R_PPC_REL24 set_bit
>collect2: ld returned 1 exit status
>make[1]: *** [reiserfsck] Error 1
>make[1]: Leaving directory `/home/cazort/packages/reiserfsprogs-3.6.4/fsck'
>make: *** [all-recursive] Error 1
>
>I don't get any of these when I use 3.6.3.
>
>Alex
>
>Yury Umanets wrote:
>
>
>>Hans Reiser wrote:
>>
>>
>>
>>>cazort@cazort.net wrote:
>>>
>>>
>>>
>>>>Hello.
>>>>I just have a short note that you might want to include on your
>>>>webpage for those PPC users out there.
>>>>===
>>>>I was unable to get reiserfsprogs-3.6.4 to compile on my PPC system.
>>>>However, I found a discussion thread on google in which
>>>>jbalinc@insight.rr.com suggested that 3.6.3 compiles fine, and I
>>>>found this old version elsewhere and was able to successfully
>>>>compile it. You could either note this, or ideally fix the problem
>>>>(I was unable to do so myself, but I'm not an expert programmer or
>>>>anything).
>>>>===
>>>>Thanks for creating such a great filesystem! Alex Zorach
>>>>-------------------------------------------------
>>>>This mail sent through IMP: http://horde.org/imp/
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>Umka, please engage in that discussion, inform them that we will fix
>>>it, and then fix it after you find out what the bug is.
>>>
>>>
>>>
>>Hello Alex,
>>
>>Can you specify the message gcc said?
>>
>>
>
>
>
>
This is more reliable patch. See attachment please.
[-- Attachment #2: reiserfsprogs-3.6.4-be1.patch --]
[-- Type: text/plain, Size: 2031 bytes --]
diff -rupN ./reiserfsprogs-3.6.4-orig/include/misc.h ./reiserfsprogs-3.6.4/include/misc.h
--- ./reiserfsprogs-3.6.4-orig/include/misc.h Fri Sep 13 14:09:28 2002
+++ ./reiserfsprogs-3.6.4/include/misc.h Thu Jan 30 16:38:20 2003
@@ -64,12 +64,12 @@ int le_find_next_zero_bit (const void *v
# define le64_to_cpu(val) (val)
#elif __BYTE_ORDER == __BIG_ENDIAN
-# define cpu_to_le16(val) swab16(val)
-# define le16_to_cpu(val) swab16(val)
-# define cpu_to_le32(val) swab32(val)
-# define le32_to_cpu(val) swab32(val)
-# define cpu_to_le64(val) swab64(val)
-# define le64_to_cpu(val) swab64(val)
+# define cpu_to_le16(val) __swab16(val)
+# define le16_to_cpu(val) __swab16(val)
+# define cpu_to_le32(val) __swab32(val)
+# define le32_to_cpu(val) __swab32(val)
+# define cpu_to_le64(val) __swab64(val)
+# define le64_to_cpu(val) __swab64(val)
#else
# error "nuxi/pdp-endian archs are not supported"
#endif
diff -rupN ./reiserfsprogs-3.6.4-orig/include/swab.h ./reiserfsprogs-3.6.4/include/swab.h
--- ./reiserfsprogs-3.6.4-orig/include/swab.h Wed Aug 7 13:12:07 2002
+++ ./reiserfsprogs-3.6.4/include/swab.h Thu Jan 30 16:39:21 2003
@@ -4,5 +4,19 @@
#ifndef _REISERFS_SWAB_H_
#define _REISERFS_SWAB_H_
+#include <endian.h>
+
+#if __BYTE_ORDER == __BIG_ENDIAN
+
+#define extern static
+#define __BYTEORDER_HAS_U64__
#include <linux/byteorder/swab.h>
+#undef extern
+
+#else
+
+#include <linux/byteorder/swab.h>
+
+#endif
+
#endif /* _REISERFS_SWAB_H_ */
diff -rupN ./reiserfsprogs-3.6.4-orig/reiserfscore/includes.h ./reiserfsprogs-3.6.4/reiserfscore/includes.h
--- ./reiserfsprogs-3.6.4-orig/reiserfscore/includes.h Fri Aug 16 15:07:11 2002
+++ ./reiserfsprogs-3.6.4/reiserfscore/includes.h Thu Jan 30 16:38:20 2003
@@ -18,3 +18,5 @@
#include "io.h"
#include "misc.h"
#include "reiserfs_lib.h"
+#include "swab.h"
+
prev parent reply other threads:[~2003-01-30 13:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1043546126.3e33400e786b1@webmail.cazort.net>
[not found] ` <3E37B8F6.9020607@namesys.com>
[not found] ` <3E37C7D4.5030906@namesys.com>
[not found] ` <3E3891F3.BBBEE09C@cazort.net>
2003-01-30 13:24 ` reiserfsprogs compilation on PPC Yury Umanets
2003-01-30 13:48 ` Yury Umanets [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E392D33.1010701@namesys.com \
--to=umka@namesys.com \
--cc=cazort@cazort.net \
--cc=reiserfs-list@namesys.com \
--cc=vitaly@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.