gsoap ssl테스트중...ㅠ
gsoap에서 ssl 테스트를 하려고 합니다. mips보드에 올리기 위해 크로스 컴파일을 하는데 아래와 같은 에러가 나네요... 참고로 mips-linux-gcc 버젼은 gcc-4.3.3 입니다.
[root@localhost ssl]#mips-linux-gcc -o mc stdsoap2.c sslclient.c soapC.c soapClient.c
In file included from stdsoap2.c:70:
stdsoap2.h:1480: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:1526: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:2119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2126: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2203: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2224: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2252: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2253: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2276: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2277: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.c:2128: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.c: In function 'soap_string_out':
stdsoap2.c:8625: error: 'wchar_t' undeclared (first use in this function)
stdsoap2.c:8625: error: (Each undeclared identifier is reported only once
stdsoap2.c:8625: error: for each function it appears in.)
stdsoap2.c:8625: error: expected ';' before 'wc'
stdsoap2.c:8626: error: 'wc' undeclared (first use in this function)
stdsoap2.c:8626: error: 'MB_CUR_MAX' undeclared (first use in this function)
stdsoap2.c: In function 'soap_string_in':
stdsoap2.c:9064: error: 'MB_CUR_MAX' undeclared (first use in this function)
stdsoap2.c: At top level:
stdsoap2.c:9122: error: expected ';', ',' or ')' before '*' token
stdsoap2.c:9196: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.c:10577: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.c: In function 'soap_s2wchar':
stdsoap2.c:10579: error: 'wchar_t' undeclared (first use in this function)
stdsoap2.c:10579: error: 'r' undeclared (first use in this function)
stdsoap2.c:10580: error: 't' undeclared (first use in this function)
stdsoap2.c:10580: error: expected expression before ')' token
stdsoap2.c:10593: error: expected ';' before 'c'
stdsoap2.c: At top level:
stdsoap2.c:10629: error: expected ';', ',' or ')' before '*' token
stdsoap2.c:10742: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.c: In function 'soap_outwstring':
stdsoap2.c:10743: error: 'p' undeclared (first use in this function)
stdsoap2.c: At top level:
stdsoap2.c:10761: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.c:11094: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.c: In function 'soap_outwliteral':
stdsoap2.c:11118: error: 'p' undeclared (first use in this function)
stdsoap2.c:11119: error: 'wchar_t' undeclared (first use in this function)
stdsoap2.c:11119: error: expected ';' before 'c'
stdsoap2.c:11120: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.c:11120: error: 's' undeclared (first use in this function)
stdsoap2.c:11121: error: 'c' undeclared (first use in this function)
stdsoap2.c: At top level:
stdsoap2.c:11137: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from soapStub.h:10,
from soapH.h:10,
from sslclient.c:38:
stdsoap2.h:1480: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:1526: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:2119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2126: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2203: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2224: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2252: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2253: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2276: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2277: error: expected declaration specifiers or '...' before 'wchar_t'
In file included from soapStub.h:10,
from soapH.h:10,
from soapC.c:13:
stdsoap2.h:1480: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:1526: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:2119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2126: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2203: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2224: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2252: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2253: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2276: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2277: error: expected declaration specifiers or '...' before 'wchar_t'
In file included from soapStub.h:10,
from soapH.h:10,
from soapClient.c:12:
stdsoap2.h:1480: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:1526: error: expected specifier-qualifier-list before 'wchar_t'
stdsoap2.h:2119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2126: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2203: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2224: error: expected ';', ',' or ')' before '*' token
stdsoap2.h:2252: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2253: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stdsoap2.h:2276: error: expected declaration specifiers or '...' before 'wchar_t'
stdsoap2.h:2277: error: expected declaration specifiers or '...' before 'wchar_t'
어떻게 해결해야 하는가요... 아침부터 하루종일 이걸로 씨름하고있어요 ㅠㅠ
install이 안된 것 같은데요..
gsoap의 압축을 푼 폴더에서
./configure
make
make install
위의 3개 명령어를 실행시켜서, 동작 환경에 맞게 설정하여야 합니다.
mips-linux-gcc -v 해보시면 경로정보가
mips-linux-gcc -v 해보시면 경로정보가 주륵 나옵니다. 간단한 hello.c가 컴파일 잘 되는지 확인해보시길.
그리고 컴파일은 root로 하지 마시고 일반유저로
그리고 컴파일은 root로 하지 마시고 일반유저로 하시길.
지나가다
혹시 그건 이유가 뭔가요..?
"I'm convinced that the only thing that kept me going was that I loved what I did." - Steve Jobs 1955-2011
커널 빌드를 root로 하는 경우가 상당히 많은 것
커널 빌드를 root로 하는 경우가 상당히 많은 것 같은데,
특별한 이유는 없겠습니만, 이런 종류의 버릇은 중요한 실수를 미리 예방합니다.
예를 들어 누군가가 악의적으로 Makefile을 변조했을때에 일반 유저로 작업하면 거의 아무런 영향을 못미치게 만들죠.
무슨 일이 되었건간에, 리눅스상에서 root권한으로 무얼 몇시간씩 개발하고 있는 경우가 있다면 그건 아주 나쁜 습관입니다.
댓글 달기