lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #58302] Problem compiling src/apps/http/http_client.c


From: Steve Wartik
Subject: [lwip-devel] [bug #58302] Problem compiling src/apps/http/http_client.c
Date: Mon, 4 May 2020 14:00:24 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

URL:
  <https://savannah.nongnu.org/bugs/?58302>

                 Summary: Problem compiling src/apps/http/http_client.c
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: 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
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

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?



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 04 May 2020 06:00:22 PM UTC  Name: script.sh  Size: 541B   By:
spwartik

<http://savannah.nongnu.org/bugs/download.php?file_id=49000>

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58302>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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