[PHP-users 3314] solaris8でのapache/php3/mysqlインストール時のトラブル
朝倉 誠
php-users@php.gr.jp
Mon, 05 Nov 2001 21:02:16 +0900
PISMOと申しますが、現在インストールでトラブルを抱えておりまして、
是非とも皆さんのお力をお貸しいただけますようお願いいたします。
作業内容は
マシン:SUN Netra X1
OS:Solaris 8
の環境に
php_3.0.18-i18n-ja-2
apache1.3.19
mysql-3.23.44
のインストールです。
全てソースからインストールしております。
必要か不必要化の判断に自信がありませんが、
以下もインストールしております。
binutils-2.11.2
bison1.28
gcc2.95.2
gtar1.13
以下が、トラブルの内容です。
作業工程は
1:apache
configure 成功
# ./configure
make 成功
# make
2:mysql
configure 成功
# ./configure
make 成功
# make
make install 成功
# make install
3:php3
configure 成功
# ./configure --with-mysql=/usr/local/ --with-apache=../apache_1.3.19 --enable-i18n --enable-mbregex --enable-track-vars
make 成功
# make
make install 成功
#make install
4:apacheの再make
configure 成功
# ./configure --activate-module=src/modules/php3/libphp3.a
make 失敗
# make
make install 実行できず
エラー内容を簡単に書きますと
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /tmp/apache_1.3.19/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /tmp/apache_1.3.19
*** Error code 1
make: Fatal error: Command failed for target `build'
となります。
「ld returned 1 exit status」
とありますが、LD_LIBRARY_PATHの定義不足でしょうか?
ここに至るまでの作業工程に於いて、特にエラーらしい箇所は
見当たらないのです。
皆様のお力を貸してください。
尚、以下にapacheの再make時の実行結果を記載しております。
長くなりましたが、よろしくお願いいたします。
apacheの再make時の実行結果は
--------------------------------------------------------------
# ./configure --activate-module=src/modules/php3/libphp3.a
Configuring for Apache, Version 1.3.19
+ using installation path layout: Apache (config.layout)
+ activated php3 module (modules/php3/libphp3.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Solaris 280 platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php3_module uses ConfigStart/End
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/php3
--------------------------------------------------------------
--------------------------------------------------------------
# make
===> src
===> src/regex
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DSOLARIS2=280 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat
-lite -DNO_DL_NEEDED `../../apaci` os.c
gcc -c -I../../os/unix -I../../include -DSOLARIS2=280 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat
-lite -DNO_DL_NEEDED `../../apaci` os-inline.c
rm -f libos.a
ar cr libos.a os.o os-inline.o
ranlib libos.a
<=== src/os/unix
===> src/ap
gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DN
O_DL_NEEDED `../apaci` ap_cpystrn.c
ーー中略ーー
gcc -c -I./os/unix -I./include -DSOLARIS2=280 -DUSE_HSREGEX
-DUSE_EXPAT -I./lib/expat-lite -DNO_D
L_NEEDED `./apaci` modules.c
gcc -c -I./os/unix -I./include -DSOLARIS2=280 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_D
L_NEEDED `./apaci` buildmark.c
gcc -DSOLARIS2=280 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` \
-o httpd buildmark.o modules.o modules/php3/libphp3.a modules/standard/libstandard.a main/l
ibmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a -R/usr/local//li
b/mysql -L/usr/local//lib/mysql -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3
-lpam -lm -lsocket -lnsl -lresolv -lsocket -lnsl
↓↓↓ここからエラーの箇所です↓↓↓
modules/php3/libphp3.a(mysql.o): In function `_free_mysql_result':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:182: undefined reference to `mysql_free_result'
modules/php3/libphp3.a(mysql.o): In function `_close_mysql_link':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:196: undefined reference to `mysql_close'
modules/php3/libphp3.a(mysql.o): In function `_close_mysql_plink':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:217: undefined reference to `mysql_close'
modules/php3/libphp3.a(mysql.o): In function `php3_info_mysql':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:318: undefined reference to `mysql_get_client_info'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_do_connect':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:479: undefined reference to `mysql_init'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:480: undefined reference to `mysql_real_connect'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:484: undefined reference to `mysql_error'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:509: undefined reference to `mysql_stat'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:510: undefined reference to `mysql_errno'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:518: undefined reference to `mysql_real_connect'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:530: undefined reference to `mysql_change_user'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:531: undefined reference to `mysql_error'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:578: undefined reference to `mysql_init'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:579: undefined reference to `mysql_real_connect'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:583: undefined reference to `mysql_error'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_select_db':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:713: undefined reference to `mysql_select_db'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_change_user':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:771: undefined reference to `mysql_change_user'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_create_db':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:821: undefined reference to `mysql_create_db'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_drop_db':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:867: undefined reference to `mysql_drop_db'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_query':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:914: undefined reference to `mysql_real_query'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:922: undefined reference to `mysql_store_result'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:923: undefined reference to `mysql_field_count'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_db_query':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:974: undefined reference to `mysql_select_db'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:981: undefined reference to `mysql_real_query'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:989: undefined reference to `mysql_store_result'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:990: undefined reference to `mysql_field_count'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_list_dbs':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1036: undefined reference to `mysql_list_dbs'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_list_tables':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1084: undefined reference to `mysql_select_db'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1087: undefined reference to `mysql_list_tables'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_list_fields':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1135: undefined reference to `mysql_select_db'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1139: undefined reference to `mysql_list_fields'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_error':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1183: undefined reference to `mysql_error'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_errno':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1223: undefined reference to `mysql_errno'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_affected_rows':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1261: undefined reference to `mysql_affected_rows'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_insert_id':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1299: undefined reference to `mysql_insert_id'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_result':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1341: undefined reference to `mysql_num_rows'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1345: undefined reference to `mysql_data_seek'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1346: undefined reference to `mysql_fetch_row'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1346: undefined reference to `mysql_fetch_lengths'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1366: undefined reference to `mysql_field_seek'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1373: undefined reference to `mysql_fetch_field'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1392: undefined reference to `mysql_num_fields'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_num_rows':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1441: undefined reference to `mysql_num_rows'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_num_fields':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1468: undefined reference to `mysql_num_fields'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_fetch_hash':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1516: undefined reference to `mysql_fetch_row'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1516: undefined reference to `mysql_fetch_lengths'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1521: undefined reference to `mysql_num_fields'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1527: undefined reference to `mysql_field_seek'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1528: undefined reference to `mysql_fetch_field'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1528: undefined reference to `mysql_fetch_field'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_data_seek':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1608: undefined reference to `mysql_num_rows'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1612: undefined reference to `mysql_data_seek'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_fetch_lengths':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1641: undefined reference to `mysql_fetch_lengths'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1647: undefined reference to `mysql_num_fields'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_fetch_field':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1738: undefined reference to `mysql_num_fields'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1742: undefined reference to `mysql_field_seek'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1744: undefined reference to `mysql_fetch_field'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_field_seek':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1789: undefined reference to `mysql_num_fields'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1793: undefined reference to `mysql_field_seek'
modules/php3/libphp3.a(mysql.o): In function `php3_mysql_field_info':
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1827: undefined reference to `mysql_num_fields'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1831: undefined reference to `mysql_field_seek'
/tmp/php-3.0.18-i18n-ja-2/functions/mysql.c:1832: undefined reference to `mysql_fetch_field'
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /tmp/apache_1.3.19/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /tmp/apache_1.3.19
*** Error code 1
make: Fatal error: Command failed for target `build'
--------------------------------------------------------------
となります。