Hello all,
I got this message when I try to compile spine... when I do ./compile all working fine but when i try make spine I got this messages
slesapps:/srv/www/htdocs/cacti/cacti-spine-0.8.7c # make spine
cc spine.c -o spine
In file included from common.h:66,
from spine.c:85:
config/config.h:167: error: expected identifier or â(â before â<<â token
In file included from common.h:66,
from spine.c:85:
config/config.h:170:1: warning: "PACKAGE_STRING" redefined
config/config.h:168:1: warning: this is the location of the previous definition
config/config.h:180:1: warning: "PACKAGE_VERSION" redefined
config/config.h:178:1: warning: this is the location of the previous definition
config/config.h:214:1: warning: "VERSION" redefined
config/config.h:212:1: warning: this is the location of the previous definition
In file included from common.h:69,
from spine.c:85:
/usr/include/stdlib.h:140: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__ctype_get_mb_cur_maxâ
In file included from common.h:69,
from spine.c:85:
/usr/include/stdlib.h:455: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:485: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:589: error: expected â)â before â__sizeâ
/usr/include/stdlib.h:591: error: expected â)â before â__nmembâ
/usr/include/stdlib.h:600: error: expected declaration specifiers or â...â before âsize_tâ
In file included from /usr/include/stdlib.h:612,
from common.h:69,
from spine.c:85:
/usr/include/alloca.h:33: error: expected â)â before â__sizeâ
In file included from common.h:69,
from spine.c:85:
/usr/include/stdlib.h:617: error: expected â)â before â__sizeâ
/usr/include/stdlib.h:622: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:622: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:776: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:776: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:777: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:781: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:781: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:782: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:854: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:857: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:861: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:865: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:874: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:878: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:885: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âmbstowcsâ
/usr/include/stdlib.h:888: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âwcstombsâ
In file included from common.h:70,
from spine.c:85:
/usr/include/string.h:39: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:43: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:52: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:59: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:62: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:66: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:88: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:96: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:102: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:109: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrxfrmâ
/usr/include/string.h:184: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrcspnâ
/usr/include/string.h:188: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrspnâ
/usr/include/string.h:242: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrlenâ
/usr/include/string.h:270: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:288: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:292: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:296: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:299: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/string.h:329: error: expected declaration specifiers or â...â before âsize_tâ
In file included from common.h:77,
from spine.c:85:
/usr/include/unistd.h:325: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:331: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:469: error: expected declaration specifiers or â...â before âsize_tâ
In file included from common.h:77,
from spine.c:85:
/usr/include/unistd.h:566: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âconfstrâ
/usr/include/unistd.h:738: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:774: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:821: error: expected declaration specifiers or â...â before âsize_tâ
In file included from common.h:77,
from spine.c:85:
/usr/include/unistd.h:843: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:850: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:861: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:863: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:881: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/unistd.h:882: error: expected declaration specifiers or â...â before âsize_tâ
In file included from /usr/include/signal.h:348,
from /usr/include/sys/wait.h:31,
from common.h:80,
from spine.c:85:
/usr/include/bits/sigstack.h:54: error: expected specifier-qualifier-list before âsize_tâ
In file included from /usr/include/sys/uio.h:29,
from /usr/include/sys/socket.h:27,
from common.h:82,
from spine.c:85:
/usr/include/bits/uio.h:45: error: expected specifier-qualifier-list before âsize_tâ
In file included from /usr/include/sys/socket.h:35,
from common.h:82,
from spine.c:85:
/usr/include/bits/socket.h:221: error: expected specifier-qualifier-list before âsize_tâ
/usr/include/bits/socket.h:235: error: expected specifier-qualifier-list before âsize_tâ
In file included from common.h:82,
from spine.c:85:
/usr/include/sys/socket.h:136: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/sys/socket.h:143: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/sys/socket.h:150: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/sys/socket.h:161: error: expected declaration specifiers or â...â before âsize_tâ
In file included from spine.c:85:
common.h:88:19: error: mysql.h: No such file or directory
In file included from /usr/include/netdb.h:33,
from common.h:89,
from spine.c:85:
/usr/include/rpc/netdb.h:61: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/rpc/netdb.h:65: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/rpc/netdb.h:69: error: expected declaration specifiers or â...â before âsize_tâ
In file included from common.h:89,
from spine.c:85:
/usr/include/netdb.h:162: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:169: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:175: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:181: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:232: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:238: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:244: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:304: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:310: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:315: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:370: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:375: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:380: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/netdb.h:430: error: expected declaration specifiers or â...â before âsize_tâ
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from common.h:92,
from spine.c:85:
/usr/include/gconv.h:72: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/gconv.h:88: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/gconv.h:97: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before âsize_tâ
In file included from /usr/include/stdio.h:72,
from common.h:92,
from spine.c:85:
/usr/include/libio.h:328: error: expected specifier-qualifier-list before âsize_tâ
/usr/include/libio.h:360: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/libio.h:369: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/libio.h:485: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â_IO_sgetnâ
In file included from common.h:92,
from spine.c:85:
/usr/include/stdio.h:314: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:321: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:363: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:365: error: format string argument not a string type
/usr/include/stdio.h:367: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:616: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfreadâ
/usr/include/stdio.h:622: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwriteâ
/usr/include/stdio.h:644: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfread_unlockedâ
/usr/include/stdio.h:646: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwrite_unlockedâ
In file included from common.h:109,
from spine.c:85:
/usr/include/time.h:200: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrftimeâ
In file included from common.h:121,
from spine.c:85:
/usr/include/pthread.h:290: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/pthread.h:294: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/pthread.h:350: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/pthread.h:357: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/pthread.h:363: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/pthread.h:369: error: expected declaration specifiers or â...â before âsize_tâ
In file included from spine.h:471,
from spine.c:86:
sql.h:34: error: expected â)â before â*â token
sql.h:35: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
sql.h:36: error: expected declaration specifiers or â...â before âMYSQLâ
sql.h:37: error: expected â)â before â*â token
In file included from spine.h:472,
from spine.c:86:
util.h:60: error: expected declaration specifiers or â...â before âsize_tâ
spine.c: In function âmainâ:
spine.c:141: error: âMYSQLâ undeclared (first use in this function)
spine.c:141: error: (Each undeclared identifier is reported only once
spine.c:141: error: for each function it appears in.)
spine.c:141: error: expected â;â before âmysqlâ
spine.c:142: error: âMYSQL_RESâ undeclared (first use in this function)
spine.c:142: error: âresultâ undeclared (first use in this function)
spine.c:143: error: âMYSQL_ROWâ undeclared (first use in this function)
spine.c:143: error: expected â;â before âmysql_rowâ
spine.c:156: warning: incompatible implicit declaration of built-in function âcallocâ
spine.c:344: warning: passing argument 2 of âsnprintfâ makes pointer from integer without a cast
spine.c:352: warning: passing argument 2 of âsnprintfâ makes pointer from integer without a cast
spine.c:375: error: âmysqlâ undeclared (first use in this function)
spine.c:375: error: too many arguments to function âdb_connectâ
spine.c:426: warning: incompatible implicit declaration of built-in function âmallocâ
spine.c:457: error: âmysql_rowâ undeclared (first use in this function)
make: *** [spine] Error 1
I´m working with Suse 10 SP1
thank you all
Problems when I try to compile spine
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 1 guest