You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Juergen Heckel <JH...@t-online.de> on 2002/07/07 06:17:09 UTC

[Win32] Apache 2.0.40-dev error compiling latest snapshots

Hi,
since 3 days I cannot compile the latest snapshots without an error:

ab.c
F:\Projects\MSVC\httpd-2.0\support\ab.c(831) : warning C4244: '=' :
conversion from 'double ' to 'float ', possible loss of data
F:\Projects\MSVC\httpd-2.0\support\ab.c(1104) : error C2632: 'long'
followed by 'long' is illegal
F:\Projects\MSVC\httpd-2.0\support\ab.c(1105) : error C2632: 'long'
followed by 'long' is illegal
Error executing cl.exe.

Apache.exe - 2 error(s), 3 warning(s)

Replacing the ab.c with an older version solves this little problem.


Juergen

Re: [Win32] Apache 2.0.40-dev error compiling latest snapshots

Posted by Juergen Heckel <JH...@t-online.de>.
Brian Pane wrote:
>
> On Sat, 2002-07-06 at 23:31, Sebastian Bergmann wrote:
>> Brian Pane wrote:
>>> It may be unsafe to cast to a long when the arg is a "%qd".  How
>>> about this:
>>
>>  Compiles as well :)
>
> Thanks, I've just committed the change.
> --Brian

Hi,
fine, thank you.

Juergen


PS. The next compiling problem follows:-)

Re: [Win32] Apache 2.0.40-dev error compiling latest snapshots

Posted by Brian Pane <bp...@pacbell.net>.
On Sat, 2002-07-06 at 23:31, Sebastian Bergmann wrote:
> Brian Pane wrote:
> > It may be unsafe to cast to a long when the arg is a "%qd".  How
> > about this:
> 
>   Compiles as well :)

Thanks, I've just committed the change.
--Brian



Re: [Win32] Apache 2.0.40-dev error compiling latest snapshots

Posted by Sebastian Bergmann <li...@sebastian-bergmann.de>.
Brian Pane wrote:
> It may be unsafe to cast to a long when the arg is a "%qd".  How
> about this:

  Compiles as well :)

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

Re: [Win32] Apache 2.0.40-dev error compiling latest snapshots

Posted by Brian Pane <bp...@pacbell.net>.
On Sat, 2002-07-06 at 23:07, Sebastian Bergmann wrote:
> Juergen Heckel wrote:
> > Replacing the ab.c with an older version solves this little problem.
> 
> Index: support/ab.c
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/support/ab.c,v
> retrieving revision 1.106
> diff -u -r1.106 ab.c
> --- support/ab.c	4 Jul 2002 22:56:51 -0000	1.106
> +++ support/ab.c	7 Jul 2002 06:06:10 -0000
> @@ -1101,8 +1101,8 @@
>  	   trstring, tdstring, tdstring, concurrency);
>      printf("<tr %s><th colspan=2 %s>Time taken for tests:</th>"
>  	   "<td colspan=2 %s>%qd.%03qd seconds</td></tr>\n",
> -	   trstring, tdstring, tdstring, (long long)apr_time_sec(timetaken),
> -           (long long)apr_time_usec(timetaken));
> +	   trstring, tdstring, tdstring, (long)apr_time_sec(timetaken),
> +           (long)apr_time_usec(timetaken));
>      printf("<tr %s><th colspan=2 %s>Complete requests:</th>"
>  	   "<td colspan=2 %s>%ld</td></tr>\n",
>  	   trstring, tdstring, tdstring, done);


It may be unsafe to cast to a long when the arg is a "%qd".  How
about this:

Index: support/ab.c
===================================================================
RCS file: /home/cvs/httpd-2.0/support/ab.c,v
retrieving revision 1.106
diff -u -r1.106 ab.c
--- support/ab.c	4 Jul 2002 22:56:51 -0000	1.106
+++ support/ab.c	7 Jul 2002 06:16:55 -0000
@@ -1100,9 +1100,9 @@
 	   "<td colspan=2 %s>%d</td></tr>\n",
 	   trstring, tdstring, tdstring, concurrency);
     printf("<tr %s><th colspan=2 %s>Time taken for tests:</th>"
-	   "<td colspan=2 %s>%qd.%03qd seconds</td></tr>\n",
-	   trstring, tdstring, tdstring, (long long)apr_time_sec(timetaken),
-           (long long)apr_time_usec(timetaken));
+	   "<td colspan=2 %s>%qd.%03ld seconds</td></tr>\n",
+	   trstring, tdstring, tdstring, apr_time_sec(timetaken),
+           (long)apr_time_usec(timetaken));
     printf("<tr %s><th colspan=2 %s>Complete requests:</th>"
 	   "<td colspan=2 %s>%ld</td></tr>\n",
 	   trstring, tdstring, tdstring, done);



Re: [Win32] Apache 2.0.40-dev error compiling latest snapshots

Posted by Sebastian Bergmann <li...@sebastian-bergmann.de>.
Juergen Heckel wrote:
> Replacing the ab.c with an older version solves this little problem.

Index: support/ab.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/support/ab.c,v
retrieving revision 1.106
diff -u -r1.106 ab.c
--- support/ab.c	4 Jul 2002 22:56:51 -0000	1.106
+++ support/ab.c	7 Jul 2002 06:06:10 -0000
@@ -1101,8 +1101,8 @@
 	   trstring, tdstring, tdstring, concurrency);
     printf("<tr %s><th colspan=2 %s>Time taken for tests:</th>"
 	   "<td colspan=2 %s>%qd.%03qd seconds</td></tr>\n",
-	   trstring, tdstring, tdstring, (long long)apr_time_sec(timetaken),
-           (long long)apr_time_usec(timetaken));
+	   trstring, tdstring, tdstring, (long)apr_time_sec(timetaken),
+           (long)apr_time_usec(timetaken));
     printf("<tr %s><th colspan=2 %s>Complete requests:</th>"
 	   "<td colspan=2 %s>%ld</td></tr>\n",
 	   trstring, tdstring, tdstring, done);

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/