lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Can't build "Working example" from BUILDING


From: Grant Edwards
Subject: Re: [lwip-users] Can't build "Working example" from BUILDING
Date: Thu, 30 Sep 2021 15:41:08 -0000 (UTC)
User-agent: slrn/1.0.3 (Linux)

On 2021-09-30, Grant Edwards <grant.b.edwards@gmail.com> wrote:

> That appears to attemp to compile source files. But, that fails also:
>
>     $ cmake --build .
>     [  1%] Building C object 
> CMakeFiles/makefsdata.dir/home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c.o
>     /home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c: In function 
> ‘process_file’:
>     /home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c:923:32: 
> error: ‘sprintf’ may write a terminating nul past the end of the destination 
> [-Werror=format-overflow=]
>       923 |   sprintf(qualifiedName, "%s/%s", curSubdir, filename);
>           |                                ^
>     /home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c:923:3: note: 
> ‘sprintf’ output 2 or more bytes (assuming 257) into a destination of size 256
>       923 |   sprintf(qualifiedName, "%s/%s", curSubdir, filename);
>           |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     cc1: all warnings being treated as errors
>     gmake[2]: *** [CMakeFiles/makefsdata.dir/build.make:76: 
> CMakeFiles/makefsdata.dir/home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c.o]
>  Error 1
>     gmake[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/makefsdata.dir/all] 
> Error 2

This seems to be a known problem that was reported over a year ago:

   https://savannah.nongnu.org/bugs/?58194

A patch was submitted to display an intelligible warning along with a
suggestion for fixing the documenation, but nothing has been done with
either.

If I had a clue, I would submit a patch for BUILDING, but I think it's
clear I don't.

--
Grant




reply via email to

[Prev in Thread] Current Thread [Next in Thread]