●server.incの設定 [root@web2 /www]# vi aff/set/server.inc 以下の内容に変更する。 ●const.incの設定 以下の設定ファイルのパスを変更する。 [root@web2 /www]# find . -name 'const*' ./aff/user/const.inc ./aff/admin/const.inc ./aff/ad/const.inc 以下の内容に変更する。 require_once("/www/aff_test/set/server.inc"); ↓ require_once("/www/aff/set/server.inc"); ●mms_send_v2.1のモジュール作成 [root@web2 src]# cd /www/aff/admin/smtp/src [root@web2 src]# make mms_v2.1 gcc mms_send_v2.1.c kfmem.c parse.c fileutil.c strutil.c -I/usr/include/mysql -L/usr/lib64/mysql -lmysqlclient -o mms_send_v2.1 mms_send_v2.1.c: In function 'main': mms_send_v2.1.c:59: warning: incompatible implicit declaration of built-in function 'bzero' mms_send_v2.1.c: In function 'proc_mail': mms_send_v2.1.c:221: warning: incompatible implicit declaration of built-in function 'bzero' mms_send_v2.1.c: In function 'send_magazin': mms_send_v2.1.c:370: warning: incompatible implicit declaration of built-in function 'strcpy' mms_send_v2.1.c:378: warning: cast to pointer from integer of different size mms_send_v2.1.c:419: warning: incompatible implicit declaration of built-in function 'strlen' mms_send_v2.1.c: In function 'send_qmail': mms_send_v2.1.c:469: warning: incompatible implicit declaration of built-in function 'strcpy' mms_send_v2.1.c: In function 'car_segment_str': mms_send_v2.1.c:513: warning: incompatible implicit declaration of built-in function 'bzero' mms_send_v2.1.c:534: warning: incompatible implicit declaration of built-in function 'strlen' mms_send_v2.1.c:537: warning: incompatible implicit declaration of built-in function 'strcpy' mms_send_v2.1.c: In function 'urlencode': mms_send_v2.1.c:550: warning: incompatible implicit declaration of built-in function 'strlen' mms_send_v2.1.c:551: warning: incompatible implicit declaration of built-in function 'bzero' mms_send_v2.1.c:559: warning: incompatible implicit declaration of built-in function 'strcat' strutil.c: In function 'str_lower': strutil.c:205: warning: comparison is always true due to limited range of data type strutil.c: In function 'str_upper': strutil.c:226: warning: comparison is always true due to limited range of data type chmod 4755 mms_send_v2.1 ※エラーがでる場合、以下の★のシンボリックリンクを作成する [root@web2 src]# ls -lrt /usr/lib64/mysql total 9068 -rwxr-xr-x 1 root root 12896 May 10 2011 mysqlbug -rwxr-xr-x 1 root root 6182 May 10 2011 mysql_config -rw-r--r-- 1 root root 1472162 May 10 2011 libmystrings.a -rw-r--r-- 1 root root 1837166 May 10 2011 libmysqlclient.a -rw-r--r-- 1 root root 41314 May 10 2011 libmyisammrg.a -rw-r--r-- 1 root root 452728 May 10 2011 libmyisam.a -rw-r--r-- 1 root root 68620 May 10 2011 libheap.a -rw-r--r-- 1 root root 2034 May 10 2011 libdbug.a -rw-r--r-- 1 root root 19448 May 10 2011 libvio.a -rw-r--r-- 1 root root 434174 May 10 2011 libmysys.a -rwxr-xr-x 1 root root 1517784 May 10 2011 libmysqlclient_r.so.15.0.0 -rw-r--r-- 1 root root 1855206 May 10 2011 libmysqlclient_r.a -rwxr-xr-x 1 root root 1510224 May 10 2011 libmysqlclient.so.15.0.0 lrwxrwxrwx 1 root root 26 Nov 22 12:45 libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 24 Nov 22 12:45 libmysqlclient.so.15 -> libmysqlclient.so.15.0.0 lrwxrwxrwx 1 root root 26 Nov 24 17:23 libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 24 Nov 24 17:23 libmysqlclient.so -> libmysqlclient.so.15.0.0 ★