lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9182] apps/ping: Fix build error if !LWIP_IPV6


From: Axel Lin
Subject: [lwip-devel] [patch #9182] apps/ping: Fix build error if !LWIP_IPV6
Date: Sun, 4 Dec 2016 10:32:59 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?9182>

                 Summary: apps/ping: Fix build error if !LWIP_IPV6
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Sun 04 Dec 2016 10:32:58 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Fix below build error if !LWIP_IPV6:

../../../apps/ping/ping.c: In function ‘ping_send’:
../../../apps/ping/ping.c:134:25: error: implicit declaration of function
‘ip6_addr_isipv6mappedipv4’ [-Werror=implicit-function-declaration]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../apps/ping/ping.c:134:3: error: nested extern declaration of
‘ip6_addr_isipv6mappedipv4’ [-Werror=nested-externs]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
   ^~
../../../apps/ping/ping.c:134:51: error: implicit declaration of function
‘ip_2_ip6’ [-Werror=implicit-function-declaration]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
                                                   ^~~~~~~~
../../../apps/ping/ping.c:134:3: error: nested extern declaration of
‘ip_2_ip6’ [-Werror=nested-externs]
   if(IP_IS_V6(addr) && !ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
   ^~
cc1: all warnings being treated as errors

Fixes: 8ea25831dd7c ("simhost: remove ping implementation and use ping app
instead")


This patch is against lwip-contrib tree.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 04 Dec 2016 10:32:58 AM GMT  Name:
0001-apps-ping-Fix-build-error-if-LWIP_IPV6.patch  Size: 2kB   By: axellin

<http://savannah.nongnu.org/patch/download.php?file_id=39141>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9182>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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