lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #60443] Build error when NO_SYS==1 and SYS_LIGHTWEIGHT


From: Eric Koldeweij
Subject: [lwip-devel] [bug #60443] Build error when NO_SYS==1 and SYS_LIGHTWEIGHT_PROT==1
Date: Thu, 22 Apr 2021 15:51:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

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

                 Summary: Build error when NO_SYS==1 and
SYS_LIGHTWEIGHT_PROT==1
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: eric_koldeweij
            Submitted on: Thu 22 Apr 2021 07:51:50 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: Compiler Warning
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

Small issue. Bug submitted for head but present in all releases I worked with
since at least v2.0.2.

A missing definition for sys_prot_t is the culprit:
========
In file included from src/core/init.c:42:0:
./src/include/lwip/sys.h:507:1: error: unknown type name 'sys_prot_t'; did you
mean 'sys_mbox_t'?
 sys_prot_t sys_arch_protect(void);
 ^~~~~~~~~~
 sys_mbox_t
./src/include/lwip/sys.h:508:25: error: unknown type name 'sys_prot_t'; did
you mean 'sys_mbox_t'?
 void sys_arch_unprotect(sys_prot_t pval);
                         ^~~~~~~~~~
                         sys_mbox_t
========

This only occurs if in lwipopts.h both NO_SYS and SYS_LIGHTWEIGHT_PROT are
used. If either or both are zero the error does not occur.

Attached is a small patch to fix this issue



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 22 Apr 2021 07:51:50 PM UTC  Name: patch  Size: 387B   By:
eric_koldeweij
This patch defines sys_prot_t in the NO_SYS section when SYS_LIGHTWEIGHT_PROT
!= 0
<http://savannah.nongnu.org/bugs/download.php?file_id=51307>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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