흠... 안에 오류좀 봐주세요...

facered79의 이미지

아래의 컴파일은 다른 리눅스 머신에서는 컴파일이 잘 되던 것입니다. 환경의 차이는 같은 레드햇 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

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.