[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gfarm-discuss-ja:00269] Re: Re: [gfarm-discuss-ja:00267] Re: Re: [gfarm-discuss-ja:00265] Re: solaris10上でのgfarm-1.2.9のコンパイル
- From: SODA Noriyuki <soda@xxxxxxxxx>
- Date: Mon, 6 Mar 2006 15:12:34 +0900
>>>>> On Mon, 6 Mar 2006 14:55:19 +0900, Shingo OHKI <ohki@xxxxxxxxxxxx> said:
> 今度は、以下のエラーになりました。
> 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
> ./hooks.c:1818: error: conflicting types for '_xmknod'
> /usr/include/sys/stat_impl.h:67: error: previous declaration of
> '_xmknod' was here
> ./hooks.c:1818: error: conflicting types for '_xmknod'
> /usr/include/sys/stat_impl.h:67: error: previous declaration of
> '_xmknod' was here
こちらに 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)