흠... 안에 오류좀 봐주세요...
글쓴이: facered79 / 작성시간: 월, 2005/06/27 - 8:47오후
아래의 컴파일은 다른 리눅스 머신에서는 컴파일이 잘 되던 것입니다. 환경의 차이는 같은 레드햇 9.0 이지만 gcc 버전이 3.2.2 (되던곳) 3.3.3 이란 차이가 있네요 주된 오류의 내용은
Rshab_handlers.h:3: error: storage class specified for parameter `netsnmp_trapd_handler'
이것이고 .. 다른 내용은 분명 서로 다른 함수에서 선언된 같은 이름의 변수들이
previous declaration of `xmlParserInput'
위와같은 내용의 에러를 보이는것입니다.
어찌보면 함수의 경계가 불분명해진듯 한데요..
이런 경우는 처음이라서요.. 조언 부탁드리겠씁니다.
아래는 오류의 일부분입니다.
ot@fedora01 Rshabv2.0]# make
/bin/sh ./libtool --mode=compile gcc -I./include -I/usr/local/libxml2/include/libxml2 -I. -I./agent -I./agent/helpers -I./agent/mibgroup -I./snmplib -g -O2 -Dlinux -c -o Rshab_handlers.lo Rshab_handlers.c
rm -f .libs/Rshab_handlers.lo
gcc -I./include -I/usr/local/libxml2/include/libxml2 -I. -I./agent -I./agent/helpers -I./agent/mibgroup -I./snmplib -g -O2 -Dlinux -c Rshab_handlers.c -fPIC -DPIC -o .libs/Rshab_handlers.lo
In file included from Rshab_handlers.c:35:
Rshab_handlers.h: In function `config_belongs_in':
Rshab_handlers.h:3: error: storage class specified for parameter `netsnmp_trapd_handler'
Rshab_handlers.h:7: error: syntax error before "netsnmp_trapd_handler"
Rshab_handlers.h:7: error: storage class specified for parameter `Netsnmp_Trap_Handler'
Rshab_handlers.h:16: error: syntax error before "Netsnmp_Trap_Handler"
Rshab_handlers.h:16: warning: no semicolon at end of struct or union
Rshab_handlers.h:19: error: syntax error before "netsnmp_trapd_handler"
Rshab_handlers.h:33: error: storage class specified for parameter `print_format1'
Rshab_handlers.h:34: error: storage class specified for parameter `print_format2'
Rshab_handlers.h:46: error: syntax error before "netsnmp_trapd_handler"
In file included from /usr/local/libxml2/include/libxml2/libxml/tree.h:15,
from /usr/local/libxml2/include/libxml2/libxml/xmlreader.h:12,
from Rshab_log.h:4,
from Rshab_handlers.c:36:
/usr/local/libxml2/include/libxml2/libxml/xmlversion.h:21: error: storage class specified for parameter `xmlCheckVersion'
In file included from /usr/local/libxml2/include/libxml2/libxml/xmlreader.h:12,
from Rshab_log.h:4,
from Rshab_handlers.c:36:
/usr/local/libxml2/include/libxml2/libxml/tree.h:25: error: storage class specified for parameter `xmlParserInputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:26: error: storage class specified for parameter `xmlParserInputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:26: error: conflicting types for `xmlParserInputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:25: error: previous declaration of `xmlParserInputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:26: error: syntax error before '*' token
/usr/local/libxml2/include/libxml2/libxml/tree.h:28: error: storage class specified for parameter `xmlOutputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:29: error: storage class specified for parameter `xmlOutputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:29: error: conflicting types for `xmlOutputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:28: error: previous declaration of `xmlOutputBuffer'
/usr/local/libxml2/include/libxml2/libxml/tree.h:29: error: syntax error before '*' token
/usr/local/libxml2/include/libxml2/libxml/tree.h:32: error: storage class specified for parameter `xmlParserInput'
/usr/local/libxml2/include/libxml2/libxml/tree.h:33: error: storage class specified for parameter `xmlParserInput'
/usr/local/libxml2/include/libxml2/libxml/tree.h:33: error: conflicting types for `xmlParserInput'
/usr/local/libxml2/include/libxml2/libxml/tree.h:32: error: previous declaration of `xmlParserInput'
/usr/local/libxml2/include/libxml2/libxml/tree.h:33: error: syntax error before '*' token
/usr/local/libxml2/include/libxml2/libxml/tree.h:35: error: storage class specified for parameter `xmlParserCtxt'
/usr/local/libxml2/include/libxml2/libxml/tree.h:36: error: storage class specified for parameter `xmlParserCtxt'
/usr/local/libxml2/include/libxml2/libxml/tree.h:36: error: conflicting types for `xmlParserCtxt'
/usr/local/libxml2/include/libxml2/libxml/tree.h:35: error: previous declaration of `xmlParserCtxt'
/usr/local/libxml2/include/libxml2/libxml/tree.h:36: error: syntax error before '*' token
/usr/local/libxml2/include/libxml2/libxml/tree.h:38: error: storage class specified for parameter `xmlSAXLocator'
/usr/local/libxml2/include/libxml2/libxml/tree.h:39: error: storage class specified for parameter `xmlSAXLocator'
/usr/local/libxml2/include/libxml2/libxml/tree.h:39: error: conflicting types for `xmlSAXLocator'
/usr/local/libxml2/include/libxml2/libxml/tree.h:38: error: previous declaration of `xmlSAXLocator'
/usr/local/libxml2/include/libxml2/libxml/tree.h:39: error: syntax error before '*' token
/usr/local/libxml2/include/libxml2/libxml/tree.h:41: error: storage class specified for parameter `xmlSAXHandler'
/usr/local/libxml2/include/libxml2/libxml/tree.h:42: error: storage class specified for parameter `xmlSAXHandler'
/usr/local/libxml2/include/libxml2/libxml/tree.h:42: error: conflicting types for `xmlSAXHandler'
/usr/local/libxml2/include/libxml2/libxml/tree.h:41: error: previous declaration of `xmlSAXHandler'
/usr/local/libxml2/include/libxml2/libxml/tree.h:42: error: syntax error before '*' tokenmake: *** [Rshab_handlers.lo] 오류 1
Forums:


댓글 달기