<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic rtcs fails to build in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/rtcs-fails-to-build/m-p/404137#M1626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using GCC 4.9 and KSDK 1.2.0.&amp;nbsp; RTCS fails to build with the following error:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KSDK_1.2.0/middleware/tcpip/rtcs/source/if/getaddrinfo.c:75:15: error: static declaration of 'strdup' follows non-static declaration&lt;/P&gt;&lt;P&gt; static char * strdup( const char *s);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;In file included from gcc/4.9/gcc-arm-none-eabi/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/include/string.h:10:0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from KSDK_1.2.0/middleware/tcpip/rtcs/source/if/getaddrinfo.c:48:&lt;/P&gt;&lt;P&gt;gcc/4.9/gcc-arm-none-eabi/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/include/string.h:80:8: note: previous declaration of 'strdup' was here&lt;/P&gt;&lt;P&gt; char&amp;nbsp; *_EXFUN(strdup,(const char *));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why Freescale chose to reuse the strdup name from the standard library, but newer versions of gcc don't like it.&amp;nbsp; For now I have patched getaddrinfo.c to rename strdup to strdup2.&amp;nbsp; This resolved my build issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 15:54:49 GMT</pubDate>
    <dc:creator>kalden_srcinc</dc:creator>
    <dc:date>2015-06-16T15:54:49Z</dc:date>
    <item>
      <title>rtcs fails to build</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/rtcs-fails-to-build/m-p/404137#M1626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using GCC 4.9 and KSDK 1.2.0.&amp;nbsp; RTCS fails to build with the following error:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KSDK_1.2.0/middleware/tcpip/rtcs/source/if/getaddrinfo.c:75:15: error: static declaration of 'strdup' follows non-static declaration&lt;/P&gt;&lt;P&gt; static char * strdup( const char *s);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;In file included from gcc/4.9/gcc-arm-none-eabi/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/include/string.h:10:0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from KSDK_1.2.0/middleware/tcpip/rtcs/source/if/getaddrinfo.c:48:&lt;/P&gt;&lt;P&gt;gcc/4.9/gcc-arm-none-eabi/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/include/string.h:80:8: note: previous declaration of 'strdup' was here&lt;/P&gt;&lt;P&gt; char&amp;nbsp; *_EXFUN(strdup,(const char *));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why Freescale chose to reuse the strdup name from the standard library, but newer versions of gcc don't like it.&amp;nbsp; For now I have patched getaddrinfo.c to rename strdup to strdup2.&amp;nbsp; This resolved my build issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 15:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/rtcs-fails-to-build/m-p/404137#M1626</guid>
      <dc:creator>kalden_srcinc</dc:creator>
      <dc:date>2015-06-16T15:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: rtcs fails to build</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/rtcs-fails-to-build/m-p/404138#M1627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for sharing your inputs. I will provide feedback to RTCS development team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 20:36:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/rtcs-fails-to-build/m-p/404138#M1627</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-06-16T20:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: rtcs fails to build</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/rtcs-fails-to-build/m-p/404139#M1628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found another thing.&amp;nbsp; You use "private" as a variable name in ENET_open (fsl_enet_rtcs_adapter.h).&amp;nbsp; This is a keyword in c++ so any c++ files including that will not compile.&amp;nbsp; Renaming that variable in the header file resolves the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 16:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/rtcs-fails-to-build/m-p/404139#M1628</guid>
      <dc:creator>kalden_srcinc</dc:creator>
      <dc:date>2015-06-23T16:08:59Z</dc:date>
    </item>
  </channel>
</rss>

