なんか動かなくなった
apache を yum じゃなくてソースからビルドしたりなんだり色々いじってたら php が動かなくなったので再コンパイルしようとしたら以下のエラーが出て make 出来なかった。
In file included from php-5.3.5/ext/fileinfo/libmagic/apprentice.c:34: php-5.3.5/ext/fileinfo/libmagic/file.h:401: error: conflicting types for ‘sys_errlist’ /usr/include/bits/sys_errlist.h:28: error: previous declaration of ‘sys_errlist’ was here In file included from php-5.3.5/ext/fileinfo/libmagic/apprentice.c:34: php-5.3.5/ext/fileinfo/libmagic/file.h:402:1: warning: "strerror" redefined In file included from php-5.3.5/ext/fileinfo/libmagic/file.h:52, from php-5.3.5/ext/fileinfo/libmagic/apprentice.c:34: php-5.3.5/ext/standard/php_string.h:148:1: warning: this is the location of the previous definition make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
コンパイルオプションは以下。
./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-zend-multibyte --enable-mbstring --with-tidy --with-mysql --enable-soap --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-iconv=/usr/local/lib --enable-sockets --enable-gd-native-ttf --enable-gd-jis-conv --with-freetype-dir=/usr/include
libjpeg を再コンパイルしたら make 通るようになった。
./configure --enable-shared