[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gfarm-discuss-ja:00270] [gfarm-discuss-ja:00269] Re: solaris10上でのgfarm-1.2.9のコンパイル



曽田 様

ありがとうございます。
少し先に進みましたが、今度はこんな感じのエラーでした。

# たびたびお手数をおかけして申し訳ありません。

大木@理研GSC

--
gmake[3]: Leaving directory `/opt/gfarm-1.2.9/lib/gfs_hook/sysdep/ default'
/bin/sh ../../libtool --mode=compile gcc -g -O2 -Wall -I. -I../../ lib/libgfarm/gfutil -I../../lib/libgfarm/gfarm -I../../include - I../../include -c ./hooks.c
gcc -g -O2 -Wall -I. -I../../lib/libgfarm/gfutil -I../../lib/libgfarm/ gfarm -I../../include -I../../include -c ./hooks.c -fPIC -DPIC - o .libs/hooks.o
gcc -g -O2 -Wall -I. -I../../lib/libgfarm/gfutil -I../../lib/libgfarm/ gfarm -I../../include -I../../include -c ./hooks.c -o hooks.o >/dev/ null 2>&1
/bin/sh ../../libtool --mode=compile gcc -g -O2 -Wall -I. -I../../ lib/libgfarm/gfutil -I../../lib/libgfarm/gfarm -I../../include - I../../include -D_LARGEFILE64_SOURCE `getconf LFS64_CFLAGS` -o hooks_64.lo -c ./hooks_64.c
gcc -g -O2 -Wall -I. -I../../lib/libgfarm/gfutil -I../../lib/libgfarm/ gfarm -I../../include -I../../include -D_LARGEFILE64_SOURCE - D_LARGEFILE64_SOURCE -c ./hooks_64.c -fPIC -DPIC -o .libs/hooks_64.o
./hooks_64.c: In function `gfs_hook_syscall_xstat64':
./hooks_64.c:188: error: `_STAT64_VER' undeclared (first use in this function)
./hooks_64.c:188: error: (Each undeclared identifier is reported only once
./hooks_64.c:188: error: for each function it appears in.)
./hooks_64.c:188: warning: passing arg 3 of `gfs_hook_syscall_xstat' from incompatible pointer type
./hooks_64.c:188: error: too many arguments to function `gfs_hook_syscall_xstat'
./hooks_64.c: In function `gfs_hook_syscall_lxstat64':
./hooks_64.c:198: error: `_STAT64_VER' undeclared (first use in this function)
./hooks_64.c:198: warning: passing arg 3 of `gfs_hook_syscall_lxstat' from incompatible pointer type
./hooks_64.c:198: error: too many arguments to function `gfs_hook_syscall_lxstat'
./hooks_64.c: In function `gfs_hook_syscall_fxstat64':
./hooks_64.c:208: error: `_STAT64_VER' undeclared (first use in this function)
./hooks_64.c:208: warning: passing arg 3 of `gfs_hook_syscall_fxstat' makes pointer from integer without a cast
./hooks_64.c:208: error: too many arguments to function `gfs_hook_syscall_fxstat'
gmake[2]: *** [hooks_64.lo] Error 1
gmake[2]: Leaving directory `/opt/gfarm-1.2.9/lib/gfs_hook'
gmake[1]: *** [subdir-all] Error 1
gmake[1]: Leaving directory `/opt/gfarm-1.2.9/lib'
gmake: *** [subdir-all] Error 1



On 2006/03/06, at 15:12, SODA Noriyuki wrote:

> こちらに Solaris 10/x86 の環境がないため、実際にコンパイ > ルして
> 確認してないのですが、lib/gfs_hook/hooks.c に対して、下 > 記のパッチを
> 当てるとどうなるでしょうか?
>
> ------------------------------ ここから > ------------------------------
> Index: hooks.c
> ===================================================================
> RCS file: /grid/cvsroot/gfarm/lib/gfs_hook/hooks.c,v
> retrieving revision 1.103
> diff -c -r1.103 hooks.c
> *** hooks.c 22 Nov 2005 07:15:24 -0000 1.103
> --- hooks.c 6 Mar 2006 06:10:59 -0000
> ***************
> *** 1756,1762 ****
> --- 1756,1766 ----
> #endif /* __linux__ */
>
> int
> + #if defined(sun) && (defined(__svr4__) || defined(__SVR4))
> + __xmknod(const int ver, const char *path, mode_t mode, dev_t dev)
> + #else
> __xmknod(int ver, const char *path, mode_t mode, dev_t *dev)
> + #endif
> {
> const char *e;
> char *url;
> ***************
> *** 1814,1820 ****
> --- 1818,1828 ----
> }
>
> int
> + #if defined(sun) && (defined(__svr4__) || defined(__SVR4))
> + _xmknod(const int ver, const char *path, mode_t mode, dev_t dev)
> + #else
> _xmknod(int ver, const char *path, mode_t mode, dev_t *dev)
> + #endif
> {
> _gfs_hook_debug_v(gflog_info("Hooking _xmknod"));
> return (__xmknod(ver, path, mode, dev));
> ------------------------------ ここまで > ------------------------------
> --
> <soda@xxxxxxxxx> (株)SRA ReSIC中部システムサービス > 部 曽田哲之 (SODA Noriyuki)