xfs
[Top] [All Lists]

Re: TAKE - sparc build

To: linux-xfs@xxxxxxxxxxx
Subject: Re: TAKE - sparc build
From: Thomas Graichen <news-innominate.list.sgi.xfs@xxxxxxxxxxxxx>
Date: 10 Nov 2000 21:20:15 GMT
Distribution: local
Organization: innominate AG, Berlin, Germany
References: <200011101345.AAA82830@snort.melbourne.sgi.com>
Reply-to: Thomas Graichen <graichen@xxxxxxxxxxxxx>
Reply-to: thomas.graichen@xxxxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.4.0-XFS-test10 (i586))
this one also was one of the compile problems i saw on the alpha - which
is fixed now - i there also get:

gcc -D__KERNEL__ -I/usr/src/xfs/linux/include -Wall -Wstrict-prototypes -O2 
-fno-strict-aliasing -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 
-mcpu=ev56 -Wa,-mev6 -DMODULE -g3 -Wno-unused  -Wno-parentheses 
-Wno-uninitialized -I. -funsigned-char  -Wno-unknown-pragmas -DDEBUG -DXFSDEBUG 
 -c -o xfs_error.o xfs_error.c
xfs_error.c:169: conflicting types for `xfs_errortag_clearall_umount'
xfs_error.h:123: previous declaration of `xfs_errortag_clearall_umount'
xfs_error.c:233: conflicting types for `xfs_cmn_err'
xfs_error.h:141: previous declaration of `xfs_cmn_err'

which i fixed with

diff -u -r1.17 xfs_error.h
--- xfs_error.h 2000/11/10 13:42:26     1.17
+++ xfs_error.h 2000/11/10 21:14:25
@@ -119,7 +119,7 @@
 int            xfs_errortag_clear(int error_tag, int fd);
 
 int            xfs_errortag_clearall(int fd);
-int            xfs_errortag_clearall_umount(__int64_t fsid, char *fsname,
+int            xfs_errortag_clearall_umount(int64_t fsid, char *fsname,
                                                int loud);
 #else
 #define XFS_TEST_ERROR(expr, mp, tag, rf)      (expr)
@@ -137,7 +137,7 @@
 
 struct xfs_mount;
 /* PRINTFLIKE4 */
-void           xfs_cmn_err(__uint64_t panic_tag, int level, struct xfs_mount 
*mp,
+void           xfs_cmn_err(uint64_t panic_tag, int level, struct xfs_mount 
*mp,                            char *fmt, ...);
 /* PRINTFLIKE3 */
 void           xfs_fs_cmn_err(int level, struct xfs_mount *mp, char *fmt, ...);

... which i hope is the right way around ... XFS now also builds again
on the alpha - will try how well it works on monday then i'm at work
again

will go to bed now ... maybe someone here has an idea about the
following on the alpha then building the tools at just looking
at the messages ...?

=== libattr ===
gcc -g -DDEBUG -funsigned-char -Wall -Wno-parentheses  '-DVERSION="1.0.6-0"' 
-I../include -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DXFS_BIG_FILES=1 
-DXFS_BIG_FILESYSTEMS=1   -c -o attr.o attr.c
attr.c: In function `_attr_get':
attr.c:79: warning: type mismatch in implicit declaration for built-in function 
`memset'
attr.c: At top level:
attr.c:279: parse error before `_attrctl'
attr.c:279: warning: type defaults to `int' in declaration of `_syscall4'
attr.c: In function `attrctl':
attr.c:284: warning: implicit declaration of function `_attrctl'
attr.c: At top level:
attr.c:279: warning: `_syscall4' declared `static' but never defined
make[1]: *** [attr.o] Error 1
make: *** [default] Error 2
root@cyan:/usr/src/xfs/cmd/xfs#

t

Nathan Scott <nathans@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> This should fix the build problem, Kris.

>>From a look through the headers, it seems that for some architectures,
> __uint64_t != uint64_t (one is a u long long, the other is just a u long).
> we were declaring xfs_panic_mask both ways.  now we just use the one that
> equates to __u64 on all architectures (uint64_t).

> cheers.


> Modid:  2.4.x-xfs:slinx:78005a
> Date:  Fri Nov 10 05:42:26 PST 2000
> Workarea:  snort:/build4/nathans/linux-xfs
> Author:  nathans

> The following file(s) were checked into:
>   bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs

> linux/fs/xfs/xfs.h - 1.9
>       - move include of globals.h above errors.h

> linux/fs/xfs/xfs_error.h - 1.17
>       - remove extern of xfs_panic_mask so there is only one.


-- 
thomas.graichen@xxxxxxxxxxxxxx
technical director                                       innominate AG
clustering & security                             the linux architects
tel: +49-30-308806-13   fax: -77             http://www.innominate.com

<Prev in Thread] Current Thread [Next in Thread>