2008年4月30日の日記の1番目の記事へのコメント
■Mercurial入れてみた
今更ですが,T60にも入れてみました.ビルドするところで下記のエラーが出たので・・・
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPI C -I/usr/local/include/python2.5 -c hgext/inotify/linux/_inotify.c -o build/temp .linux-i686-2.5/hgext/inotify/linux/_inotify.o hgext/inotify/linux/_inotify.c:172: error: 'IN_ONLYDIR' undeclared here (not in a function) hgext/inotify/linux/_inotify.c:173: error: 'IN_DONT_FOLLOW' undeclared here (not in a function) hgext/inotify/linux/_inotify.c:174: error: 'IN_MASK_ADD' undeclared here (not in a function) hgext/inotify/linux/_inotify.c: In function 'define_consts': hgext/inotify/linux/_inotify.c:266: 警告: passing argument 3 of 'define_const' m akes integer from pointer without a cast hgext/inotify/linux/_inotify.c:267: 警告: passing argument 3 of 'define_const' m akes integer from pointer without a cast hgext/inotify/linux/_inotify.c:268: 警告: passing argument 3 of 'define_const' m akes integer from pointer without a cast error: command 'gcc' failed with exit status 1
hgext/inotify/linux/_inotify.c に以下を加えて適当に逃げ.本当は sys/inotify.h の代わりに linux/inotify.h をincludeした方がいいのかな?
#define IN_ONLYDIR 0x01000000 #define IN_DONT_FOLLOW 0x02000000 #define IN_MASK_ADD 0x20000000 #define IN_ISDIR 0x40000000 #define IN_ONESHOT 0x80000000
2008年4月30日の日記の1番目の記事へのコメント
[コメントを書く]