
| ・ |
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。
|
| ご利用の皆様から多く寄せられる質問にお答えしています。 |
|
| ・ |
ディーエーオフィスなどが利用する用語に関する解説を行います。
|
|
|
 |
 |  |
phpのmakeでdns.cに関する不具合が表示されますが? |
bind関連をいったん削除してphpをインストールします。
portsなどからbindを導入した場合に、「dns.c」において「undefined reference to ...」というような形で不具合の旨が表示された場合、bindの導入状況を確認します。導入されたものが、portsの場合は、いったん削除した上でphpの導入を行います。ソースからの場合は、「named」を「named.old」のような名前に書き換えるなどして、いったんパスから呼び出せないようにします。
対処の方法は、いくつか紹介されているので、うまくいかない場合は、下記のページも参照すると良いでしょう。
! 不具合の例
/usr/local/src/php-5.1.4/ext/standard/dns.c:764: undefined reference to `res_ninit'
/usr/local/src/php-5.1.4/ext/standard/dns.c:768: undefined reference to `res_nmkquery'
/usr/local/src/php-5.1.4/ext/standard/dns.c:773: undefined reference to `res_nclose'
/usr/local/src/php-5.1.4/ext/standard/dns.c:776: undefined reference to `res_nsend'
/usr/local/src/php-5.1.4/ext/standard/dns.c:800: undefined reference to `res_nclose'
/usr/local/src/php-5.1.4/ext/standard/dns.c:816: undefined reference to `res_nclose'
*** Error code 1
Stop in /usr/local/src/php-5.1.4.
! 対処法の例
http://www.macosx.com/newsgroups/showthread.php?t=149423
Please try changing the following line in your main/php_config.h file:
/* #undef BIND_8_COMPAT */
to
#define BIND_8_COMPAT 1
Then make and let us know the results.
! 対処法の例
http://bugs.php.net/bug.php?id=26544
If you have a resolv.h in /usr/include, do the following.
(don't forget to backup)
cd /usr/local/bind/
(for safety)
mv include oldinclude
mv lib oldlib
ln -s /usr/include include
ln -s /usr/lib lib
now Download the Bind 8 (source) and compile it. it will put a new
working resolv.h in /usr/include and the other appropriate files, It
will also put the appropriate libs in the lib dir.
Now you should be able to compile php 5 as normal.
|
| 文書番号 |
06974 |
| 日付 |
2006.06.17 |
| 参照数 |
422 |
|