# FreeRTOS-Sockets warning

**URL:** <https://forums.freertos.org/t/freertos-sockets-warning/16592>\
**Category:** Libraries\
**Created:** [January 20, 2023, 1:18am UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592 "2023-01-20T01:18:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maty](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/maty/32/2893_2.png) [@Maty](https://forums.freertos.org/u/Maty)\
**Post date:** [January 20, 2023, 1:18am UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592/1 "2023-01-20T01:18:41Z")

</div>

Hello, I just wanted to show this piece of warning that I’m constantly seeing with the FreeRTOS-TCP libraries.

 ![Screenshot 2023-01-19 201747](https://d2v6vdsk2p900z.cloudfront.net/original/2X/f/f0b3b41dce584a5fa698e6b46def1448205fc275.png)

---

<div class="post-metadata">

**Author:** ![NikhilKamath](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/nikhilkamath/32/2934_2.png) [@NikhilKamath](https://forums.freertos.org/u/NikhilKamath)\
**Post date:** [January 20, 2023, 9:51am UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592/2 "2023-01-20T09:51:59Z")

</div>

Hello Maty - can you please provide some more information about which branch/tag/commit hash you are on and the compiler along with version you are using. Thank you.

---

<div class="post-metadata">

**Author:** ![Maty](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/maty/32/2893_2.png) [@Maty](https://forums.freertos.org/u/Maty)\
**Post date:** [January 20, 2023, 12:36pm UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592/3 "2023-01-20T12:36:36Z")

</div>

Hi Nikhil, I downloaded the latest FreeRTOS not too long ago, directly from the FreeRTOS website. It says FreeRTOS Kernel V10.4.6. at the top inside FreeRTOS.h. Inside of FreeRTOS\_Sockets.c it is FreeRTOS+TCP V2.4.0.

I am using Rowley CrossWorks which is using GCC 11.3 Release 1.

---

<div class="post-metadata">

**Author:** ![tony-josi-aws](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tony-josi-aws](https://forums.freertos.org/u/tony-josi-aws)\
**Post date:** [January 23, 2023, 5:21am UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592/4 "2023-01-23T05:21:55Z")

</div>

Hey Maty,

Looks like the following part of the code in FreeRTOS\_IP\_Private.h is either not visible to your compiler or not enabled:

```auto
    #if ( ipconfigSUPPORT_SELECT_FUNCTION == 1 ) || ( ipconfigUSE_TCP == 1 ) || ( ipconfigDNS_USE_CALLBACKS == 1 )
        extern ipDECL_CAST_PTR_FUNC_FOR_TYPE( ListItem_t );
        extern ipDECL_CAST_CONST_PTR_FUNC_FOR_TYPE( ListItem_t );
    #endif

```

Could you please share your `FreeRTOSIPConfig.h` file?

---

<div class="post-metadata">

**Author:** ![Maty](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/maty/32/2893_2.png) [@Maty](https://forums.freertos.org/u/Maty)\
**Post date:** [February 1, 2023, 2:14am UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592/5 "2023-02-01T02:14:18Z")

</div>

Hey @tony-josi-aws, I really apologize for the long delay. It’s been quite hectic. I checked my `FreeRTOSIPConfig.h` and I don’t have any of those defined. We use the FreeRTOS-Plus strictly only for UDP packets.

[FreeRTOSIPConfig.h](https://forums.freertos.org/uploads/short-url/z0f2G8uz2ZICDZdHCwya3S6PMJR.h) (19.1 KB)

---

<div class="post-metadata">

**Author:** ![tony-josi-aws](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tony-josi-aws](https://forums.freertos.org/u/tony-josi-aws)\
**Post date:** [February 1, 2023, 4:16am UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592/6 "2023-02-01T04:16:25Z")

</div>

Hey @Maty ,

This warning has been fixed in the latest versions of **[FreeRTOS-Plus-TCP](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP)**. Please update to the latest to get rid of the warning.

--------------- EDIT - More details ----------------  
Hey @Maty,

This [commit](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/commit/a4124602cc584fa0658448c229f48a459a84fbb1) fixes the warning in the **[FreeRTOS-Plus-TCP](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP)** repo. The release of the FreeRTOS-Plus-TCP library after this commit is **v3.0.0**.

If you are using [FreeRTOS](https://github.com/FreeRTOS/FreeRTOS) repo then please update to [FreeRTOSv202212.00](https://github.com/FreeRTOS/FreeRTOS/releases/tag/202212.00) which includes `FreeRTOS+TCP V3.1.0` and `FreeRTOS Kernel V10.5.1`

---

<div class="post-metadata">

**Author:** ![Maty](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/maty/32/2893_2.png) [@Maty](https://forums.freertos.org/u/Maty)\
**Post date:** [February 1, 2023, 12:03pm UTC](https://forums.freertos.org/t/freertos-sockets-warning/16592/7 "2023-02-01T12:03:36Z")

</div>

Thanks for your help!
