DirectFB on cygwin(その4)MSG_WAITALL は、 recv, recvfrom, recvmsg の flag の定義。 cygwin の /usr/include/sys/socket.h に上記の関数の定義があるけど、 flag 関連の定数の定義がないな。。。 sys/socket.h が include している cygwin/socket.h に定義発見。 /* Flags we can use with send/ and recv. */ #define MSG_OOB 0x1 /* process out-of-band data */ #define MSG_PEEK 0x2 /* peek at incoming message */ #define MSG_DONTROUTE 0x4 /* send without using routing tables */ #define MSG_WINMASK 0x7 /* flags understood by WinSock calls */ #define MSG_NOSIGNAL 0x20 /* Don't raise SIGPIPE */ #define MSG_TRUNC 0x0100 /* Normal data truncated */ #define MSG_CTRUNC 0x0200 /* Control data truncated */ ああ、やっぱりないのね。。。 lib/direct/stream.c をみてみる。 お?MSG_WAITALLが使われているのは、" #if DIRECT_BUILD_NETWORK " で囲まれている範囲内! configure をみてみると、--enable-network=no とすればよさそうだ。 エラー、あとどれくらいあるんだろう。。。 -k をつけて make してみよう。。。
$ make -k
make all-recursive
make[1]: Entering directory `/cygdrive/c/download/DirectFB-1.0.1'
Making all in data
make[2]: Entering directory `/cygdrive/c/download/DirectFB-1.0.1/data'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/download/DirectFB-1.0.1/data'
Making all in docs
make[2]: Entering directory `/cygdrive/c/download/DirectFB-1.0.1/docs'
Making all in html
…略
make[3]: Entering directory `/cygdrive/c/download/DirectFB-1.0.1/src/misc'
source='conf.c' object='conf.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../../depcomp \
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../.. -I../../lib -I../../include -I../../include -I../../lib -I../../src -DMO
DULEDIR=\"/usr/local/lib/directfb-1.0-0\" -DSOPATH=\"/usr/local/lib/libdirectfb-
1.0.so.1\" -D_REENTRANT -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit
-function-declaration -c -o conf.lo conf.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../include -I../../include -I.
./../lib -I../../src -DMODULEDIR=\"/usr/local/lib/directfb-1.0-0\" -DSOPATH=\"/u
sr/local/lib/libdirectfb-1.0.so.1\" -D_REENTRANT -O3 -ffast-math -pipe -D_GNU_SO
URCE -Werror-implicit-function-declaration -c conf.c -DDLL_EXPORT -DPIC -o .lib
s/conf.o
conf.c: In function `dfb_config_set':
conf.c:1073: error: `ulong' undeclared (first use in this function)
conf.c:1073: error: (Each undeclared identifier is reported only once
conf.c:1073: error: for each function it appears in.)
conf.c:1073: error: parse error before "phys"
conf.c:1075: error: `phys' undeclared (first use in this function)
conf.c:1092: error: parse error before "length"
conf.c:1094: error: `length' undeclared (first use in this function)
conf.c:1111: error: parse error before "phys"
conf.c:1130: error: parse error before "length"
conf.c:1149: error: parse error before "accel"
conf.c:1151: error: `accel' undeclared (first use in this function)
make[3]: *** [conf.lo] Error 1
make[3]: Target `all' not remade because of errors.
…
お、あとひとつ! 今度は ulong がない?とほほ。。。 もうソースを書き換えてしまおう。。。 該当ソースの先頭で、 typedef unsigned long ulong; と定義する。 どうだ。。。 make 通りました!!! $ make install はいったかな? トップページへ |
鮫洲曙町会ホームページ |