buglwIP - A Lightweight TCP/IP stack - Bugs: bug #58302, Problem compiling...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58302: Problem compiling src/apps/http/http_client.c

Submitter:  Steve Wartik <spwartik>
Submitted:  Mon 04 May 2020 06:00:22 PM UTC
   
 
Category:  apps Severity:  3 - Normal
Item Group:  Change Request Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  git head

Mon 04 May 2020 06:00:22 PM UTC, original submission:  

Files httpc_client.h and httpc_client.c both declare httpc_state_t as a typedef.  GCC, when used with the -std=gnu99 flag, fails with the error:

     lwip/src/apps/http/http_client.c:153:3: error: redefinition of typedef ‘httpc_state_t’ [-Werror=pedantic]
      } httpc_state_t;

The attached script is the make instruction to compile http_client.c.  It differs from what cmake generates by default only in the addition of the -std=gnu99 flag. Run it from the root directory of lwip to see the full diagnostic messages.

Can the definition of the structure be moved from http_client.c to http_client.h?

Steve Wartik <spwartik>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #49000:  script.sh added by spwartik (541B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by spwartik (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-04 spwartik Attached File- Added script.sh, #49000

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code