Strawberry PerlのCPANでDBIx::Classをインストールしてたら以下のようなエラーが出た。
cp lib/JSON/DWIW.pm blib\lib\JSON/DWIW.pm
gcc -Ilibjsonevt -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.29\" -DXS_VERSION=\"0.29\" -o libjsonevt\make_config libjsonevt\make_config.c
libjsonevt\make_config.c:6:22: sys/wait.h: No such file or directory
libjsonevt\make_config.c: In function `do_system_with_redirect':
libjsonevt\make_config.c:42: error: `F_DUPFD' undeclared (first use in this function)
libjsonevt\make_config.c:42: error: (Each undeclared identifier is reported only once
libjsonevt\make_config.c:42: error: for each function it appears in.)
libjsonevt\make_config.c:50: warning: passing arg 2 of `execvp' from incompatible pointer type
dmake.EXE: Error code 129, while making 'libjsonevt\make_config'
DOWENS/JSON-DWIW-0.29.tar.gz
C:\strawberry\c\bin\dmake.EXE -- NOT OK
DBIx::Classが依存しているJSON::DWIWでsys/wait.hというヘッダファイルが必要みたいだが、どうやら存在しないらしい。
Strawberry Perlにはppmも入っていたのでppmからインストールを試したら、すんなりインストールできた。
まだDB自体を構築してないので動作検証コードは書いてないけど多分大丈夫でしょう。