Bug#303725: specter: FTBFS (amd64/gcc-4.0): syntax error before '{' token

2005-04-09 Thread Verdan
Hello

specter upload is now completed with Your patch included, and bug is
marked as done, but afer consultation with upstream, new patch has been
released. We believe that it soloves problem with compilation on gcc-4
*and* gcc-2.95. 
I would be glad if You could take a look, and tell me if
this really works and aprove it ;).
(I currently don't have gcc-4 on my machines)

Thanks in advance.

Best regards,
 Grzegorz Bizon

-- 
[  ,''`.  [EMAIL PROTECTED] // [EMAIL PROTECTED] ]
[ : :' :  GG: 830398 //   JID: verdan(at)chrome.pl ]
[ `. `'   [EMAIL PROTECTED]  //GPG: 0xDF32F531 ]
[   `-  1A6F A0A1 01D1 3033 332A  60FE 4C7B 8037 DF32 F531 ]


specter-1.4-pre1-gcc4-build.patch
Description: Binary data


pgpitK5RsCrQi.pgp
Description: PGP signature


Bug#303725: specter: FTBFS (amd64/gcc-4.0): syntax error before '{' token

2005-04-09 Thread Andreas Jochens
Hello,

On 05-Apr-09 11:51, Verdan wrote:
 specter upload is now completed with Your patch included, and bug is
 marked as done, but afer consultation with upstream, new patch has been
 released. We believe that it soloves problem with compilation on gcc-4
 *and* gcc-2.95. 
 I would be glad if You could take a look, and tell me if
 this really works and aprove it ;).
 (I currently don't have gcc-4 on my machines)

The new patch works with gcc-4.0. I did not check if it also works 
with gcc-2.95.

Thank you for your help!

Regards
Andreas Jochens


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#303725: specter: FTBFS (amd64/gcc-4.0): syntax error before '{' token

2005-04-08 Thread Andreas Jochens
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.0 +0200
+++ ./plugins/specter_EXEC.c2005-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.0 +0200
+++ ./plugins/specter_HTTP.c2005-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
--- 

Bug#303725: specter: FTBFS (amd64/gcc-4.0): syntax error before '{' token

2005-04-08 Thread Verdan
Hello

 With the attached patch 'specter' can be compiled
 on amd64 using gcc-4.0.

It's not so easy. It was done that way to allow specter compile on gcc
2.95. This patch makes it impossible, so I hesitate to apply it.
Moreover fourth version of gcc is really experimental, and if I had to
choose specter compiling on 4 or 2.95 version I would choose 2.95.
For telling truth I don't know what to do now; upstream doesn't aprove
this patch and won't include it in 1.4pre2 version of specter.
I consider setting ,,wontfix'' tag.
What do You think about that ?

Best regards,
 Grzegorz ,,Verdan'' Bizon

-- 
[  ,''`.  [EMAIL PROTECTED] // [EMAIL PROTECTED] ]
[ : :' :  GG: 830398 //   JID: verdan(at)chrome.pl ]
[ `. `'   [EMAIL PROTECTED]  //GPG: 0xDF32F531 ]
[   `-  1A6F A0A1 01D1 3033 332A  60FE 4C7B 8037 DF32 F531 ]


pgpoAn9tqf5pi.pgp
Description: PGP signature


Bug#303725: specter: FTBFS (amd64/gcc-4.0): syntax error before '{' token

2005-04-08 Thread Andreas Jochens
Hello,

thank you for your reply to my bug report.

On 05-Apr-08 18:04, Verdan wrote:
  With the attached patch 'specter' can be compiled
  on amd64 using gcc-4.0.
 
 It's not so easy. It was done that way to allow specter compile on gcc
 2.95. This patch makes it impossible, so I hesitate to apply it.
 Moreover fourth version of gcc is really experimental, and if I had to
 choose specter compiling on 4 or 2.95 version I would choose 2.95.

Is there any Debian architecture which still uses gcc-2.95 to build
specter?

 For telling truth I don't know what to do now; upstream doesn't aprove
 this patch and won't include it in 1.4pre2 version of specter.
 I consider setting ,,wontfix'' tag.

Currently, only the ppc64 Port uses gcc-4.0 as its default compiler.

However, as far as I understand, after the release of sarge, the Debian 
archive will switch to gcc-4.0 as the default compiler for all 
architectures. In this case, this bug will become RC.

 What do You think about that ?

I think that 'wontfix' wonthelp much :)

More seriously, the newer gcc-4.0 adheres more strictly to the official
C/C++ standards. I think that C/C++ code should generally be based on 
the standards and not on non-standard externsions of old gcc versions.

Regards
Andreas Jochens


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#303725: specter: FTBFS (amd64/gcc-4.0): syntax error before '{' token

2005-04-08 Thread Verdan
Hi.


Fri, 8 Apr 2005 19:44:18 +0200
Andreas Jochens [EMAIL PROTECTED] wrote:
 
 I think that 'wontfix' wonthelp much :)
 
 More seriously, the newer gcc-4.0 adheres more strictly to the
 official C/C++ standards. I think that C/C++ code should generally be
 based on  the standards and not on non-standard externsions of old gcc
 versions.

specter 1.3-10 with patch included is waiting for upload.

Thanks !

Best regards,
 Verdan 

-- 
[  ,''`.  [EMAIL PROTECTED] // [EMAIL PROTECTED] ]
[ : :' :  GG: 830398 //   JID: verdan(at)chrome.pl ]
[ `. `'   [EMAIL PROTECTED]  //GPG: 0xDF32F531 ]
[   `-  1A6F A0A1 01D1 3033 332A  60FE 4C7B 8037 DF32 F531 ]


pgpQIMLAh3UuJ.pgp
Description: PGP signature