Package: specter Version: 1.3-9 Severity: normal Tags: patch When building 'specter' on amd64/unstable with gcc-4.0, I get the following error:
make[1]: Entering directory `/specter-1.3' x86_64-linux-gcc -O2 -Wall -g -I./libipulog/include -I./include -DSPECTER_CONFIGFILE_DEFAULT=\"/etc/specter.conf\" -c specter.c -o specter.o specter.c:96: error: syntax error before '{' token specter.c:104: error: syntax error before '{' token specter.c:112: error: syntax error before '{' token specter.c:120: error: syntax error before '{' token specter.c:128: error: syntax error before '{' token specter.c:136: error: syntax error before '{' token specter.c:144: error: syntax error before '{' token make[1]: *** [specter.o] Error 1 make[1]: Leaving directory `/specter-1.3' make: *** [build-stamp] Error 2 With the attached patch 'specter' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/specter-1.3/plugins/specter_EXEC.c ./plugins/specter_EXEC.c --- ../tmp-orig/specter-1.3/plugins/specter_EXEC.c 2004-08-29 16:42:06.000000000 +0200 +++ ./plugins/specter_EXEC.c 2005-04-08 13:49:28.085831622 +0200 @@ -60,9 +60,9 @@ static config_entry_t my_config[] = { { .key = "command", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_MANDATORY }, { .key = "wait", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0} }, + .u.value = 0 }, { .key = "force", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0} }, + .u.value = 0 }, }; /* structure to lower number of operations during execution time */ diff -urN ../tmp-orig/specter-1.3/plugins/specter_HTTP.c ./plugins/specter_HTTP.c --- ../tmp-orig/specter-1.3/plugins/specter_HTTP.c 2004-09-26 10:03:13.000000000 +0200 +++ ./plugins/specter_HTTP.c 2005-04-08 13:47:32.241983305 +0200 @@ -67,12 +67,12 @@ { .type = SPECTER_IRET_STRING, .name = "http.reason" }, { .type = SPECTER_IRET_STRING, .name = "http.url" }, { .type = SPECTER_IRET_STRING, .name = "http.version", - .value{.ptr = static_values.version }}, + .value.ptr = static_values.version }, /* 6 */{ .type = SPECTER_IRET_STRING, .name = "http.cache_control" }, { .type = SPECTER_IRET_STRING, .name = "http.connection" }, { .type = SPECTER_IRET_STRING, .name = "http.date", - .value{.ptr = static_values.date }}, + .value.ptr = static_values.date }, { .type = SPECTER_IRET_STRING, .name = "http.keep_alive" }, /* 10 */{ .type = SPECTER_IRET_STRING, .name = "http.mime_version" }, { .type = SPECTER_IRET_STRING, .name = "http.pragma" }, @@ -89,15 +89,15 @@ { .type = SPECTER_IRET_UINT32, .name = "http.content_length" }, { .type = SPECTER_IRET_STRING, .name = "http.content_location" }, { .type = SPECTER_IRET_STRING, .name = "http.content_md5", - .value{.ptr = static_values.content_md5 }}, + .value.ptr = static_values.content_md5 }, { .type = SPECTER_IRET_STRING, .name = "http.content_range" }, /* 25 */{ .type = SPECTER_IRET_STRING, .name = "http.content_type" }, { .type = SPECTER_IRET_STRING, .name = "http.content_version" }, { .type = SPECTER_IRET_STRING, .name = "http.derived_from" }, { .type = SPECTER_IRET_STRING, .name = "http.expires", - .value{.ptr = static_values.expires }}, + .value.ptr = static_values.expires }, { .type = SPECTER_IRET_STRING, .name = "http.last_modified", - .value{.ptr = static_values.last_modified }}, + .value.ptr = static_values.last_modified }, /* 30 */{ .type = SPECTER_IRET_STRING, .name = "http.link" }, { .type = SPECTER_IRET_STRING, .name = "http.title" }, { .type = SPECTER_IRET_STRING, .name = "http.uri" }, @@ -112,11 +112,11 @@ /* 40 */{ .type = SPECTER_IRET_STRING, .name = "http.host" }, { .type = SPECTER_IRET_STRING, .name = "http.if_match" }, { .type = SPECTER_IRET_STRING, .name = "http.if_modified_since", - .value{.ptr = static_values.if_modified_since }}, + .value.ptr = static_values.if_modified_since }, { .type = SPECTER_IRET_STRING, .name = "http.if_none_match" }, { .type = SPECTER_IRET_STRING, .name = "http.if_range" }, /* 45 */{ .type = SPECTER_IRET_STRING, .name = "http.if_unmodified_since", - .value{.ptr = static_values.if_unmodified_since }}, + .value.ptr = static_values.if_unmodified_since }, { .type = SPECTER_IRET_UINT32, .name = "http.max_forwards" }, { .type = SPECTER_IRET_STRING, .name = "http.proxy_authorization" }, { .type = SPECTER_IRET_STRING, .name = "http.range" }, diff -urN ../tmp-orig/specter-1.3/plugins/specter_LOGEMU.c ./plugins/specter_LOGEMU.c --- ../tmp-orig/specter-1.3/plugins/specter_LOGEMU.c 2004-08-28 13:34:21.000000000 +0200 +++ ./plugins/specter_LOGEMU.c 2005-04-08 13:47:58.756912224 +0200 @@ -44,17 +44,17 @@ static config_entry_t my_config[] = { { .key = "sync", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "logfile", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE, - .u{.string = LOGEMU_DEFAULT }}, + .u.string = LOGEMU_DEFAULT }, { .key = "ip_options", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "tcp_options", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "tcp_seq", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "mac_header", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, }; diff -urN ../tmp-orig/specter-1.3/plugins/specter_MYSQL.c ./plugins/specter_MYSQL.c --- ../tmp-orig/specter-1.3/plugins/specter_MYSQL.c 2004-09-20 17:23:48.000000000 +0200 +++ ./plugins/specter_MYSQL.c 2005-04-08 13:48:49.953122260 +0200 @@ -38,7 +38,7 @@ { .key = "user", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_MANDATORY }, { .key = "pass", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_MANDATORY }, { .key = "table", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_MANDATORY }, - { .key = "buffsize", .type = CONFIG_TYPE_MEM, .options = CONFIG_OPT_NONE, .u{.value = 0} }, + { .key = "buffsize", .type = CONFIG_TYPE_MEM, .options = CONFIG_OPT_NONE, .u.value = 0 }, }; struct my_data { diff -urN ../tmp-orig/specter-1.3/plugins/specter_OPRINT.c ./plugins/specter_OPRINT.c --- ../tmp-orig/specter-1.3/plugins/specter_OPRINT.c 2004-08-28 13:34:21.000000000 +0200 +++ ./plugins/specter_OPRINT.c 2005-04-08 13:48:15.935627015 +0200 @@ -47,7 +47,7 @@ static config_entry_t my_config[] = { { .key = "logfile", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE, - .u{.string = OPRINT_DEFAULT }}, + .u.string = OPRINT_DEFAULT }, }; struct my_data { diff -urN ../tmp-orig/specter-1.3/plugins/specter_PCAP.c ./plugins/specter_PCAP.c --- ../tmp-orig/specter-1.3/plugins/specter_PCAP.c 2004-08-30 19:18:04.000000000 +0200 +++ ./plugins/specter_PCAP.c 2005-04-08 13:49:22.090977713 +0200 @@ -50,9 +50,9 @@ static config_entry_t my_config[] = { { .key = "sync", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "logfile", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE, - .u{.string = PCAP_DEFAULT }}, + .u.string = PCAP_DEFAULT }, }; diff -urN ../tmp-orig/specter-1.3/plugins/specter_PGSQL.c ./plugins/specter_PGSQL.c --- ../tmp-orig/specter-1.3/plugins/specter_PGSQL.c 2004-09-21 13:41:06.000000000 +0200 +++ ./plugins/specter_PGSQL.c 2005-04-08 13:49:07.044854337 +0200 @@ -38,7 +38,7 @@ { .key = "user", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_MANDATORY }, { .key = "pass", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE }, { .key = "table", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_MANDATORY }, - { .key = "buffsize", .type = CONFIG_TYPE_MEM, .options = CONFIG_OPT_NONE, .u{.value = 0} }, + { .key = "buffsize", .type = CONFIG_TYPE_MEM, .options = CONFIG_OPT_NONE, .u.value = 0 }, }; struct my_data { diff -urN ../tmp-orig/specter-1.3/plugins/specter_SYSLOG.c ./plugins/specter_SYSLOG.c --- ../tmp-orig/specter-1.3/plugins/specter_SYSLOG.c 2004-08-28 13:34:21.000000000 +0200 +++ ./plugins/specter_SYSLOG.c 2005-04-08 13:48:35.894810354 +0200 @@ -49,17 +49,17 @@ static config_entry_t my_config[] = { { .key = "facility", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE, - .u{.string = SYSLOG_FACILITY_DEFAULT }}, + .u.string = SYSLOG_FACILITY_DEFAULT }, { .key = "level", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE, - .u{.string = SYSLOG_LEVEL_DEFAULT }}, + .u.string = SYSLOG_LEVEL_DEFAULT }, { .key = "ip_options", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "tcp_options", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "tcp_seq", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, { .key = "mac_header", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0 }}, + .u.value = 0 }, }; struct my_data { diff -urN ../tmp-orig/specter-1.3/specter.c ./specter.c --- ../tmp-orig/specter-1.3/specter.c 2004-09-23 20:09:06.000000000 +0200 +++ ./specter.c 2005-04-08 13:46:24.990847743 +0200 @@ -93,7 +93,7 @@ .key = "errignore", .type = CONFIG_TYPE_BOOLEAN, .options = CONFIG_OPT_NONE, - .u{.value = 0} + .u.value = 0 }; static config_entry_t logfile_ce = { @@ -101,7 +101,7 @@ .key = "logfile", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE, - .u{.string = SPECTER_LOGFILE_DEFAULT} + .u.string = SPECTER_LOGFILE_DEFAULT }; static config_entry_t bufsiz_ce = { @@ -109,7 +109,7 @@ .key = "bufsize", .type = CONFIG_TYPE_MEM, .options = CONFIG_OPT_NONE, - .u{.value = SPECTER_BUFSIZE_DEFAULT} + .u.value = SPECTER_BUFSIZE_DEFAULT }; static config_entry_t loglevel_ce = { @@ -117,7 +117,7 @@ .key = "loglevel", .type = CONFIG_TYPE_INT, .options = CONFIG_OPT_NONE, - .u{.value = SPECTER_INFO} + .u.value = SPECTER_INFO }; static config_entry_t rmem_ce = { @@ -125,7 +125,7 @@ .key = "rmem", .type = CONFIG_TYPE_MEM, .options = CONFIG_OPT_NONE, - .u{.value = SPECTER_RMEM_DEFAULT} + .u.value = SPECTER_RMEM_DEFAULT }; static config_entry_t nlgroup_ce = { @@ -133,7 +133,7 @@ .key = "nlgroup", .type = CONFIG_TYPE_INT, .options = CONFIG_OPT_NONE, - .u{.value = 1} + .u.value = 1 }; static config_entry_t grouping_ce = { @@ -141,7 +141,7 @@ .key = "grouping", .type = CONFIG_TYPE_STRING, .options = CONFIG_OPT_NONE, - .u{.string = "netlink"} + .u.string = "netlink" }; /* should always point to first ce in list above */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]