settingsLogin | Registersettings
리눅스 관련 모든 질문답변을 올려주세요! 100% 무료입니다! -Ask Ubuntu KR
Show Menu

centos 5.5 + 아파치 + php 5.2에 mssql 모듈을 설치하려는데

1 좋아함 0 싫어요

리눅스 서버에서 mssql 서버로 연결이 필요해서 php에 mssql 모듈을 추가하려고 합니다.

http://raftwood.net/blog/3369

재컴파일까지는 좀 그래서 위의 방법을 참고해서 하는 중입니다.

그런데 freetds 설치후에 모듈을....빌드할때 오류가 나네요.

#make
/bin/sh /usr/local/src/php-5.2.17/ext/mssql/libtool --mode=compile cc  -I. -I/usr/local/src/php-5.2.17/ext/mssql -DPHP_ATOM_INC -I/usr/local/src/php-5.2.17/ext/mssql/include -I/usr/local/src/php-5.2.17/ext/mssql/main -I/usr/local/src/php-5.2.17/ext/mssql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/freetds/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/src/php-5.2.17/ext/mssql/php_mssql.c -o php_mssql.lo
 cc -I. -I/usr/local/src/php-5.2.17/ext/mssql -DPHP_ATOM_INC -I/usr/local/src/php-5.2.17/ext/mssql/include -I/usr/local/src/php-5.2.17/ext/mssql/main -I/usr/local/src/php-5.2.17/ext/mssql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/freetds/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/php-5.2.17/ext/mssql/php_mssql.c  -fPIC -DPIC -o .libs/php_mssql.o
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:85: warning: parameter names (without types) in function declaration
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:98: error: 'mssql' undeclared here (not in a function)
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:98: error: initializer element is not constant
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:98: error: (near initialization for 'mssql_module_entry.post_deactivate_func')
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:99: error: initializer element is not constant
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:99: error: (near initialization for 'mssql_module_entry.globals_id')
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:100: warning: initialization makes integer from pointer without a cast
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:101: warning: initialization makes integer from pointer without a cast
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:102: warning: excess elements in struct initializer
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:102: warning: (near initialization for 'mssql_module_entry')
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:102: warning: excess elements in struct initializer
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:102: warning: (near initialization for 'mssql_module_entry')
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:103: warning: excess elements in struct initializer
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:103: warning: (near initialization for 'mssql_module_entry')
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c: In function 'PHP_GINIT_FUNCTION':
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:285: error: invalid type argument of '->'
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:286: error: invalid type argument of '->'
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:289: error: invalid type argument of '->'
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c: In function 'php_mssql_get_column_content_without_type':
/usr/local/src/php-5.2.17/ext/mssql/php_mssql.c:1033: warning: passing argument 1 of 'spprintf' from incompatible pointer type
make: *** [php_mssql.lo] Error 1

조언 바랍니다.

서버 / 클라우드

1 답변

0 좋아요 0 싫어요
 
우수 답변
https://www.centos.org/forums/viewtopic.php?t=18697

몇가지 devel 패키지를 설치하지 않으신듯 합니다.

관련 질문

Hosting by Microsoft MeltingPot/maru intermet
...