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

Submitted by:  Steve Wartik <spwartik>
Submitted on:  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>

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.6