>>691 どうもありがとうございます。リンク先のパッチをあてたところkitutukiはmakeできました。 しかし、 filer.c: In function ‘make_file_stat’: filer.c:2124: 警告: implicit declaration of function ‘S_ISSOCK’ filer.c:2150: 警告: format ‘%3d’ expects type ‘int’, but argument 3 has type ‘__nlink_t ’ make: *** [filer.o] エラー 1 となって、mfilerがmakeできませんでした。まあ、しばらく待つことにします。
mfiler3-3.0.8なんですが、下記のようなエラーが出てビルドできませんでした。 どうしたらいいんでしょう。 gcc -std=c99 -I /include -L /lib -I /include -L /lib -I /include -L /lib -I /usr/local/include -L /usr/local/lib -I . -I/usr/local/include -L/usr/local/lib -O -c -o filer.o filer.c filer.c: In function ‘filer_vd_add2’: filer.c:728: error: ‘S_IFREG’ undeclared (first use in this function) filer.c:728: error: (Each undeclared identifier is reported only once filer.c:728: error: for each function it appears in.) filer.c:731: error: ‘S_IFDIR’ undeclared (first use in this function) filer.c:734: error: ‘S_IFLNK’ undeclared (first use in this function) filer.c:737: error: ‘S_IFSOCK’ undeclared (first use in this function) filer.c: In function ‘sDir_cd’: filer.c:1179: 警告: ignoring return value of ‘chdir’, declared with attribute warn_unused_result filer.c:1217: 警告: ignoring return value of ‘chdir’, declared with attribute warn_unused_result filer.c: In function ‘filer_activate’: filer.c:1394: 警告: ignoring return value of ‘chdir’, declared with attribute warn_unused_result filer.c:1401: 警告: ignoring return value of ‘chdir’, declared with attribute warn_unused_result filer.c:1415: 警告: ignoring return value of ‘chdir’, declared with attribute warn_unused_result filer.c: In function ‘make_size_str’:
filer.c:1885: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c:1910: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c:1936: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c:1962: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c:1992: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c:2017: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c:2044: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c: In function ‘make_size_str2’: filer.c:2080: 警告: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘__off64_t’ filer.c: In function ‘make_file_stat’: filer.c:2124: 警告: implicit declaration of function ‘S_ISSOCK’ filer.c:2150: 警告: format ‘%3d’ expects type ‘int’, but argument 3 has type ‘__nlink_t’ make: *** [filer.o] エラー 1
P.S. 1.0.0、一応ビルド通りましたが… kitutuki本体をビルドする前にlibkitutuki.soをライブラリパスにインストールする必要があるので、パッケージングの際にちょっと不便ですね。 make lib; make; make lib-install; make installでいけるようにパッチを書きましたので貼っておきます。 pastebin.com/zZZ2vXLP