You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Gustavo Soares <gu...@gmail.com> on 2023/03/16 18:45:43 UTC

undefined reference to 'inet_ntoa_r'

Hi!

I'm starting a new project at college using NuttX and ESP-32. I'm trying to
build a new application for NuttX: a webserver to read and execute
Assembly! But the following error is showing up:[image: error description]
[image: netprocfs_inet4addresses function (netdev_statistics.c file)]

In menuconfig I enabled:
  Network support
     ├── Link layer support
         ├── Ethernet support
         ├── Late driver initialization
     ├── TCP/IP Networking

Application Configuration
    ├── Network utilities
        ├── Network initialization
            ├── Network initialization thread
            ├── Hardware has no MAC Address

Could someone help me with this?
And also, I've been searching for articles about building applications for
NuttX, but didn't find any. Does anyone know where I can find them?

Re: undefined reference to 'inet_ntoa_r'

Posted by Gustavo Soares <gu...@hotmail.com>.
After a few tests in menuconfig, now I can ping:
[image: image.png]

But the webserver example is still stuck in that same message.


Em sex., 17 de mar. de 2023 às 16:22, MIGUEL ALEXANDRE WISINTAINER <
tcpipchip@hotmail.com> escreveu:

> I got success
>
> Waiting for my student get too
>
> talking with him now
>
>
> ------------------------------
> *De:* Alan C. Assis <ac...@gmail.com>
> *Enviado:* sexta-feira, 17 de março de 2023 18:36
> *Para:* dev@nuttx.apache.org <de...@nuttx.apache.org>
> *Assunto:* Re: undefined reference to 'inet_ntoa_r'
>
> Please run: ifconfig
>
> Did you connect correctly to your WiFi router?
>
> BR,
>
> Alan
>
> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
> > I've defined the default gateway and the router IP in the menuconfig like
> > this:
> >
> > Library Routines
> >     ├── NETDB Support
> >         ├── DNS Name Resolution
> >             ├── Target IPv4 address (default gateway)
> >
> > Application Configuration
> >     ├── Network Utilities
> >         ├── Network Initialization
> >             ├── IP Address Configuration
> >                 ├── Target IPv4 address (default gateway)
> >                 ├── Router IPv4 address (router IP)
> >
> > When trying to ping, it returns 'no response':
> > [image: ping response]
> >
> > Em sex., 17 de mar. de 2023 às 12:59, Petro Karashchenko <
> > petro.karashchenko@gmail.com> escreveu:
> >
> >> Hello Gustavo,
> >>
> >> By "connected esp to the internet" do you mean that your board has
> public
> >> IP (not in the local network) or accessible via NAT?
> >>
> >> Because if you just connect board to home WiFi router that provides
> >> Internet, this is not "connected esp to the internet". If that is the
> >> case,
> >> then better try to find IP config of esp wireless interface and access
> >> webserver from LAN.
> >>
> >> Best regards,
> >> Petro
> >>
> >> On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares <
> >> gustavo.felipesoares@hotmail.com> wrote:
> >>
> >> > Hi, Alan!
> >> >
> >> > Thank you and Petro for the support, it's compiling now! I also
> >> > connected
> >> > the esp to the internet, but for some reason both 'nslookup' and
> 'ping'
> >> are
> >> > failing and when I start the webserver it gets stuck in the 'starting
> >> > webserver' message.
> >> >
> >> > Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <
> acassis@gmail.com>
> >> > escreveu:
> >> >
> >> > > Hi Gustavo,
> >> > >
> >> > > Enabling all the network needed features on NuttX is very time
> >> > > consuming, so this is a good idea to start with a working example.
> >> > >
> >> > > In this case nsh is not the recommended starting point, but wapi
> >> > > (wifi
> >> > > board profile).
> >> > >
> >> > > Try this sequence:
> >> > > make distclean
> >> > > ./tools/configure.sh esp32-devkitc:wapi
> >> > >
> >> > > Then example the webserver example.
> >> > >
> >> > > BR,
> >> > >
> >> > > Alan
> >> > >
> >> > > On 3/17/23, Gustavo Soares <gu...@hotmail.com>
> wrote:
> >> > > > Hi, Petro!
> >> > > >
> >> > > > I'm using the latest version of NuttX.
> >> > > >
> >> > > > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
> >> > > > petro.karashchenko@gmail.com> escreveu:
> >> > > >
> >> > > >> I just tried next steps:
> >> > > >>
> >> > > >> 1. tools/configure.sh esp32-devkitc:nsh
> >> > > >> 2. Additionally enabled via menuconfig:
> >> > > >> CONFIG_ESP32_EMAC=y
> >> > > >> CONFIG_ESP32_WIFI=y
> >> > > >> CONFIG_EXAMPLES_WEBSERVER=y
> >> > > >> CONFIG_NETUTILS_WEBSERVER=y
> >> > > >> CONFIG_NET_SOCKOPTS=y
> >> > > >> CONFIG_NET_TCP=y
> >> > > >> CONFIG_SCHED_HPWORK=y
> >> > > >> CONFIG_SCHED_LPWORK=y
> >> > > >> CONFIG_TLS_TASK_NELEM=1
> >> > > >> 3. make -j8
> >> > > >>
> >> > > >> The project compiles with errors.
> >> > > >> I tried that on the latest master branch. Are you using some
> >> > > >> stable
> >> > > >> release or the reported issue is on master?
> >> > > >>
> >> > > >> Best regards,
> >> > > >> Petro
> >> > > >>
> >> > > >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
> >> > > >> gustavo.felipesoares@hotmail.com> пише:
> >> > > >>
> >> > > >>> I'm trying to compile the webserver example first. When I
> created
> >> the
> >> > > >>> config file, the chosen configuration for esp32 was
> >> > > 'esp32-devkitc:nsh'.
> >> > > >>>
> >> > > >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
> >> > > >>> petro.karashchenko@gmail.com> escreveu:
> >> > > >>>
> >> > > >>>> Hello Gustavo,
> >> > > >>>>
> >> > > >>>> Are you trying to compile an example or your custom
> application?
> >> > > >>>> If you are getting started with an example, so maybe you make
> >> "make
> >> > > >>>> savedefconfig" and send it to me, so I can try locally?
> >> > > >>>>
> >> > > >>>> Best regards,
> >> > > >>>> Petro
> >> > > >>>>
> >> > > >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
> >> > > >>>> gustavo.felipesoares@hotmail.com> wrote:
> >> > > >>>>
> >> > > >>>>> Hello, Petro!
> >> > > >>>>>
> >> > > >>>>> inside menuconfig IPv4 is enabled:
> >> > > >>>>> [image: image.png]
> >> > > >>>>>
> >> > > >>>>> It's also possible to see the option in the .config file:
> >> > > >>>>> [image: image.png]
> >> > > >>>>>
> >> > > >>>>> Thank you for your support,
> >> > > >>>>> Gustavo.
> >> > > >>>>>
> >> > > >>>>>
> >> > > >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
> >> > > >>>>> petro.karashchenko@gmail.com> escreveu:
> >> > > >>>>>
> >> > > >>>>>> Hi,
> >> > > >>>>>>
> >> > > >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations
> >> are
> >> > > >>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
> >> > Could
> >> > > >>>>>> you
> >> > > >>>>>> take a look if your configuration has at least one of those
> >> > options
> >> > > >>>>>> enabled?
> >> > > >>>>>>
> >> > > >>>>>> Best regards,
> >> > > >>>>>> Petro
> >> > > >>>>>>
> >> > > >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
> >> > > >>>>>> gustavo.fssoares18@gmail.com> пише:
> >> > > >>>>>>
> >> > > >>>>>>> Hi!
> >> > > >>>>>>>
> >> > > >>>>>>> I'm starting a new project at college using NuttX and
> ESP-32.
> >> I'm
> >> > > >>>>>>> trying to build a new application for NuttX: a webserver to
> >> read
> >> > > and
> >> > > >>>>>>> execute Assembly! But the following error is showing
> >> > > >>>>>>> up:[image:
> >> > > >>>>>>> error description]
> >> > > >>>>>>> [image: netprocfs_inet4addresses function
> >> > > >>>>>>> (netdev_statistics.c
> >> > > >>>>>>> file)]
> >> > > >>>>>>>
> >> > > >>>>>>> In menuconfig I enabled:
> >> > > >>>>>>>   Network support
> >> > > >>>>>>>      ├── Link layer support
> >> > > >>>>>>>          ├── Ethernet support
> >> > > >>>>>>>          ├── Late driver initialization
> >> > > >>>>>>>      ├── TCP/IP Networking
> >> > > >>>>>>>
> >> > > >>>>>>> Application Configuration
> >> > > >>>>>>>     ├── Network utilities
> >> > > >>>>>>>         ├── Network initialization
> >> > > >>>>>>>             ├── Network initialization thread
> >> > > >>>>>>>             ├── Hardware has no MAC Address
> >> > > >>>>>>>
> >> > > >>>>>>> Could someone help me with this?
> >> > > >>>>>>> And also, I've been searching for articles about building
> >> > > >>>>>>> applications for NuttX, but didn't find any. Does anyone
> know
> >> > > where I
> >> > > >>>>>>> can
> >> > > >>>>>>> find them?
> >> > > >>>>>>>
> >> > > >>>>>>>
> >> > > >>>>>>>
> >> > > >
> >> > >
> >> >
> >>
> >
>

Re: undefined reference to 'inet_ntoa_r'

Posted by Gustavo Soares <gu...@hotmail.com>.
It's working!!
[image: image.png]

Now I can work in the webserver properly, thank you all for helping me with
this!

:)

Em sex., 17 de mar. de 2023 às 18:10, Gustavo Soares <
gustavo.felipesoares@hotmail.com> escreveu:

> After a few tests in menuconfig, now I can ping:
> [image: image.png]
>
> But the webserver example is still stuck in that same message.
>
>
> Em sex., 17 de mar. de 2023 às 16:22, MIGUEL ALEXANDRE WISINTAINER <
> tcpipchip@hotmail.com> escreveu:
>
>> I got success
>>
>> Waiting for my student get too
>>
>> talking with him now
>>
>>
>> ------------------------------
>> *De:* Alan C. Assis <ac...@gmail.com>
>> *Enviado:* sexta-feira, 17 de março de 2023 18:36
>> *Para:* dev@nuttx.apache.org <de...@nuttx.apache.org>
>> *Assunto:* Re: undefined reference to 'inet_ntoa_r'
>>
>> Please run: ifconfig
>>
>> Did you connect correctly to your WiFi router?
>>
>> BR,
>>
>> Alan
>>
>> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>> > I've defined the default gateway and the router IP in the menuconfig
>> like
>> > this:
>> >
>> > Library Routines
>> >     ├── NETDB Support
>> >         ├── DNS Name Resolution
>> >             ├── Target IPv4 address (default gateway)
>> >
>> > Application Configuration
>> >     ├── Network Utilities
>> >         ├── Network Initialization
>> >             ├── IP Address Configuration
>> >                 ├── Target IPv4 address (default gateway)
>> >                 ├── Router IPv4 address (router IP)
>> >
>> > When trying to ping, it returns 'no response':
>> > [image: ping response]
>> >
>> > Em sex., 17 de mar. de 2023 às 12:59, Petro Karashchenko <
>> > petro.karashchenko@gmail.com> escreveu:
>> >
>> >> Hello Gustavo,
>> >>
>> >> By "connected esp to the internet" do you mean that your board has
>> public
>> >> IP (not in the local network) or accessible via NAT?
>> >>
>> >> Because if you just connect board to home WiFi router that provides
>> >> Internet, this is not "connected esp to the internet". If that is the
>> >> case,
>> >> then better try to find IP config of esp wireless interface and access
>> >> webserver from LAN.
>> >>
>> >> Best regards,
>> >> Petro
>> >>
>> >> On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares <
>> >> gustavo.felipesoares@hotmail.com> wrote:
>> >>
>> >> > Hi, Alan!
>> >> >
>> >> > Thank you and Petro for the support, it's compiling now! I also
>> >> > connected
>> >> > the esp to the internet, but for some reason both 'nslookup' and
>> 'ping'
>> >> are
>> >> > failing and when I start the webserver it gets stuck in the 'starting
>> >> > webserver' message.
>> >> >
>> >> > Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <
>> acassis@gmail.com>
>> >> > escreveu:
>> >> >
>> >> > > Hi Gustavo,
>> >> > >
>> >> > > Enabling all the network needed features on NuttX is very time
>> >> > > consuming, so this is a good idea to start with a working example.
>> >> > >
>> >> > > In this case nsh is not the recommended starting point, but wapi
>> >> > > (wifi
>> >> > > board profile).
>> >> > >
>> >> > > Try this sequence:
>> >> > > make distclean
>> >> > > ./tools/configure.sh esp32-devkitc:wapi
>> >> > >
>> >> > > Then example the webserver example.
>> >> > >
>> >> > > BR,
>> >> > >
>> >> > > Alan
>> >> > >
>> >> > > On 3/17/23, Gustavo Soares <gu...@hotmail.com>
>> wrote:
>> >> > > > Hi, Petro!
>> >> > > >
>> >> > > > I'm using the latest version of NuttX.
>> >> > > >
>> >> > > > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>> >> > > > petro.karashchenko@gmail.com> escreveu:
>> >> > > >
>> >> > > >> I just tried next steps:
>> >> > > >>
>> >> > > >> 1. tools/configure.sh esp32-devkitc:nsh
>> >> > > >> 2. Additionally enabled via menuconfig:
>> >> > > >> CONFIG_ESP32_EMAC=y
>> >> > > >> CONFIG_ESP32_WIFI=y
>> >> > > >> CONFIG_EXAMPLES_WEBSERVER=y
>> >> > > >> CONFIG_NETUTILS_WEBSERVER=y
>> >> > > >> CONFIG_NET_SOCKOPTS=y
>> >> > > >> CONFIG_NET_TCP=y
>> >> > > >> CONFIG_SCHED_HPWORK=y
>> >> > > >> CONFIG_SCHED_LPWORK=y
>> >> > > >> CONFIG_TLS_TASK_NELEM=1
>> >> > > >> 3. make -j8
>> >> > > >>
>> >> > > >> The project compiles with errors.
>> >> > > >> I tried that on the latest master branch. Are you using some
>> >> > > >> stable
>> >> > > >> release or the reported issue is on master?
>> >> > > >>
>> >> > > >> Best regards,
>> >> > > >> Petro
>> >> > > >>
>> >> > > >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>> >> > > >> gustavo.felipesoares@hotmail.com> пише:
>> >> > > >>
>> >> > > >>> I'm trying to compile the webserver example first. When I
>> created
>> >> the
>> >> > > >>> config file, the chosen configuration for esp32 was
>> >> > > 'esp32-devkitc:nsh'.
>> >> > > >>>
>> >> > > >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>> >> > > >>> petro.karashchenko@gmail.com> escreveu:
>> >> > > >>>
>> >> > > >>>> Hello Gustavo,
>> >> > > >>>>
>> >> > > >>>> Are you trying to compile an example or your custom
>> application?
>> >> > > >>>> If you are getting started with an example, so maybe you make
>> >> "make
>> >> > > >>>> savedefconfig" and send it to me, so I can try locally?
>> >> > > >>>>
>> >> > > >>>> Best regards,
>> >> > > >>>> Petro
>> >> > > >>>>
>> >> > > >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>> >> > > >>>> gustavo.felipesoares@hotmail.com> wrote:
>> >> > > >>>>
>> >> > > >>>>> Hello, Petro!
>> >> > > >>>>>
>> >> > > >>>>> inside menuconfig IPv4 is enabled:
>> >> > > >>>>> [image: image.png]
>> >> > > >>>>>
>> >> > > >>>>> It's also possible to see the option in the .config file:
>> >> > > >>>>> [image: image.png]
>> >> > > >>>>>
>> >> > > >>>>> Thank you for your support,
>> >> > > >>>>> Gustavo.
>> >> > > >>>>>
>> >> > > >>>>>
>> >> > > >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>> >> > > >>>>> petro.karashchenko@gmail.com> escreveu:
>> >> > > >>>>>
>> >> > > >>>>>> Hi,
>> >> > > >>>>>>
>> >> > > >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r"
>> implementations
>> >> are
>> >> > > >>>>>> guarded by "CONFIG_NET_IPv4" and
>> "CONFIG_LIBC_IPv4_ADDRCONV".
>> >> > Could
>> >> > > >>>>>> you
>> >> > > >>>>>> take a look if your configuration has at least one of those
>> >> > options
>> >> > > >>>>>> enabled?
>> >> > > >>>>>>
>> >> > > >>>>>> Best regards,
>> >> > > >>>>>> Petro
>> >> > > >>>>>>
>> >> > > >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>> >> > > >>>>>> gustavo.fssoares18@gmail.com> пише:
>> >> > > >>>>>>
>> >> > > >>>>>>> Hi!
>> >> > > >>>>>>>
>> >> > > >>>>>>> I'm starting a new project at college using NuttX and
>> ESP-32.
>> >> I'm
>> >> > > >>>>>>> trying to build a new application for NuttX: a webserver to
>> >> read
>> >> > > and
>> >> > > >>>>>>> execute Assembly! But the following error is showing
>> >> > > >>>>>>> up:[image:
>> >> > > >>>>>>> error description]
>> >> > > >>>>>>> [image: netprocfs_inet4addresses function
>> >> > > >>>>>>> (netdev_statistics.c
>> >> > > >>>>>>> file)]
>> >> > > >>>>>>>
>> >> > > >>>>>>> In menuconfig I enabled:
>> >> > > >>>>>>>   Network support
>> >> > > >>>>>>>      ├── Link layer support
>> >> > > >>>>>>>          ├── Ethernet support
>> >> > > >>>>>>>          ├── Late driver initialization
>> >> > > >>>>>>>      ├── TCP/IP Networking
>> >> > > >>>>>>>
>> >> > > >>>>>>> Application Configuration
>> >> > > >>>>>>>     ├── Network utilities
>> >> > > >>>>>>>         ├── Network initialization
>> >> > > >>>>>>>             ├── Network initialization thread
>> >> > > >>>>>>>             ├── Hardware has no MAC Address
>> >> > > >>>>>>>
>> >> > > >>>>>>> Could someone help me with this?
>> >> > > >>>>>>> And also, I've been searching for articles about building
>> >> > > >>>>>>> applications for NuttX, but didn't find any. Does anyone
>> know
>> >> > > where I
>> >> > > >>>>>>> can
>> >> > > >>>>>>> find them?
>> >> > > >>>>>>>
>> >> > > >>>>>>>
>> >> > > >>>>>>>
>> >> > > >
>> >> > >
>> >> >
>> >>
>> >
>>
>

RE: undefined reference to 'inet_ntoa_r'

Posted by MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com>.
I got success

Waiting for my student get too

talking with him now
[cid:d2a6da37-e56f-4ff1-b819-55b2248fb1c0]
[cid:9f579613-079c-43ac-bccb-b9892d9da13c]
________________________________
De: Alan C. Assis <ac...@gmail.com>
Enviado: sexta-feira, 17 de março de 2023 18:36
Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
Assunto: Re: undefined reference to 'inet_ntoa_r'

Please run: ifconfig

Did you connect correctly to your WiFi router?

BR,

Alan

On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
> I've defined the default gateway and the router IP in the menuconfig like
> this:
>
> Library Routines
>     ├── NETDB Support
>         ├── DNS Name Resolution
>             ├── Target IPv4 address (default gateway)
>
> Application Configuration
>     ├── Network Utilities
>         ├── Network Initialization
>             ├── IP Address Configuration
>                 ├── Target IPv4 address (default gateway)
>                 ├── Router IPv4 address (router IP)
>
> When trying to ping, it returns 'no response':
> [image: ping response]
>
> Em sex., 17 de mar. de 2023 às 12:59, Petro Karashchenko <
> petro.karashchenko@gmail.com> escreveu:
>
>> Hello Gustavo,
>>
>> By "connected esp to the internet" do you mean that your board has public
>> IP (not in the local network) or accessible via NAT?
>>
>> Because if you just connect board to home WiFi router that provides
>> Internet, this is not "connected esp to the internet". If that is the
>> case,
>> then better try to find IP config of esp wireless interface and access
>> webserver from LAN.
>>
>> Best regards,
>> Petro
>>
>> On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares <
>> gustavo.felipesoares@hotmail.com> wrote:
>>
>> > Hi, Alan!
>> >
>> > Thank you and Petro for the support, it's compiling now! I also
>> > connected
>> > the esp to the internet, but for some reason both 'nslookup' and 'ping'
>> are
>> > failing and when I start the webserver it gets stuck in the 'starting
>> > webserver' message.
>> >
>> > Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <ac...@gmail.com>
>> > escreveu:
>> >
>> > > Hi Gustavo,
>> > >
>> > > Enabling all the network needed features on NuttX is very time
>> > > consuming, so this is a good idea to start with a working example.
>> > >
>> > > In this case nsh is not the recommended starting point, but wapi
>> > > (wifi
>> > > board profile).
>> > >
>> > > Try this sequence:
>> > > make distclean
>> > > ./tools/configure.sh esp32-devkitc:wapi
>> > >
>> > > Then example the webserver example.
>> > >
>> > > BR,
>> > >
>> > > Alan
>> > >
>> > > On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>> > > > Hi, Petro!
>> > > >
>> > > > I'm using the latest version of NuttX.
>> > > >
>> > > > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>> > > > petro.karashchenko@gmail.com> escreveu:
>> > > >
>> > > >> I just tried next steps:
>> > > >>
>> > > >> 1. tools/configure.sh esp32-devkitc:nsh
>> > > >> 2. Additionally enabled via menuconfig:
>> > > >> CONFIG_ESP32_EMAC=y
>> > > >> CONFIG_ESP32_WIFI=y
>> > > >> CONFIG_EXAMPLES_WEBSERVER=y
>> > > >> CONFIG_NETUTILS_WEBSERVER=y
>> > > >> CONFIG_NET_SOCKOPTS=y
>> > > >> CONFIG_NET_TCP=y
>> > > >> CONFIG_SCHED_HPWORK=y
>> > > >> CONFIG_SCHED_LPWORK=y
>> > > >> CONFIG_TLS_TASK_NELEM=1
>> > > >> 3. make -j8
>> > > >>
>> > > >> The project compiles with errors.
>> > > >> I tried that on the latest master branch. Are you using some
>> > > >> stable
>> > > >> release or the reported issue is on master?
>> > > >>
>> > > >> Best regards,
>> > > >> Petro
>> > > >>
>> > > >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>> > > >> gustavo.felipesoares@hotmail.com> пише:
>> > > >>
>> > > >>> I'm trying to compile the webserver example first. When I created
>> the
>> > > >>> config file, the chosen configuration for esp32 was
>> > > 'esp32-devkitc:nsh'.
>> > > >>>
>> > > >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>> > > >>> petro.karashchenko@gmail.com> escreveu:
>> > > >>>
>> > > >>>> Hello Gustavo,
>> > > >>>>
>> > > >>>> Are you trying to compile an example or your custom application?
>> > > >>>> If you are getting started with an example, so maybe you make
>> "make
>> > > >>>> savedefconfig" and send it to me, so I can try locally?
>> > > >>>>
>> > > >>>> Best regards,
>> > > >>>> Petro
>> > > >>>>
>> > > >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>> > > >>>> gustavo.felipesoares@hotmail.com> wrote:
>> > > >>>>
>> > > >>>>> Hello, Petro!
>> > > >>>>>
>> > > >>>>> inside menuconfig IPv4 is enabled:
>> > > >>>>> [image: image.png]
>> > > >>>>>
>> > > >>>>> It's also possible to see the option in the .config file:
>> > > >>>>> [image: image.png]
>> > > >>>>>
>> > > >>>>> Thank you for your support,
>> > > >>>>> Gustavo.
>> > > >>>>>
>> > > >>>>>
>> > > >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>> > > >>>>> petro.karashchenko@gmail.com> escreveu:
>> > > >>>>>
>> > > >>>>>> Hi,
>> > > >>>>>>
>> > > >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations
>> are
>> > > >>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
>> > Could
>> > > >>>>>> you
>> > > >>>>>> take a look if your configuration has at least one of those
>> > options
>> > > >>>>>> enabled?
>> > > >>>>>>
>> > > >>>>>> Best regards,
>> > > >>>>>> Petro
>> > > >>>>>>
>> > > >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>> > > >>>>>> gustavo.fssoares18@gmail.com> пише:
>> > > >>>>>>
>> > > >>>>>>> Hi!
>> > > >>>>>>>
>> > > >>>>>>> I'm starting a new project at college using NuttX and ESP-32.
>> I'm
>> > > >>>>>>> trying to build a new application for NuttX: a webserver to
>> read
>> > > and
>> > > >>>>>>> execute Assembly! But the following error is showing
>> > > >>>>>>> up:[image:
>> > > >>>>>>> error description]
>> > > >>>>>>> [image: netprocfs_inet4addresses function
>> > > >>>>>>> (netdev_statistics.c
>> > > >>>>>>> file)]
>> > > >>>>>>>
>> > > >>>>>>> In menuconfig I enabled:
>> > > >>>>>>>   Network support
>> > > >>>>>>>      ├── Link layer support
>> > > >>>>>>>          ├── Ethernet support
>> > > >>>>>>>          ├── Late driver initialization
>> > > >>>>>>>      ├── TCP/IP Networking
>> > > >>>>>>>
>> > > >>>>>>> Application Configuration
>> > > >>>>>>>     ├── Network utilities
>> > > >>>>>>>         ├── Network initialization
>> > > >>>>>>>             ├── Network initialization thread
>> > > >>>>>>>             ├── Hardware has no MAC Address
>> > > >>>>>>>
>> > > >>>>>>> Could someone help me with this?
>> > > >>>>>>> And also, I've been searching for articles about building
>> > > >>>>>>> applications for NuttX, but didn't find any. Does anyone know
>> > > where I
>> > > >>>>>>> can
>> > > >>>>>>> find them?
>> > > >>>>>>>
>> > > >>>>>>>
>> > > >>>>>>>
>> > > >
>> > >
>> >
>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by "Alan C. Assis" <ac...@gmail.com>.
Please run: ifconfig

Did you connect correctly to your WiFi router?

BR,

Alan

On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
> I've defined the default gateway and the router IP in the menuconfig like
> this:
>
> Library Routines
>     ├── NETDB Support
>         ├── DNS Name Resolution
>             ├── Target IPv4 address (default gateway)
>
> Application Configuration
>     ├── Network Utilities
>         ├── Network Initialization
>             ├── IP Address Configuration
>                 ├── Target IPv4 address (default gateway)
>                 ├── Router IPv4 address (router IP)
>
> When trying to ping, it returns 'no response':
> [image: ping response]
>
> Em sex., 17 de mar. de 2023 às 12:59, Petro Karashchenko <
> petro.karashchenko@gmail.com> escreveu:
>
>> Hello Gustavo,
>>
>> By "connected esp to the internet" do you mean that your board has public
>> IP (not in the local network) or accessible via NAT?
>>
>> Because if you just connect board to home WiFi router that provides
>> Internet, this is not "connected esp to the internet". If that is the
>> case,
>> then better try to find IP config of esp wireless interface and access
>> webserver from LAN.
>>
>> Best regards,
>> Petro
>>
>> On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares <
>> gustavo.felipesoares@hotmail.com> wrote:
>>
>> > Hi, Alan!
>> >
>> > Thank you and Petro for the support, it's compiling now! I also
>> > connected
>> > the esp to the internet, but for some reason both 'nslookup' and 'ping'
>> are
>> > failing and when I start the webserver it gets stuck in the 'starting
>> > webserver' message.
>> >
>> > Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <ac...@gmail.com>
>> > escreveu:
>> >
>> > > Hi Gustavo,
>> > >
>> > > Enabling all the network needed features on NuttX is very time
>> > > consuming, so this is a good idea to start with a working example.
>> > >
>> > > In this case nsh is not the recommended starting point, but wapi
>> > > (wifi
>> > > board profile).
>> > >
>> > > Try this sequence:
>> > > make distclean
>> > > ./tools/configure.sh esp32-devkitc:wapi
>> > >
>> > > Then example the webserver example.
>> > >
>> > > BR,
>> > >
>> > > Alan
>> > >
>> > > On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>> > > > Hi, Petro!
>> > > >
>> > > > I'm using the latest version of NuttX.
>> > > >
>> > > > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>> > > > petro.karashchenko@gmail.com> escreveu:
>> > > >
>> > > >> I just tried next steps:
>> > > >>
>> > > >> 1. tools/configure.sh esp32-devkitc:nsh
>> > > >> 2. Additionally enabled via menuconfig:
>> > > >> CONFIG_ESP32_EMAC=y
>> > > >> CONFIG_ESP32_WIFI=y
>> > > >> CONFIG_EXAMPLES_WEBSERVER=y
>> > > >> CONFIG_NETUTILS_WEBSERVER=y
>> > > >> CONFIG_NET_SOCKOPTS=y
>> > > >> CONFIG_NET_TCP=y
>> > > >> CONFIG_SCHED_HPWORK=y
>> > > >> CONFIG_SCHED_LPWORK=y
>> > > >> CONFIG_TLS_TASK_NELEM=1
>> > > >> 3. make -j8
>> > > >>
>> > > >> The project compiles with errors.
>> > > >> I tried that on the latest master branch. Are you using some
>> > > >> stable
>> > > >> release or the reported issue is on master?
>> > > >>
>> > > >> Best regards,
>> > > >> Petro
>> > > >>
>> > > >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>> > > >> gustavo.felipesoares@hotmail.com> пише:
>> > > >>
>> > > >>> I'm trying to compile the webserver example first. When I created
>> the
>> > > >>> config file, the chosen configuration for esp32 was
>> > > 'esp32-devkitc:nsh'.
>> > > >>>
>> > > >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>> > > >>> petro.karashchenko@gmail.com> escreveu:
>> > > >>>
>> > > >>>> Hello Gustavo,
>> > > >>>>
>> > > >>>> Are you trying to compile an example or your custom application?
>> > > >>>> If you are getting started with an example, so maybe you make
>> "make
>> > > >>>> savedefconfig" and send it to me, so I can try locally?
>> > > >>>>
>> > > >>>> Best regards,
>> > > >>>> Petro
>> > > >>>>
>> > > >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>> > > >>>> gustavo.felipesoares@hotmail.com> wrote:
>> > > >>>>
>> > > >>>>> Hello, Petro!
>> > > >>>>>
>> > > >>>>> inside menuconfig IPv4 is enabled:
>> > > >>>>> [image: image.png]
>> > > >>>>>
>> > > >>>>> It's also possible to see the option in the .config file:
>> > > >>>>> [image: image.png]
>> > > >>>>>
>> > > >>>>> Thank you for your support,
>> > > >>>>> Gustavo.
>> > > >>>>>
>> > > >>>>>
>> > > >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>> > > >>>>> petro.karashchenko@gmail.com> escreveu:
>> > > >>>>>
>> > > >>>>>> Hi,
>> > > >>>>>>
>> > > >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations
>> are
>> > > >>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
>> > Could
>> > > >>>>>> you
>> > > >>>>>> take a look if your configuration has at least one of those
>> > options
>> > > >>>>>> enabled?
>> > > >>>>>>
>> > > >>>>>> Best regards,
>> > > >>>>>> Petro
>> > > >>>>>>
>> > > >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>> > > >>>>>> gustavo.fssoares18@gmail.com> пише:
>> > > >>>>>>
>> > > >>>>>>> Hi!
>> > > >>>>>>>
>> > > >>>>>>> I'm starting a new project at college using NuttX and ESP-32.
>> I'm
>> > > >>>>>>> trying to build a new application for NuttX: a webserver to
>> read
>> > > and
>> > > >>>>>>> execute Assembly! But the following error is showing
>> > > >>>>>>> up:[image:
>> > > >>>>>>> error description]
>> > > >>>>>>> [image: netprocfs_inet4addresses function
>> > > >>>>>>> (netdev_statistics.c
>> > > >>>>>>> file)]
>> > > >>>>>>>
>> > > >>>>>>> In menuconfig I enabled:
>> > > >>>>>>>   Network support
>> > > >>>>>>>      ├── Link layer support
>> > > >>>>>>>          ├── Ethernet support
>> > > >>>>>>>          ├── Late driver initialization
>> > > >>>>>>>      ├── TCP/IP Networking
>> > > >>>>>>>
>> > > >>>>>>> Application Configuration
>> > > >>>>>>>     ├── Network utilities
>> > > >>>>>>>         ├── Network initialization
>> > > >>>>>>>             ├── Network initialization thread
>> > > >>>>>>>             ├── Hardware has no MAC Address
>> > > >>>>>>>
>> > > >>>>>>> Could someone help me with this?
>> > > >>>>>>> And also, I've been searching for articles about building
>> > > >>>>>>> applications for NuttX, but didn't find any. Does anyone know
>> > > where I
>> > > >>>>>>> can
>> > > >>>>>>> find them?
>> > > >>>>>>>
>> > > >>>>>>>
>> > > >>>>>>>
>> > > >
>> > >
>> >
>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by Gustavo Soares <gu...@hotmail.com>.
I've defined the default gateway and the router IP in the menuconfig like
this:

Library Routines
    ├── NETDB Support
        ├── DNS Name Resolution
            ├── Target IPv4 address (default gateway)

Application Configuration
    ├── Network Utilities
        ├── Network Initialization
            ├── IP Address Configuration
                ├── Target IPv4 address (default gateway)
                ├── Router IPv4 address (router IP)

When trying to ping, it returns 'no response':
[image: ping response]

Em sex., 17 de mar. de 2023 às 12:59, Petro Karashchenko <
petro.karashchenko@gmail.com> escreveu:

> Hello Gustavo,
>
> By "connected esp to the internet" do you mean that your board has public
> IP (not in the local network) or accessible via NAT?
>
> Because if you just connect board to home WiFi router that provides
> Internet, this is not "connected esp to the internet". If that is the case,
> then better try to find IP config of esp wireless interface and access
> webserver from LAN.
>
> Best regards,
> Petro
>
> On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares <
> gustavo.felipesoares@hotmail.com> wrote:
>
> > Hi, Alan!
> >
> > Thank you and Petro for the support, it's compiling now! I also connected
> > the esp to the internet, but for some reason both 'nslookup' and 'ping'
> are
> > failing and when I start the webserver it gets stuck in the 'starting
> > webserver' message.
> >
> > Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <ac...@gmail.com>
> > escreveu:
> >
> > > Hi Gustavo,
> > >
> > > Enabling all the network needed features on NuttX is very time
> > > consuming, so this is a good idea to start with a working example.
> > >
> > > In this case nsh is not the recommended starting point, but wapi (wifi
> > > board profile).
> > >
> > > Try this sequence:
> > > make distclean
> > > ./tools/configure.sh esp32-devkitc:wapi
> > >
> > > Then example the webserver example.
> > >
> > > BR,
> > >
> > > Alan
> > >
> > > On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
> > > > Hi, Petro!
> > > >
> > > > I'm using the latest version of NuttX.
> > > >
> > > > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
> > > > petro.karashchenko@gmail.com> escreveu:
> > > >
> > > >> I just tried next steps:
> > > >>
> > > >> 1. tools/configure.sh esp32-devkitc:nsh
> > > >> 2. Additionally enabled via menuconfig:
> > > >> CONFIG_ESP32_EMAC=y
> > > >> CONFIG_ESP32_WIFI=y
> > > >> CONFIG_EXAMPLES_WEBSERVER=y
> > > >> CONFIG_NETUTILS_WEBSERVER=y
> > > >> CONFIG_NET_SOCKOPTS=y
> > > >> CONFIG_NET_TCP=y
> > > >> CONFIG_SCHED_HPWORK=y
> > > >> CONFIG_SCHED_LPWORK=y
> > > >> CONFIG_TLS_TASK_NELEM=1
> > > >> 3. make -j8
> > > >>
> > > >> The project compiles with errors.
> > > >> I tried that on the latest master branch. Are you using some stable
> > > >> release or the reported issue is on master?
> > > >>
> > > >> Best regards,
> > > >> Petro
> > > >>
> > > >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
> > > >> gustavo.felipesoares@hotmail.com> пише:
> > > >>
> > > >>> I'm trying to compile the webserver example first. When I created
> the
> > > >>> config file, the chosen configuration for esp32 was
> > > 'esp32-devkitc:nsh'.
> > > >>>
> > > >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
> > > >>> petro.karashchenko@gmail.com> escreveu:
> > > >>>
> > > >>>> Hello Gustavo,
> > > >>>>
> > > >>>> Are you trying to compile an example or your custom application?
> > > >>>> If you are getting started with an example, so maybe you make
> "make
> > > >>>> savedefconfig" and send it to me, so I can try locally?
> > > >>>>
> > > >>>> Best regards,
> > > >>>> Petro
> > > >>>>
> > > >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
> > > >>>> gustavo.felipesoares@hotmail.com> wrote:
> > > >>>>
> > > >>>>> Hello, Petro!
> > > >>>>>
> > > >>>>> inside menuconfig IPv4 is enabled:
> > > >>>>> [image: image.png]
> > > >>>>>
> > > >>>>> It's also possible to see the option in the .config file:
> > > >>>>> [image: image.png]
> > > >>>>>
> > > >>>>> Thank you for your support,
> > > >>>>> Gustavo.
> > > >>>>>
> > > >>>>>
> > > >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
> > > >>>>> petro.karashchenko@gmail.com> escreveu:
> > > >>>>>
> > > >>>>>> Hi,
> > > >>>>>>
> > > >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations
> are
> > > >>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
> > Could
> > > >>>>>> you
> > > >>>>>> take a look if your configuration has at least one of those
> > options
> > > >>>>>> enabled?
> > > >>>>>>
> > > >>>>>> Best regards,
> > > >>>>>> Petro
> > > >>>>>>
> > > >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
> > > >>>>>> gustavo.fssoares18@gmail.com> пише:
> > > >>>>>>
> > > >>>>>>> Hi!
> > > >>>>>>>
> > > >>>>>>> I'm starting a new project at college using NuttX and ESP-32.
> I'm
> > > >>>>>>> trying to build a new application for NuttX: a webserver to
> read
> > > and
> > > >>>>>>> execute Assembly! But the following error is showing up:[image:
> > > >>>>>>> error description]
> > > >>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
> > > >>>>>>> file)]
> > > >>>>>>>
> > > >>>>>>> In menuconfig I enabled:
> > > >>>>>>>   Network support
> > > >>>>>>>      ├── Link layer support
> > > >>>>>>>          ├── Ethernet support
> > > >>>>>>>          ├── Late driver initialization
> > > >>>>>>>      ├── TCP/IP Networking
> > > >>>>>>>
> > > >>>>>>> Application Configuration
> > > >>>>>>>     ├── Network utilities
> > > >>>>>>>         ├── Network initialization
> > > >>>>>>>             ├── Network initialization thread
> > > >>>>>>>             ├── Hardware has no MAC Address
> > > >>>>>>>
> > > >>>>>>> Could someone help me with this?
> > > >>>>>>> And also, I've been searching for articles about building
> > > >>>>>>> applications for NuttX, but didn't find any. Does anyone know
> > > where I
> > > >>>>>>> can
> > > >>>>>>> find them?
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >
> > >
> >
>

Re: undefined reference to 'inet_ntoa_r'

Posted by Petro Karashchenko <pe...@gmail.com>.
Hello Gustavo,

By "connected esp to the internet" do you mean that your board has public
IP (not in the local network) or accessible via NAT?

Because if you just connect board to home WiFi router that provides
Internet, this is not "connected esp to the internet". If that is the case,
then better try to find IP config of esp wireless interface and access
webserver from LAN.

Best regards,
Petro

On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares <
gustavo.felipesoares@hotmail.com> wrote:

> Hi, Alan!
>
> Thank you and Petro for the support, it's compiling now! I also connected
> the esp to the internet, but for some reason both 'nslookup' and 'ping' are
> failing and when I start the webserver it gets stuck in the 'starting
> webserver' message.
>
> Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <ac...@gmail.com>
> escreveu:
>
> > Hi Gustavo,
> >
> > Enabling all the network needed features on NuttX is very time
> > consuming, so this is a good idea to start with a working example.
> >
> > In this case nsh is not the recommended starting point, but wapi (wifi
> > board profile).
> >
> > Try this sequence:
> > make distclean
> > ./tools/configure.sh esp32-devkitc:wapi
> >
> > Then example the webserver example.
> >
> > BR,
> >
> > Alan
> >
> > On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
> > > Hi, Petro!
> > >
> > > I'm using the latest version of NuttX.
> > >
> > > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
> > > petro.karashchenko@gmail.com> escreveu:
> > >
> > >> I just tried next steps:
> > >>
> > >> 1. tools/configure.sh esp32-devkitc:nsh
> > >> 2. Additionally enabled via menuconfig:
> > >> CONFIG_ESP32_EMAC=y
> > >> CONFIG_ESP32_WIFI=y
> > >> CONFIG_EXAMPLES_WEBSERVER=y
> > >> CONFIG_NETUTILS_WEBSERVER=y
> > >> CONFIG_NET_SOCKOPTS=y
> > >> CONFIG_NET_TCP=y
> > >> CONFIG_SCHED_HPWORK=y
> > >> CONFIG_SCHED_LPWORK=y
> > >> CONFIG_TLS_TASK_NELEM=1
> > >> 3. make -j8
> > >>
> > >> The project compiles with errors.
> > >> I tried that on the latest master branch. Are you using some stable
> > >> release or the reported issue is on master?
> > >>
> > >> Best regards,
> > >> Petro
> > >>
> > >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
> > >> gustavo.felipesoares@hotmail.com> пише:
> > >>
> > >>> I'm trying to compile the webserver example first. When I created the
> > >>> config file, the chosen configuration for esp32 was
> > 'esp32-devkitc:nsh'.
> > >>>
> > >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
> > >>> petro.karashchenko@gmail.com> escreveu:
> > >>>
> > >>>> Hello Gustavo,
> > >>>>
> > >>>> Are you trying to compile an example or your custom application?
> > >>>> If you are getting started with an example, so maybe you make "make
> > >>>> savedefconfig" and send it to me, so I can try locally?
> > >>>>
> > >>>> Best regards,
> > >>>> Petro
> > >>>>
> > >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
> > >>>> gustavo.felipesoares@hotmail.com> wrote:
> > >>>>
> > >>>>> Hello, Petro!
> > >>>>>
> > >>>>> inside menuconfig IPv4 is enabled:
> > >>>>> [image: image.png]
> > >>>>>
> > >>>>> It's also possible to see the option in the .config file:
> > >>>>> [image: image.png]
> > >>>>>
> > >>>>> Thank you for your support,
> > >>>>> Gustavo.
> > >>>>>
> > >>>>>
> > >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
> > >>>>> petro.karashchenko@gmail.com> escreveu:
> > >>>>>
> > >>>>>> Hi,
> > >>>>>>
> > >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
> > >>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
> Could
> > >>>>>> you
> > >>>>>> take a look if your configuration has at least one of those
> options
> > >>>>>> enabled?
> > >>>>>>
> > >>>>>> Best regards,
> > >>>>>> Petro
> > >>>>>>
> > >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
> > >>>>>> gustavo.fssoares18@gmail.com> пише:
> > >>>>>>
> > >>>>>>> Hi!
> > >>>>>>>
> > >>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
> > >>>>>>> trying to build a new application for NuttX: a webserver to read
> > and
> > >>>>>>> execute Assembly! But the following error is showing up:[image:
> > >>>>>>> error description]
> > >>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
> > >>>>>>> file)]
> > >>>>>>>
> > >>>>>>> In menuconfig I enabled:
> > >>>>>>>   Network support
> > >>>>>>>      ├── Link layer support
> > >>>>>>>          ├── Ethernet support
> > >>>>>>>          ├── Late driver initialization
> > >>>>>>>      ├── TCP/IP Networking
> > >>>>>>>
> > >>>>>>> Application Configuration
> > >>>>>>>     ├── Network utilities
> > >>>>>>>         ├── Network initialization
> > >>>>>>>             ├── Network initialization thread
> > >>>>>>>             ├── Hardware has no MAC Address
> > >>>>>>>
> > >>>>>>> Could someone help me with this?
> > >>>>>>> And also, I've been searching for articles about building
> > >>>>>>> applications for NuttX, but didn't find any. Does anyone know
> > where I
> > >>>>>>> can
> > >>>>>>> find them?
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >
> >
>

Re: undefined reference to 'inet_ntoa_r'

Posted by Gustavo Soares <gu...@hotmail.com>.
Hi, Alan!

Thank you and Petro for the support, it's compiling now! I also connected
the esp to the internet, but for some reason both 'nslookup' and 'ping' are
failing and when I start the webserver it gets stuck in the 'starting
webserver' message.

Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <ac...@gmail.com>
escreveu:

> Hi Gustavo,
>
> Enabling all the network needed features on NuttX is very time
> consuming, so this is a good idea to start with a working example.
>
> In this case nsh is not the recommended starting point, but wapi (wifi
> board profile).
>
> Try this sequence:
> make distclean
> ./tools/configure.sh esp32-devkitc:wapi
>
> Then example the webserver example.
>
> BR,
>
> Alan
>
> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
> > Hi, Petro!
> >
> > I'm using the latest version of NuttX.
> >
> > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
> > petro.karashchenko@gmail.com> escreveu:
> >
> >> I just tried next steps:
> >>
> >> 1. tools/configure.sh esp32-devkitc:nsh
> >> 2. Additionally enabled via menuconfig:
> >> CONFIG_ESP32_EMAC=y
> >> CONFIG_ESP32_WIFI=y
> >> CONFIG_EXAMPLES_WEBSERVER=y
> >> CONFIG_NETUTILS_WEBSERVER=y
> >> CONFIG_NET_SOCKOPTS=y
> >> CONFIG_NET_TCP=y
> >> CONFIG_SCHED_HPWORK=y
> >> CONFIG_SCHED_LPWORK=y
> >> CONFIG_TLS_TASK_NELEM=1
> >> 3. make -j8
> >>
> >> The project compiles with errors.
> >> I tried that on the latest master branch. Are you using some stable
> >> release or the reported issue is on master?
> >>
> >> Best regards,
> >> Petro
> >>
> >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
> >> gustavo.felipesoares@hotmail.com> пише:
> >>
> >>> I'm trying to compile the webserver example first. When I created the
> >>> config file, the chosen configuration for esp32 was
> 'esp32-devkitc:nsh'.
> >>>
> >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
> >>> petro.karashchenko@gmail.com> escreveu:
> >>>
> >>>> Hello Gustavo,
> >>>>
> >>>> Are you trying to compile an example or your custom application?
> >>>> If you are getting started with an example, so maybe you make "make
> >>>> savedefconfig" and send it to me, so I can try locally?
> >>>>
> >>>> Best regards,
> >>>> Petro
> >>>>
> >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
> >>>> gustavo.felipesoares@hotmail.com> wrote:
> >>>>
> >>>>> Hello, Petro!
> >>>>>
> >>>>> inside menuconfig IPv4 is enabled:
> >>>>> [image: image.png]
> >>>>>
> >>>>> It's also possible to see the option in the .config file:
> >>>>> [image: image.png]
> >>>>>
> >>>>> Thank you for your support,
> >>>>> Gustavo.
> >>>>>
> >>>>>
> >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
> >>>>> petro.karashchenko@gmail.com> escreveu:
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
> >>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could
> >>>>>> you
> >>>>>> take a look if your configuration has at least one of those options
> >>>>>> enabled?
> >>>>>>
> >>>>>> Best regards,
> >>>>>> Petro
> >>>>>>
> >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
> >>>>>> gustavo.fssoares18@gmail.com> пише:
> >>>>>>
> >>>>>>> Hi!
> >>>>>>>
> >>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
> >>>>>>> trying to build a new application for NuttX: a webserver to read
> and
> >>>>>>> execute Assembly! But the following error is showing up:[image:
> >>>>>>> error description]
> >>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
> >>>>>>> file)]
> >>>>>>>
> >>>>>>> In menuconfig I enabled:
> >>>>>>>   Network support
> >>>>>>>      ├── Link layer support
> >>>>>>>          ├── Ethernet support
> >>>>>>>          ├── Late driver initialization
> >>>>>>>      ├── TCP/IP Networking
> >>>>>>>
> >>>>>>> Application Configuration
> >>>>>>>     ├── Network utilities
> >>>>>>>         ├── Network initialization
> >>>>>>>             ├── Network initialization thread
> >>>>>>>             ├── Hardware has no MAC Address
> >>>>>>>
> >>>>>>> Could someone help me with this?
> >>>>>>> And also, I've been searching for articles about building
> >>>>>>> applications for NuttX, but didn't find any. Does anyone know
> where I
> >>>>>>> can
> >>>>>>> find them?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >
>

Re: undefined reference to 'inet_ntoa_r'

Posted by "Alan C. Assis" <ac...@gmail.com>.
I just noticed it is documented only for ESP32S2:

https://nuttx.apache.org/docs/latest/platforms/xtensa/esp32s2/index.html

Should be extended to ESP32, ESP32C3, ESP32C6 and ESP32S3.

BR,

Alan

On 3/17/23, Sebastien Lorquet <se...@lorquet.fr> wrote:
> Oh great, I'll test that, thanks!
>
> Sebastien
>
> Le 17/03/2023 à 15:13, Alan C. Assis a écrit :
>> Yes, it is not needed!
>>
>> After configuring your esp32c3 board file (also works for any esp32xx
>> chip), just run:
>>
>> make bootloader
>> make flash ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BINDIR=.
>>
>> BR,
>>
>> Alan
>>
>> On 3/17/23, Sebastien Lorquet <se...@lorquet.fr> wrote:
>>> Hi,
>>>
>>> Dont you need the full ESP-IDF to build the bootloader and stubs?
>>>
>>> If you have a simplified build method I am interested.
>>>
>>> Last time I checked esp32-c3, it worked perfectly, but the bootloader
>>> build was a bit cumbersome (fortunately it's only needed once, which is
>>> okay).
>>>
>>> IIRC it even required two toolchains, a riscv32 one for esp-idf and a
>>> riscv64 for nuttx.
>>>
>>> Best regards,
>>>
>>> Sebastien
>>>
>>>
>>> Le 17/03/2023 à 13:45, Alan C. Assis a écrit :
>>>> Hi Miguel,
>>>>
>>>> Nice to hear it.
>>>>
>>>> BTW, you don't need to use esp-idf, it is overkill (you will waste too
>>>> much disc space).
>>>>
>>>> Just download the latest Xtensa ESP32 toolchain:
>>>>
>>>> https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html#custom-installation
>>>>
>>>> BR,
>>>>
>>>> Alan
>>>>
>>>> On 3/17/23, MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com> wrote:
>>>>> Alan
>>>>>
>>>>> Here is compiling, after use
>>>>>
>>>>> make distclean
>>>>> ./tools/configure.sh esp32-devkitc:wapi
>>>>>
>>>>> Gustavo, did you use the last update of esp-idf ?
>>>>>
>>>>> [cid:70bddf51-e6f1-4a78-867e-90ffdda495e5]
>>>>>
>>>>> ________________________________
>>>>> De: Alan C. Assis <ac...@gmail.com>
>>>>> Enviado: sexta-feira, 17 de março de 2023 11:52
>>>>> Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
>>>>> Assunto: Re: undefined reference to 'inet_ntoa_r'
>>>>>
>>>>> s/Then example/Then enable/
>>>>>
>>>>> On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
>>>>>> Hi Gustavo,
>>>>>>
>>>>>> Enabling all the network needed features on NuttX is very time
>>>>>> consuming, so this is a good idea to start with a working example.
>>>>>>
>>>>>> In this case nsh is not the recommended starting point, but wapi
>>>>>> (wifi
>>>>>> board profile).
>>>>>>
>>>>>> Try this sequence:
>>>>>> make distclean
>>>>>> ./tools/configure.sh esp32-devkitc:wapi
>>>>>>
>>>>>> Then example the webserver example.
>>>>>>
>>>>>> BR,
>>>>>>
>>>>>> Alan
>>>>>>
>>>>>> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>>>>>>> Hi, Petro!
>>>>>>>
>>>>>>> I'm using the latest version of NuttX.
>>>>>>>
>>>>>>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>
>>>>>>>> I just tried next steps:
>>>>>>>>
>>>>>>>> 1. tools/configure.sh esp32-devkitc:nsh
>>>>>>>> 2. Additionally enabled via menuconfig:
>>>>>>>> CONFIG_ESP32_EMAC=y
>>>>>>>> CONFIG_ESP32_WIFI=y
>>>>>>>> CONFIG_EXAMPLES_WEBSERVER=y
>>>>>>>> CONFIG_NETUTILS_WEBSERVER=y
>>>>>>>> CONFIG_NET_SOCKOPTS=y
>>>>>>>> CONFIG_NET_TCP=y
>>>>>>>> CONFIG_SCHED_HPWORK=y
>>>>>>>> CONFIG_SCHED_LPWORK=y
>>>>>>>> CONFIG_TLS_TASK_NELEM=1
>>>>>>>> 3. make -j8
>>>>>>>>
>>>>>>>> The project compiles with errors.
>>>>>>>> I tried that on the latest master branch. Are you using some stable
>>>>>>>> release or the reported issue is on master?
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Petro
>>>>>>>>
>>>>>>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>>>>>>> gustavo.felipesoares@hotmail.com> пише:
>>>>>>>>
>>>>>>>>> I'm trying to compile the webserver example first. When I created
>>>>>>>>> the
>>>>>>>>> config file, the chosen configuration for esp32 was
>>>>>>>>> 'esp32-devkitc:nsh'.
>>>>>>>>>
>>>>>>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>>>
>>>>>>>>>> Hello Gustavo,
>>>>>>>>>>
>>>>>>>>>> Are you trying to compile an example or your custom application?
>>>>>>>>>> If you are getting started with an example, so maybe you make
>>>>>>>>>> "make
>>>>>>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>> Petro
>>>>>>>>>>
>>>>>>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>>>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello, Petro!
>>>>>>>>>>>
>>>>>>>>>>> inside menuconfig IPv4 is enabled:
>>>>>>>>>>> [image: image.png]
>>>>>>>>>>>
>>>>>>>>>>> It's also possible to see the option in the .config file:
>>>>>>>>>>> [image: image.png]
>>>>>>>>>>>
>>>>>>>>>>> Thank you for your support,
>>>>>>>>>>> Gustavo.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations
>>>>>>>>>>>> are
>>>>>>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
>>>>>>>>>>>> Could
>>>>>>>>>>>> you
>>>>>>>>>>>> take a look if your configuration has at least one of those
>>>>>>>>>>>> options
>>>>>>>>>>>> enabled?
>>>>>>>>>>>>
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> Petro
>>>>>>>>>>>>
>>>>>>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi!
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm starting a new project at college using NuttX and ESP-32.
>>>>>>>>>>>>> I'm
>>>>>>>>>>>>> trying to build a new application for NuttX: a webserver to
>>>>>>>>>>>>> read
>>>>>>>>>>>>> and
>>>>>>>>>>>>> execute Assembly! But the following error is showing
>>>>>>>>>>>>> up:[image:
>>>>>>>>>>>>> error description]
>>>>>>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>>>>>>> file)]
>>>>>>>>>>>>>
>>>>>>>>>>>>> In menuconfig I enabled:
>>>>>>>>>>>>>     Network support
>>>>>>>>>>>>>        ├── Link layer support
>>>>>>>>>>>>>            ├── Ethernet support
>>>>>>>>>>>>>            ├── Late driver initialization
>>>>>>>>>>>>>        ├── TCP/IP Networking
>>>>>>>>>>>>>
>>>>>>>>>>>>> Application Configuration
>>>>>>>>>>>>>       ├── Network utilities
>>>>>>>>>>>>>           ├── Network initialization
>>>>>>>>>>>>>               ├── Network initialization thread
>>>>>>>>>>>>>               ├── Hardware has no MAC Address
>>>>>>>>>>>>>
>>>>>>>>>>>>> Could someone help me with this?
>>>>>>>>>>>>> And also, I've been searching for articles about building
>>>>>>>>>>>>> applications for NuttX, but didn't find any. Does anyone know
>>>>>>>>>>>>> where
>>>>>>>>>>>>> I
>>>>>>>>>>>>> can
>>>>>>>>>>>>> find them?
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by Sebastien Lorquet <se...@lorquet.fr>.
Oh great, I'll test that, thanks!

Sebastien

Le 17/03/2023 à 15:13, Alan C. Assis a écrit :
> Yes, it is not needed!
>
> After configuring your esp32c3 board file (also works for any esp32xx
> chip), just run:
>
> make bootloader
> make flash ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BINDIR=.
>
> BR,
>
> Alan
>
> On 3/17/23, Sebastien Lorquet <se...@lorquet.fr> wrote:
>> Hi,
>>
>> Dont you need the full ESP-IDF to build the bootloader and stubs?
>>
>> If you have a simplified build method I am interested.
>>
>> Last time I checked esp32-c3, it worked perfectly, but the bootloader
>> build was a bit cumbersome (fortunately it's only needed once, which is
>> okay).
>>
>> IIRC it even required two toolchains, a riscv32 one for esp-idf and a
>> riscv64 for nuttx.
>>
>> Best regards,
>>
>> Sebastien
>>
>>
>> Le 17/03/2023 à 13:45, Alan C. Assis a écrit :
>>> Hi Miguel,
>>>
>>> Nice to hear it.
>>>
>>> BTW, you don't need to use esp-idf, it is overkill (you will waste too
>>> much disc space).
>>>
>>> Just download the latest Xtensa ESP32 toolchain:
>>>
>>> https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html#custom-installation
>>>
>>> BR,
>>>
>>> Alan
>>>
>>> On 3/17/23, MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com> wrote:
>>>> Alan
>>>>
>>>> Here is compiling, after use
>>>>
>>>> make distclean
>>>> ./tools/configure.sh esp32-devkitc:wapi
>>>>
>>>> Gustavo, did you use the last update of esp-idf ?
>>>>
>>>> [cid:70bddf51-e6f1-4a78-867e-90ffdda495e5]
>>>>
>>>> ________________________________
>>>> De: Alan C. Assis <ac...@gmail.com>
>>>> Enviado: sexta-feira, 17 de março de 2023 11:52
>>>> Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
>>>> Assunto: Re: undefined reference to 'inet_ntoa_r'
>>>>
>>>> s/Then example/Then enable/
>>>>
>>>> On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
>>>>> Hi Gustavo,
>>>>>
>>>>> Enabling all the network needed features on NuttX is very time
>>>>> consuming, so this is a good idea to start with a working example.
>>>>>
>>>>> In this case nsh is not the recommended starting point, but wapi (wifi
>>>>> board profile).
>>>>>
>>>>> Try this sequence:
>>>>> make distclean
>>>>> ./tools/configure.sh esp32-devkitc:wapi
>>>>>
>>>>> Then example the webserver example.
>>>>>
>>>>> BR,
>>>>>
>>>>> Alan
>>>>>
>>>>> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>>>>>> Hi, Petro!
>>>>>>
>>>>>> I'm using the latest version of NuttX.
>>>>>>
>>>>>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>
>>>>>>> I just tried next steps:
>>>>>>>
>>>>>>> 1. tools/configure.sh esp32-devkitc:nsh
>>>>>>> 2. Additionally enabled via menuconfig:
>>>>>>> CONFIG_ESP32_EMAC=y
>>>>>>> CONFIG_ESP32_WIFI=y
>>>>>>> CONFIG_EXAMPLES_WEBSERVER=y
>>>>>>> CONFIG_NETUTILS_WEBSERVER=y
>>>>>>> CONFIG_NET_SOCKOPTS=y
>>>>>>> CONFIG_NET_TCP=y
>>>>>>> CONFIG_SCHED_HPWORK=y
>>>>>>> CONFIG_SCHED_LPWORK=y
>>>>>>> CONFIG_TLS_TASK_NELEM=1
>>>>>>> 3. make -j8
>>>>>>>
>>>>>>> The project compiles with errors.
>>>>>>> I tried that on the latest master branch. Are you using some stable
>>>>>>> release or the reported issue is on master?
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Petro
>>>>>>>
>>>>>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>>>>>> gustavo.felipesoares@hotmail.com> пише:
>>>>>>>
>>>>>>>> I'm trying to compile the webserver example first. When I created
>>>>>>>> the
>>>>>>>> config file, the chosen configuration for esp32 was
>>>>>>>> 'esp32-devkitc:nsh'.
>>>>>>>>
>>>>>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>>
>>>>>>>>> Hello Gustavo,
>>>>>>>>>
>>>>>>>>> Are you trying to compile an example or your custom application?
>>>>>>>>> If you are getting started with an example, so maybe you make "make
>>>>>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>> Petro
>>>>>>>>>
>>>>>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hello, Petro!
>>>>>>>>>>
>>>>>>>>>> inside menuconfig IPv4 is enabled:
>>>>>>>>>> [image: image.png]
>>>>>>>>>>
>>>>>>>>>> It's also possible to see the option in the .config file:
>>>>>>>>>> [image: image.png]
>>>>>>>>>>
>>>>>>>>>> Thank you for your support,
>>>>>>>>>> Gustavo.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
>>>>>>>>>>> Could
>>>>>>>>>>> you
>>>>>>>>>>> take a look if your configuration has at least one of those
>>>>>>>>>>> options
>>>>>>>>>>> enabled?
>>>>>>>>>>>
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Petro
>>>>>>>>>>>
>>>>>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>>>>>
>>>>>>>>>>>> Hi!
>>>>>>>>>>>>
>>>>>>>>>>>> I'm starting a new project at college using NuttX and ESP-32.
>>>>>>>>>>>> I'm
>>>>>>>>>>>> trying to build a new application for NuttX: a webserver to read
>>>>>>>>>>>> and
>>>>>>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>>>>>>> error description]
>>>>>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>>>>>> file)]
>>>>>>>>>>>>
>>>>>>>>>>>> In menuconfig I enabled:
>>>>>>>>>>>>     Network support
>>>>>>>>>>>>        ├── Link layer support
>>>>>>>>>>>>            ├── Ethernet support
>>>>>>>>>>>>            ├── Late driver initialization
>>>>>>>>>>>>        ├── TCP/IP Networking
>>>>>>>>>>>>
>>>>>>>>>>>> Application Configuration
>>>>>>>>>>>>       ├── Network utilities
>>>>>>>>>>>>           ├── Network initialization
>>>>>>>>>>>>               ├── Network initialization thread
>>>>>>>>>>>>               ├── Hardware has no MAC Address
>>>>>>>>>>>>
>>>>>>>>>>>> Could someone help me with this?
>>>>>>>>>>>> And also, I've been searching for articles about building
>>>>>>>>>>>> applications for NuttX, but didn't find any. Does anyone know
>>>>>>>>>>>> where
>>>>>>>>>>>> I
>>>>>>>>>>>> can
>>>>>>>>>>>> find them?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>

Re: undefined reference to 'inet_ntoa_r'

Posted by "Alan C. Assis" <ac...@gmail.com>.
Yes, it is not needed!

After configuring your esp32c3 board file (also works for any esp32xx
chip), just run:

make bootloader
make flash ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BINDIR=.

BR,

Alan

On 3/17/23, Sebastien Lorquet <se...@lorquet.fr> wrote:
> Hi,
>
> Dont you need the full ESP-IDF to build the bootloader and stubs?
>
> If you have a simplified build method I am interested.
>
> Last time I checked esp32-c3, it worked perfectly, but the bootloader
> build was a bit cumbersome (fortunately it's only needed once, which is
> okay).
>
> IIRC it even required two toolchains, a riscv32 one for esp-idf and a
> riscv64 for nuttx.
>
> Best regards,
>
> Sebastien
>
>
> Le 17/03/2023 à 13:45, Alan C. Assis a écrit :
>> Hi Miguel,
>>
>> Nice to hear it.
>>
>> BTW, you don't need to use esp-idf, it is overkill (you will waste too
>> much disc space).
>>
>> Just download the latest Xtensa ESP32 toolchain:
>>
>> https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html#custom-installation
>>
>> BR,
>>
>> Alan
>>
>> On 3/17/23, MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com> wrote:
>>> Alan
>>>
>>> Here is compiling, after use
>>>
>>> make distclean
>>> ./tools/configure.sh esp32-devkitc:wapi
>>>
>>> Gustavo, did you use the last update of esp-idf ?
>>>
>>> [cid:70bddf51-e6f1-4a78-867e-90ffdda495e5]
>>>
>>> ________________________________
>>> De: Alan C. Assis <ac...@gmail.com>
>>> Enviado: sexta-feira, 17 de março de 2023 11:52
>>> Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
>>> Assunto: Re: undefined reference to 'inet_ntoa_r'
>>>
>>> s/Then example/Then enable/
>>>
>>> On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
>>>> Hi Gustavo,
>>>>
>>>> Enabling all the network needed features on NuttX is very time
>>>> consuming, so this is a good idea to start with a working example.
>>>>
>>>> In this case nsh is not the recommended starting point, but wapi (wifi
>>>> board profile).
>>>>
>>>> Try this sequence:
>>>> make distclean
>>>> ./tools/configure.sh esp32-devkitc:wapi
>>>>
>>>> Then example the webserver example.
>>>>
>>>> BR,
>>>>
>>>> Alan
>>>>
>>>> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>>>>> Hi, Petro!
>>>>>
>>>>> I'm using the latest version of NuttX.
>>>>>
>>>>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>
>>>>>> I just tried next steps:
>>>>>>
>>>>>> 1. tools/configure.sh esp32-devkitc:nsh
>>>>>> 2. Additionally enabled via menuconfig:
>>>>>> CONFIG_ESP32_EMAC=y
>>>>>> CONFIG_ESP32_WIFI=y
>>>>>> CONFIG_EXAMPLES_WEBSERVER=y
>>>>>> CONFIG_NETUTILS_WEBSERVER=y
>>>>>> CONFIG_NET_SOCKOPTS=y
>>>>>> CONFIG_NET_TCP=y
>>>>>> CONFIG_SCHED_HPWORK=y
>>>>>> CONFIG_SCHED_LPWORK=y
>>>>>> CONFIG_TLS_TASK_NELEM=1
>>>>>> 3. make -j8
>>>>>>
>>>>>> The project compiles with errors.
>>>>>> I tried that on the latest master branch. Are you using some stable
>>>>>> release or the reported issue is on master?
>>>>>>
>>>>>> Best regards,
>>>>>> Petro
>>>>>>
>>>>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>>>>> gustavo.felipesoares@hotmail.com> пише:
>>>>>>
>>>>>>> I'm trying to compile the webserver example first. When I created
>>>>>>> the
>>>>>>> config file, the chosen configuration for esp32 was
>>>>>>> 'esp32-devkitc:nsh'.
>>>>>>>
>>>>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>
>>>>>>>> Hello Gustavo,
>>>>>>>>
>>>>>>>> Are you trying to compile an example or your custom application?
>>>>>>>> If you are getting started with an example, so maybe you make "make
>>>>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Petro
>>>>>>>>
>>>>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hello, Petro!
>>>>>>>>>
>>>>>>>>> inside menuconfig IPv4 is enabled:
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> It's also possible to see the option in the .config file:
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> Thank you for your support,
>>>>>>>>> Gustavo.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
>>>>>>>>>> Could
>>>>>>>>>> you
>>>>>>>>>> take a look if your configuration has at least one of those
>>>>>>>>>> options
>>>>>>>>>> enabled?
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>> Petro
>>>>>>>>>>
>>>>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>>>>
>>>>>>>>>>> Hi!
>>>>>>>>>>>
>>>>>>>>>>> I'm starting a new project at college using NuttX and ESP-32.
>>>>>>>>>>> I'm
>>>>>>>>>>> trying to build a new application for NuttX: a webserver to read
>>>>>>>>>>> and
>>>>>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>>>>>> error description]
>>>>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>>>>> file)]
>>>>>>>>>>>
>>>>>>>>>>> In menuconfig I enabled:
>>>>>>>>>>>    Network support
>>>>>>>>>>>       ├── Link layer support
>>>>>>>>>>>           ├── Ethernet support
>>>>>>>>>>>           ├── Late driver initialization
>>>>>>>>>>>       ├── TCP/IP Networking
>>>>>>>>>>>
>>>>>>>>>>> Application Configuration
>>>>>>>>>>>      ├── Network utilities
>>>>>>>>>>>          ├── Network initialization
>>>>>>>>>>>              ├── Network initialization thread
>>>>>>>>>>>              ├── Hardware has no MAC Address
>>>>>>>>>>>
>>>>>>>>>>> Could someone help me with this?
>>>>>>>>>>> And also, I've been searching for articles about building
>>>>>>>>>>> applications for NuttX, but didn't find any. Does anyone know
>>>>>>>>>>> where
>>>>>>>>>>> I
>>>>>>>>>>> can
>>>>>>>>>>> find them?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by Sebastien Lorquet <se...@lorquet.fr>.
Hi,

Dont you need the full ESP-IDF to build the bootloader and stubs?

If you have a simplified build method I am interested.

Last time I checked esp32-c3, it worked perfectly, but the bootloader 
build was a bit cumbersome (fortunately it's only needed once, which is 
okay).

IIRC it even required two toolchains, a riscv32 one for esp-idf and a 
riscv64 for nuttx.

Best regards,

Sebastien


Le 17/03/2023 à 13:45, Alan C. Assis a écrit :
> Hi Miguel,
>
> Nice to hear it.
>
> BTW, you don't need to use esp-idf, it is overkill (you will waste too
> much disc space).
>
> Just download the latest Xtensa ESP32 toolchain:
>
> https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html#custom-installation
>
> BR,
>
> Alan
>
> On 3/17/23, MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com> wrote:
>> Alan
>>
>> Here is compiling, after use
>>
>> make distclean
>> ./tools/configure.sh esp32-devkitc:wapi
>>
>> Gustavo, did you use the last update of esp-idf ?
>>
>> [cid:70bddf51-e6f1-4a78-867e-90ffdda495e5]
>>
>> ________________________________
>> De: Alan C. Assis <ac...@gmail.com>
>> Enviado: sexta-feira, 17 de março de 2023 11:52
>> Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
>> Assunto: Re: undefined reference to 'inet_ntoa_r'
>>
>> s/Then example/Then enable/
>>
>> On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
>>> Hi Gustavo,
>>>
>>> Enabling all the network needed features on NuttX is very time
>>> consuming, so this is a good idea to start with a working example.
>>>
>>> In this case nsh is not the recommended starting point, but wapi (wifi
>>> board profile).
>>>
>>> Try this sequence:
>>> make distclean
>>> ./tools/configure.sh esp32-devkitc:wapi
>>>
>>> Then example the webserver example.
>>>
>>> BR,
>>>
>>> Alan
>>>
>>> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>>>> Hi, Petro!
>>>>
>>>> I'm using the latest version of NuttX.
>>>>
>>>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>>>> petro.karashchenko@gmail.com> escreveu:
>>>>
>>>>> I just tried next steps:
>>>>>
>>>>> 1. tools/configure.sh esp32-devkitc:nsh
>>>>> 2. Additionally enabled via menuconfig:
>>>>> CONFIG_ESP32_EMAC=y
>>>>> CONFIG_ESP32_WIFI=y
>>>>> CONFIG_EXAMPLES_WEBSERVER=y
>>>>> CONFIG_NETUTILS_WEBSERVER=y
>>>>> CONFIG_NET_SOCKOPTS=y
>>>>> CONFIG_NET_TCP=y
>>>>> CONFIG_SCHED_HPWORK=y
>>>>> CONFIG_SCHED_LPWORK=y
>>>>> CONFIG_TLS_TASK_NELEM=1
>>>>> 3. make -j8
>>>>>
>>>>> The project compiles with errors.
>>>>> I tried that on the latest master branch. Are you using some stable
>>>>> release or the reported issue is on master?
>>>>>
>>>>> Best regards,
>>>>> Petro
>>>>>
>>>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>>>> gustavo.felipesoares@hotmail.com> пише:
>>>>>
>>>>>> I'm trying to compile the webserver example first. When I created the
>>>>>> config file, the chosen configuration for esp32 was
>>>>>> 'esp32-devkitc:nsh'.
>>>>>>
>>>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>
>>>>>>> Hello Gustavo,
>>>>>>>
>>>>>>> Are you trying to compile an example or your custom application?
>>>>>>> If you are getting started with an example, so maybe you make "make
>>>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Petro
>>>>>>>
>>>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>>>
>>>>>>>> Hello, Petro!
>>>>>>>>
>>>>>>>> inside menuconfig IPv4 is enabled:
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> It's also possible to see the option in the .config file:
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> Thank you for your support,
>>>>>>>> Gustavo.
>>>>>>>>
>>>>>>>>
>>>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could
>>>>>>>>> you
>>>>>>>>> take a look if your configuration has at least one of those options
>>>>>>>>> enabled?
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>> Petro
>>>>>>>>>
>>>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>>>
>>>>>>>>>> Hi!
>>>>>>>>>>
>>>>>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>>>>>>> trying to build a new application for NuttX: a webserver to read
>>>>>>>>>> and
>>>>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>>>>> error description]
>>>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>>>> file)]
>>>>>>>>>>
>>>>>>>>>> In menuconfig I enabled:
>>>>>>>>>>    Network support
>>>>>>>>>>       ├── Link layer support
>>>>>>>>>>           ├── Ethernet support
>>>>>>>>>>           ├── Late driver initialization
>>>>>>>>>>       ├── TCP/IP Networking
>>>>>>>>>>
>>>>>>>>>> Application Configuration
>>>>>>>>>>      ├── Network utilities
>>>>>>>>>>          ├── Network initialization
>>>>>>>>>>              ├── Network initialization thread
>>>>>>>>>>              ├── Hardware has no MAC Address
>>>>>>>>>>
>>>>>>>>>> Could someone help me with this?
>>>>>>>>>> And also, I've been searching for articles about building
>>>>>>>>>> applications for NuttX, but didn't find any. Does anyone know
>>>>>>>>>> where
>>>>>>>>>> I
>>>>>>>>>> can
>>>>>>>>>> find them?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>

Re: undefined reference to 'inet_ntoa_r'

Posted by "Alan C. Assis" <ac...@gmail.com>.
You need to download the "xtensa-esp32-elf"

No idea why they put xtensa-esp32-elf-gdb before the real toolchain.

On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
> Hi Miguel,
>
> Nice to hear it.
>
> BTW, you don't need to use esp-idf, it is overkill (you will waste too
> much disc space).
>
> Just download the latest Xtensa ESP32 toolchain:
>
> https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html#custom-installation
>
> BR,
>
> Alan
>
> On 3/17/23, MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com> wrote:
>> Alan
>>
>> Here is compiling, after use
>>
>> make distclean
>> ./tools/configure.sh esp32-devkitc:wapi
>>
>> Gustavo, did you use the last update of esp-idf ?
>>
>> [cid:70bddf51-e6f1-4a78-867e-90ffdda495e5]
>>
>> ________________________________
>> De: Alan C. Assis <ac...@gmail.com>
>> Enviado: sexta-feira, 17 de março de 2023 11:52
>> Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
>> Assunto: Re: undefined reference to 'inet_ntoa_r'
>>
>> s/Then example/Then enable/
>>
>> On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
>>> Hi Gustavo,
>>>
>>> Enabling all the network needed features on NuttX is very time
>>> consuming, so this is a good idea to start with a working example.
>>>
>>> In this case nsh is not the recommended starting point, but wapi (wifi
>>> board profile).
>>>
>>> Try this sequence:
>>> make distclean
>>> ./tools/configure.sh esp32-devkitc:wapi
>>>
>>> Then example the webserver example.
>>>
>>> BR,
>>>
>>> Alan
>>>
>>> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>>>> Hi, Petro!
>>>>
>>>> I'm using the latest version of NuttX.
>>>>
>>>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>>>> petro.karashchenko@gmail.com> escreveu:
>>>>
>>>>> I just tried next steps:
>>>>>
>>>>> 1. tools/configure.sh esp32-devkitc:nsh
>>>>> 2. Additionally enabled via menuconfig:
>>>>> CONFIG_ESP32_EMAC=y
>>>>> CONFIG_ESP32_WIFI=y
>>>>> CONFIG_EXAMPLES_WEBSERVER=y
>>>>> CONFIG_NETUTILS_WEBSERVER=y
>>>>> CONFIG_NET_SOCKOPTS=y
>>>>> CONFIG_NET_TCP=y
>>>>> CONFIG_SCHED_HPWORK=y
>>>>> CONFIG_SCHED_LPWORK=y
>>>>> CONFIG_TLS_TASK_NELEM=1
>>>>> 3. make -j8
>>>>>
>>>>> The project compiles with errors.
>>>>> I tried that on the latest master branch. Are you using some stable
>>>>> release or the reported issue is on master?
>>>>>
>>>>> Best regards,
>>>>> Petro
>>>>>
>>>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>>>> gustavo.felipesoares@hotmail.com> пише:
>>>>>
>>>>>> I'm trying to compile the webserver example first. When I created the
>>>>>> config file, the chosen configuration for esp32 was
>>>>>> 'esp32-devkitc:nsh'.
>>>>>>
>>>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>
>>>>>>> Hello Gustavo,
>>>>>>>
>>>>>>> Are you trying to compile an example or your custom application?
>>>>>>> If you are getting started with an example, so maybe you make "make
>>>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Petro
>>>>>>>
>>>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>>>
>>>>>>>> Hello, Petro!
>>>>>>>>
>>>>>>>> inside menuconfig IPv4 is enabled:
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> It's also possible to see the option in the .config file:
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> Thank you for your support,
>>>>>>>> Gustavo.
>>>>>>>>
>>>>>>>>
>>>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV".
>>>>>>>>> Could
>>>>>>>>> you
>>>>>>>>> take a look if your configuration has at least one of those
>>>>>>>>> options
>>>>>>>>> enabled?
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>> Petro
>>>>>>>>>
>>>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>>>
>>>>>>>>>> Hi!
>>>>>>>>>>
>>>>>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>>>>>>> trying to build a new application for NuttX: a webserver to read
>>>>>>>>>> and
>>>>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>>>>> error description]
>>>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>>>> file)]
>>>>>>>>>>
>>>>>>>>>> In menuconfig I enabled:
>>>>>>>>>>   Network support
>>>>>>>>>>      ├── Link layer support
>>>>>>>>>>          ├── Ethernet support
>>>>>>>>>>          ├── Late driver initialization
>>>>>>>>>>      ├── TCP/IP Networking
>>>>>>>>>>
>>>>>>>>>> Application Configuration
>>>>>>>>>>     ├── Network utilities
>>>>>>>>>>         ├── Network initialization
>>>>>>>>>>             ├── Network initialization thread
>>>>>>>>>>             ├── Hardware has no MAC Address
>>>>>>>>>>
>>>>>>>>>> Could someone help me with this?
>>>>>>>>>> And also, I've been searching for articles about building
>>>>>>>>>> applications for NuttX, but didn't find any. Does anyone know
>>>>>>>>>> where
>>>>>>>>>> I
>>>>>>>>>> can
>>>>>>>>>> find them?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>
>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by "Alan C. Assis" <ac...@gmail.com>.
Hi Miguel,

Nice to hear it.

BTW, you don't need to use esp-idf, it is overkill (you will waste too
much disc space).

Just download the latest Xtensa ESP32 toolchain:

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html#custom-installation

BR,

Alan

On 3/17/23, MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com> wrote:
> Alan
>
> Here is compiling, after use
>
> make distclean
> ./tools/configure.sh esp32-devkitc:wapi
>
> Gustavo, did you use the last update of esp-idf ?
>
> [cid:70bddf51-e6f1-4a78-867e-90ffdda495e5]
>
> ________________________________
> De: Alan C. Assis <ac...@gmail.com>
> Enviado: sexta-feira, 17 de março de 2023 11:52
> Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
> Assunto: Re: undefined reference to 'inet_ntoa_r'
>
> s/Then example/Then enable/
>
> On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
>> Hi Gustavo,
>>
>> Enabling all the network needed features on NuttX is very time
>> consuming, so this is a good idea to start with a working example.
>>
>> In this case nsh is not the recommended starting point, but wapi (wifi
>> board profile).
>>
>> Try this sequence:
>> make distclean
>> ./tools/configure.sh esp32-devkitc:wapi
>>
>> Then example the webserver example.
>>
>> BR,
>>
>> Alan
>>
>> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>>> Hi, Petro!
>>>
>>> I'm using the latest version of NuttX.
>>>
>>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>>> petro.karashchenko@gmail.com> escreveu:
>>>
>>>> I just tried next steps:
>>>>
>>>> 1. tools/configure.sh esp32-devkitc:nsh
>>>> 2. Additionally enabled via menuconfig:
>>>> CONFIG_ESP32_EMAC=y
>>>> CONFIG_ESP32_WIFI=y
>>>> CONFIG_EXAMPLES_WEBSERVER=y
>>>> CONFIG_NETUTILS_WEBSERVER=y
>>>> CONFIG_NET_SOCKOPTS=y
>>>> CONFIG_NET_TCP=y
>>>> CONFIG_SCHED_HPWORK=y
>>>> CONFIG_SCHED_LPWORK=y
>>>> CONFIG_TLS_TASK_NELEM=1
>>>> 3. make -j8
>>>>
>>>> The project compiles with errors.
>>>> I tried that on the latest master branch. Are you using some stable
>>>> release or the reported issue is on master?
>>>>
>>>> Best regards,
>>>> Petro
>>>>
>>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>>> gustavo.felipesoares@hotmail.com> пише:
>>>>
>>>>> I'm trying to compile the webserver example first. When I created the
>>>>> config file, the chosen configuration for esp32 was
>>>>> 'esp32-devkitc:nsh'.
>>>>>
>>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>
>>>>>> Hello Gustavo,
>>>>>>
>>>>>> Are you trying to compile an example or your custom application?
>>>>>> If you are getting started with an example, so maybe you make "make
>>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>>
>>>>>> Best regards,
>>>>>> Petro
>>>>>>
>>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>>
>>>>>>> Hello, Petro!
>>>>>>>
>>>>>>> inside menuconfig IPv4 is enabled:
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> It's also possible to see the option in the .config file:
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> Thank you for your support,
>>>>>>> Gustavo.
>>>>>>>
>>>>>>>
>>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could
>>>>>>>> you
>>>>>>>> take a look if your configuration has at least one of those options
>>>>>>>> enabled?
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Petro
>>>>>>>>
>>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>>
>>>>>>>>> Hi!
>>>>>>>>>
>>>>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>>>>>> trying to build a new application for NuttX: a webserver to read
>>>>>>>>> and
>>>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>>>> error description]
>>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>>> file)]
>>>>>>>>>
>>>>>>>>> In menuconfig I enabled:
>>>>>>>>>   Network support
>>>>>>>>>      ├── Link layer support
>>>>>>>>>          ├── Ethernet support
>>>>>>>>>          ├── Late driver initialization
>>>>>>>>>      ├── TCP/IP Networking
>>>>>>>>>
>>>>>>>>> Application Configuration
>>>>>>>>>     ├── Network utilities
>>>>>>>>>         ├── Network initialization
>>>>>>>>>             ├── Network initialization thread
>>>>>>>>>             ├── Hardware has no MAC Address
>>>>>>>>>
>>>>>>>>> Could someone help me with this?
>>>>>>>>> And also, I've been searching for articles about building
>>>>>>>>> applications for NuttX, but didn't find any. Does anyone know
>>>>>>>>> where
>>>>>>>>> I
>>>>>>>>> can
>>>>>>>>> find them?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>
>>
>

RE: undefined reference to 'inet_ntoa_r'

Posted by MIGUEL ALEXANDRE WISINTAINER <tc...@hotmail.com>.
Alan

Here is compiling, after use

make distclean
./tools/configure.sh esp32-devkitc:wapi

Gustavo, did you use the last update of esp-idf ?

[cid:70bddf51-e6f1-4a78-867e-90ffdda495e5]

________________________________
De: Alan C. Assis <ac...@gmail.com>
Enviado: sexta-feira, 17 de março de 2023 11:52
Para: dev@nuttx.apache.org <de...@nuttx.apache.org>
Assunto: Re: undefined reference to 'inet_ntoa_r'

s/Then example/Then enable/

On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
> Hi Gustavo,
>
> Enabling all the network needed features on NuttX is very time
> consuming, so this is a good idea to start with a working example.
>
> In this case nsh is not the recommended starting point, but wapi (wifi
> board profile).
>
> Try this sequence:
> make distclean
> ./tools/configure.sh esp32-devkitc:wapi
>
> Then example the webserver example.
>
> BR,
>
> Alan
>
> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>> Hi, Petro!
>>
>> I'm using the latest version of NuttX.
>>
>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>> petro.karashchenko@gmail.com> escreveu:
>>
>>> I just tried next steps:
>>>
>>> 1. tools/configure.sh esp32-devkitc:nsh
>>> 2. Additionally enabled via menuconfig:
>>> CONFIG_ESP32_EMAC=y
>>> CONFIG_ESP32_WIFI=y
>>> CONFIG_EXAMPLES_WEBSERVER=y
>>> CONFIG_NETUTILS_WEBSERVER=y
>>> CONFIG_NET_SOCKOPTS=y
>>> CONFIG_NET_TCP=y
>>> CONFIG_SCHED_HPWORK=y
>>> CONFIG_SCHED_LPWORK=y
>>> CONFIG_TLS_TASK_NELEM=1
>>> 3. make -j8
>>>
>>> The project compiles with errors.
>>> I tried that on the latest master branch. Are you using some stable
>>> release or the reported issue is on master?
>>>
>>> Best regards,
>>> Petro
>>>
>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>> gustavo.felipesoares@hotmail.com> пише:
>>>
>>>> I'm trying to compile the webserver example first. When I created the
>>>> config file, the chosen configuration for esp32 was
>>>> 'esp32-devkitc:nsh'.
>>>>
>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>> petro.karashchenko@gmail.com> escreveu:
>>>>
>>>>> Hello Gustavo,
>>>>>
>>>>> Are you trying to compile an example or your custom application?
>>>>> If you are getting started with an example, so maybe you make "make
>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>
>>>>> Best regards,
>>>>> Petro
>>>>>
>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>
>>>>>> Hello, Petro!
>>>>>>
>>>>>> inside menuconfig IPv4 is enabled:
>>>>>> [image: image.png]
>>>>>>
>>>>>> It's also possible to see the option in the .config file:
>>>>>> [image: image.png]
>>>>>>
>>>>>> Thank you for your support,
>>>>>> Gustavo.
>>>>>>
>>>>>>
>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could
>>>>>>> you
>>>>>>> take a look if your configuration has at least one of those options
>>>>>>> enabled?
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Petro
>>>>>>>
>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>
>>>>>>>> Hi!
>>>>>>>>
>>>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>>>>> trying to build a new application for NuttX: a webserver to read
>>>>>>>> and
>>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>>> error description]
>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>> file)]
>>>>>>>>
>>>>>>>> In menuconfig I enabled:
>>>>>>>>   Network support
>>>>>>>>      ├── Link layer support
>>>>>>>>          ├── Ethernet support
>>>>>>>>          ├── Late driver initialization
>>>>>>>>      ├── TCP/IP Networking
>>>>>>>>
>>>>>>>> Application Configuration
>>>>>>>>     ├── Network utilities
>>>>>>>>         ├── Network initialization
>>>>>>>>             ├── Network initialization thread
>>>>>>>>             ├── Hardware has no MAC Address
>>>>>>>>
>>>>>>>> Could someone help me with this?
>>>>>>>> And also, I've been searching for articles about building
>>>>>>>> applications for NuttX, but didn't find any. Does anyone know where
>>>>>>>> I
>>>>>>>> can
>>>>>>>> find them?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by "Alan C. Assis" <ac...@gmail.com>.
s/Then example/Then enable/

On 3/17/23, Alan C. Assis <ac...@gmail.com> wrote:
> Hi Gustavo,
>
> Enabling all the network needed features on NuttX is very time
> consuming, so this is a good idea to start with a working example.
>
> In this case nsh is not the recommended starting point, but wapi (wifi
> board profile).
>
> Try this sequence:
> make distclean
> ./tools/configure.sh esp32-devkitc:wapi
>
> Then example the webserver example.
>
> BR,
>
> Alan
>
> On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
>> Hi, Petro!
>>
>> I'm using the latest version of NuttX.
>>
>> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
>> petro.karashchenko@gmail.com> escreveu:
>>
>>> I just tried next steps:
>>>
>>> 1. tools/configure.sh esp32-devkitc:nsh
>>> 2. Additionally enabled via menuconfig:
>>> CONFIG_ESP32_EMAC=y
>>> CONFIG_ESP32_WIFI=y
>>> CONFIG_EXAMPLES_WEBSERVER=y
>>> CONFIG_NETUTILS_WEBSERVER=y
>>> CONFIG_NET_SOCKOPTS=y
>>> CONFIG_NET_TCP=y
>>> CONFIG_SCHED_HPWORK=y
>>> CONFIG_SCHED_LPWORK=y
>>> CONFIG_TLS_TASK_NELEM=1
>>> 3. make -j8
>>>
>>> The project compiles with errors.
>>> I tried that on the latest master branch. Are you using some stable
>>> release or the reported issue is on master?
>>>
>>> Best regards,
>>> Petro
>>>
>>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>>> gustavo.felipesoares@hotmail.com> пише:
>>>
>>>> I'm trying to compile the webserver example first. When I created the
>>>> config file, the chosen configuration for esp32 was
>>>> 'esp32-devkitc:nsh'.
>>>>
>>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>>> petro.karashchenko@gmail.com> escreveu:
>>>>
>>>>> Hello Gustavo,
>>>>>
>>>>> Are you trying to compile an example or your custom application?
>>>>> If you are getting started with an example, so maybe you make "make
>>>>> savedefconfig" and send it to me, so I can try locally?
>>>>>
>>>>> Best regards,
>>>>> Petro
>>>>>
>>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>>
>>>>>> Hello, Petro!
>>>>>>
>>>>>> inside menuconfig IPv4 is enabled:
>>>>>> [image: image.png]
>>>>>>
>>>>>> It's also possible to see the option in the .config file:
>>>>>> [image: image.png]
>>>>>>
>>>>>> Thank you for your support,
>>>>>> Gustavo.
>>>>>>
>>>>>>
>>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could
>>>>>>> you
>>>>>>> take a look if your configuration has at least one of those options
>>>>>>> enabled?
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Petro
>>>>>>>
>>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>>
>>>>>>>> Hi!
>>>>>>>>
>>>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>>>>> trying to build a new application for NuttX: a webserver to read
>>>>>>>> and
>>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>>> error description]
>>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>>> file)]
>>>>>>>>
>>>>>>>> In menuconfig I enabled:
>>>>>>>>   Network support
>>>>>>>>      ├── Link layer support
>>>>>>>>          ├── Ethernet support
>>>>>>>>          ├── Late driver initialization
>>>>>>>>      ├── TCP/IP Networking
>>>>>>>>
>>>>>>>> Application Configuration
>>>>>>>>     ├── Network utilities
>>>>>>>>         ├── Network initialization
>>>>>>>>             ├── Network initialization thread
>>>>>>>>             ├── Hardware has no MAC Address
>>>>>>>>
>>>>>>>> Could someone help me with this?
>>>>>>>> And also, I've been searching for articles about building
>>>>>>>> applications for NuttX, but didn't find any. Does anyone know where
>>>>>>>> I
>>>>>>>> can
>>>>>>>> find them?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by "Alan C. Assis" <ac...@gmail.com>.
Hi Gustavo,

Enabling all the network needed features on NuttX is very time
consuming, so this is a good idea to start with a working example.

In this case nsh is not the recommended starting point, but wapi (wifi
board profile).

Try this sequence:
make distclean
./tools/configure.sh esp32-devkitc:wapi

Then example the webserver example.

BR,

Alan

On 3/17/23, Gustavo Soares <gu...@hotmail.com> wrote:
> Hi, Petro!
>
> I'm using the latest version of NuttX.
>
> Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
> petro.karashchenko@gmail.com> escreveu:
>
>> I just tried next steps:
>>
>> 1. tools/configure.sh esp32-devkitc:nsh
>> 2. Additionally enabled via menuconfig:
>> CONFIG_ESP32_EMAC=y
>> CONFIG_ESP32_WIFI=y
>> CONFIG_EXAMPLES_WEBSERVER=y
>> CONFIG_NETUTILS_WEBSERVER=y
>> CONFIG_NET_SOCKOPTS=y
>> CONFIG_NET_TCP=y
>> CONFIG_SCHED_HPWORK=y
>> CONFIG_SCHED_LPWORK=y
>> CONFIG_TLS_TASK_NELEM=1
>> 3. make -j8
>>
>> The project compiles with errors.
>> I tried that on the latest master branch. Are you using some stable
>> release or the reported issue is on master?
>>
>> Best regards,
>> Petro
>>
>> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
>> gustavo.felipesoares@hotmail.com> пише:
>>
>>> I'm trying to compile the webserver example first. When I created the
>>> config file, the chosen configuration for esp32 was 'esp32-devkitc:nsh'.
>>>
>>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>>> petro.karashchenko@gmail.com> escreveu:
>>>
>>>> Hello Gustavo,
>>>>
>>>> Are you trying to compile an example or your custom application?
>>>> If you are getting started with an example, so maybe you make "make
>>>> savedefconfig" and send it to me, so I can try locally?
>>>>
>>>> Best regards,
>>>> Petro
>>>>
>>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>>> gustavo.felipesoares@hotmail.com> wrote:
>>>>
>>>>> Hello, Petro!
>>>>>
>>>>> inside menuconfig IPv4 is enabled:
>>>>> [image: image.png]
>>>>>
>>>>> It's also possible to see the option in the .config file:
>>>>> [image: image.png]
>>>>>
>>>>> Thank you for your support,
>>>>> Gustavo.
>>>>>
>>>>>
>>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>>> petro.karashchenko@gmail.com> escreveu:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could
>>>>>> you
>>>>>> take a look if your configuration has at least one of those options
>>>>>> enabled?
>>>>>>
>>>>>> Best regards,
>>>>>> Petro
>>>>>>
>>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>>
>>>>>>> Hi!
>>>>>>>
>>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>>>> trying to build a new application for NuttX: a webserver to read and
>>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>>> error description]
>>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c
>>>>>>> file)]
>>>>>>>
>>>>>>> In menuconfig I enabled:
>>>>>>>   Network support
>>>>>>>      ├── Link layer support
>>>>>>>          ├── Ethernet support
>>>>>>>          ├── Late driver initialization
>>>>>>>      ├── TCP/IP Networking
>>>>>>>
>>>>>>> Application Configuration
>>>>>>>     ├── Network utilities
>>>>>>>         ├── Network initialization
>>>>>>>             ├── Network initialization thread
>>>>>>>             ├── Hardware has no MAC Address
>>>>>>>
>>>>>>> Could someone help me with this?
>>>>>>> And also, I've been searching for articles about building
>>>>>>> applications for NuttX, but didn't find any. Does anyone know where I
>>>>>>> can
>>>>>>> find them?
>>>>>>>
>>>>>>>
>>>>>>>
>

Re: undefined reference to 'inet_ntoa_r'

Posted by Gustavo Soares <gu...@hotmail.com>.
Hi, Petro!

I'm using the latest version of NuttX.

Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko <
petro.karashchenko@gmail.com> escreveu:

> I just tried next steps:
>
> 1. tools/configure.sh esp32-devkitc:nsh
> 2. Additionally enabled via menuconfig:
> CONFIG_ESP32_EMAC=y
> CONFIG_ESP32_WIFI=y
> CONFIG_EXAMPLES_WEBSERVER=y
> CONFIG_NETUTILS_WEBSERVER=y
> CONFIG_NET_SOCKOPTS=y
> CONFIG_NET_TCP=y
> CONFIG_SCHED_HPWORK=y
> CONFIG_SCHED_LPWORK=y
> CONFIG_TLS_TASK_NELEM=1
> 3. make -j8
>
> The project compiles with errors.
> I tried that on the latest master branch. Are you using some stable
> release or the reported issue is on master?
>
> Best regards,
> Petro
>
> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <
> gustavo.felipesoares@hotmail.com> пише:
>
>> I'm trying to compile the webserver example first. When I created the
>> config file, the chosen configuration for esp32 was 'esp32-devkitc:nsh'.
>>
>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
>> petro.karashchenko@gmail.com> escreveu:
>>
>>> Hello Gustavo,
>>>
>>> Are you trying to compile an example or your custom application?
>>> If you are getting started with an example, so maybe you make "make
>>> savedefconfig" and send it to me, so I can try locally?
>>>
>>> Best regards,
>>> Petro
>>>
>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>>> gustavo.felipesoares@hotmail.com> wrote:
>>>
>>>> Hello, Petro!
>>>>
>>>> inside menuconfig IPv4 is enabled:
>>>> [image: image.png]
>>>>
>>>> It's also possible to see the option in the .config file:
>>>> [image: image.png]
>>>>
>>>> Thank you for your support,
>>>> Gustavo.
>>>>
>>>>
>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>>> petro.karashchenko@gmail.com> escreveu:
>>>>
>>>>> Hi,
>>>>>
>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could you
>>>>> take a look if your configuration has at least one of those options enabled?
>>>>>
>>>>> Best regards,
>>>>> Petro
>>>>>
>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>>> gustavo.fssoares18@gmail.com> пише:
>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>>> trying to build a new application for NuttX: a webserver to read and
>>>>>> execute Assembly! But the following error is showing up:[image:
>>>>>> error description]
>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c file)]
>>>>>>
>>>>>> In menuconfig I enabled:
>>>>>>   Network support
>>>>>>      ├── Link layer support
>>>>>>          ├── Ethernet support
>>>>>>          ├── Late driver initialization
>>>>>>      ├── TCP/IP Networking
>>>>>>
>>>>>> Application Configuration
>>>>>>     ├── Network utilities
>>>>>>         ├── Network initialization
>>>>>>             ├── Network initialization thread
>>>>>>             ├── Hardware has no MAC Address
>>>>>>
>>>>>> Could someone help me with this?
>>>>>> And also, I've been searching for articles about building
>>>>>> applications for NuttX, but didn't find any. Does anyone know where I can
>>>>>> find them?
>>>>>>
>>>>>>
>>>>>>

Re: undefined reference to 'inet_ntoa_r'

Posted by Petro Karashchenko <pe...@gmail.com>.
I just tried next steps:

1. tools/configure.sh esp32-devkitc:nsh
2. Additionally enabled via menuconfig:
CONFIG_ESP32_EMAC=y
CONFIG_ESP32_WIFI=y
CONFIG_EXAMPLES_WEBSERVER=y
CONFIG_NETUTILS_WEBSERVER=y
CONFIG_NET_SOCKOPTS=y
CONFIG_NET_TCP=y
CONFIG_SCHED_HPWORK=y
CONFIG_SCHED_LPWORK=y
CONFIG_TLS_TASK_NELEM=1
3. make -j8

The project compiles with errors.
I tried that on the latest master branch. Are you using some stable release
or the reported issue is on master?

Best regards,
Petro

пт, 17 бер. 2023 р. о 05:32 Gustavo Soares <gu...@hotmail.com>
пише:

> I'm trying to compile the webserver example first. When I created the
> config file, the chosen configuration for esp32 was 'esp32-devkitc:nsh'.
>
> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
> petro.karashchenko@gmail.com> escreveu:
>
>> Hello Gustavo,
>>
>> Are you trying to compile an example or your custom application?
>> If you are getting started with an example, so maybe you make "make
>> savedefconfig" and send it to me, so I can try locally?
>>
>> Best regards,
>> Petro
>>
>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
>> gustavo.felipesoares@hotmail.com> wrote:
>>
>>> Hello, Petro!
>>>
>>> inside menuconfig IPv4 is enabled:
>>> [image: image.png]
>>>
>>> It's also possible to see the option in the .config file:
>>> [image: image.png]
>>>
>>> Thank you for your support,
>>> Gustavo.
>>>
>>>
>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>>> petro.karashchenko@gmail.com> escreveu:
>>>
>>>> Hi,
>>>>
>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could you
>>>> take a look if your configuration has at least one of those options enabled?
>>>>
>>>> Best regards,
>>>> Petro
>>>>
>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <
>>>> gustavo.fssoares18@gmail.com> пише:
>>>>
>>>>> Hi!
>>>>>
>>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>>> trying to build a new application for NuttX: a webserver to read and
>>>>> execute Assembly! But the following error is showing up:[image: error
>>>>> description]
>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c file)]
>>>>>
>>>>> In menuconfig I enabled:
>>>>>   Network support
>>>>>      ├── Link layer support
>>>>>          ├── Ethernet support
>>>>>          ├── Late driver initialization
>>>>>      ├── TCP/IP Networking
>>>>>
>>>>> Application Configuration
>>>>>     ├── Network utilities
>>>>>         ├── Network initialization
>>>>>             ├── Network initialization thread
>>>>>             ├── Hardware has no MAC Address
>>>>>
>>>>> Could someone help me with this?
>>>>> And also, I've been searching for articles about building applications
>>>>> for NuttX, but didn't find any. Does anyone know where I can find them?
>>>>>
>>>>>
>>>>>

Re: undefined reference to 'inet_ntoa_r'

Posted by Gustavo Soares <gu...@hotmail.com>.
I'm trying to compile the webserver example first. When I created the
config file, the chosen configuration for esp32 was 'esp32-devkitc:nsh'.

Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko <
petro.karashchenko@gmail.com> escreveu:

> Hello Gustavo,
>
> Are you trying to compile an example or your custom application?
> If you are getting started with an example, so maybe you make "make
> savedefconfig" and send it to me, so I can try locally?
>
> Best regards,
> Petro
>
> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
> gustavo.felipesoares@hotmail.com> wrote:
>
>> Hello, Petro!
>>
>> inside menuconfig IPv4 is enabled:
>> [image: image.png]
>>
>> It's also possible to see the option in the .config file:
>> [image: image.png]
>>
>> Thank you for your support,
>> Gustavo.
>>
>>
>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
>> petro.karashchenko@gmail.com> escreveu:
>>
>>> Hi,
>>>
>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are
>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could you
>>> take a look if your configuration has at least one of those options enabled?
>>>
>>> Best regards,
>>> Petro
>>>
>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <gu...@gmail.com>
>>> пише:
>>>
>>>> Hi!
>>>>
>>>> I'm starting a new project at college using NuttX and ESP-32. I'm
>>>> trying to build a new application for NuttX: a webserver to read and
>>>> execute Assembly! But the following error is showing up:[image: error
>>>> description]
>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c file)]
>>>>
>>>> In menuconfig I enabled:
>>>>   Network support
>>>>      ├── Link layer support
>>>>          ├── Ethernet support
>>>>          ├── Late driver initialization
>>>>      ├── TCP/IP Networking
>>>>
>>>> Application Configuration
>>>>     ├── Network utilities
>>>>         ├── Network initialization
>>>>             ├── Network initialization thread
>>>>             ├── Hardware has no MAC Address
>>>>
>>>> Could someone help me with this?
>>>> And also, I've been searching for articles about building applications
>>>> for NuttX, but didn't find any. Does anyone know where I can find them?
>>>>
>>>>
>>>>

Re: undefined reference to 'inet_ntoa_r'

Posted by Petro Karashchenko <pe...@gmail.com>.
Hello Gustavo,

Are you trying to compile an example or your custom application?
If you are getting started with an example, so maybe you make "make
savedefconfig" and send it to me, so I can try locally?

Best regards,
Petro

On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares <
gustavo.felipesoares@hotmail.com> wrote:

> Hello, Petro!
>
> inside menuconfig IPv4 is enabled:
> [image: image.png]
>
> It's also possible to see the option in the .config file:
> [image: image.png]
>
> Thank you for your support,
> Gustavo.
>
>
> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
> petro.karashchenko@gmail.com> escreveu:
>
>> Hi,
>>
>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are guarded
>> by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could you take a look
>> if your configuration has at least one of those options enabled?
>>
>> Best regards,
>> Petro
>>
>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <gu...@gmail.com>
>> пише:
>>
>>> Hi!
>>>
>>> I'm starting a new project at college using NuttX and ESP-32. I'm trying
>>> to build a new application for NuttX: a webserver to read and execute
>>> Assembly! But the following error is showing up:[image: error
>>> description]
>>> [image: netprocfs_inet4addresses function (netdev_statistics.c file)]
>>>
>>> In menuconfig I enabled:
>>>   Network support
>>>      ├── Link layer support
>>>          ├── Ethernet support
>>>          ├── Late driver initialization
>>>      ├── TCP/IP Networking
>>>
>>> Application Configuration
>>>     ├── Network utilities
>>>         ├── Network initialization
>>>             ├── Network initialization thread
>>>             ├── Hardware has no MAC Address
>>>
>>> Could someone help me with this?
>>> And also, I've been searching for articles about building applications
>>> for NuttX, but didn't find any. Does anyone know where I can find them?
>>>
>>>
>>>

Re: undefined reference to 'inet_ntoa_r'

Posted by Gustavo Soares <gu...@hotmail.com>.
Hello, Petro!

inside menuconfig IPv4 is enabled:
[image: image.png]

It's also possible to see the option in the .config file:
[image: image.png]

Thank you for your support,
Gustavo.


Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko <
petro.karashchenko@gmail.com> escreveu:

> Hi,
>
> I see that both "inet_ntoa" and "inet_ntoa_r" implementations are guarded
> by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could you take a look
> if your configuration has at least one of those options enabled?
>
> Best regards,
> Petro
>
> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <gu...@gmail.com>
> пише:
>
>> Hi!
>>
>> I'm starting a new project at college using NuttX and ESP-32. I'm trying
>> to build a new application for NuttX: a webserver to read and execute
>> Assembly! But the following error is showing up:[image: error
>> description]
>> [image: netprocfs_inet4addresses function (netdev_statistics.c file)]
>>
>> In menuconfig I enabled:
>>   Network support
>>      ├── Link layer support
>>          ├── Ethernet support
>>          ├── Late driver initialization
>>      ├── TCP/IP Networking
>>
>> Application Configuration
>>     ├── Network utilities
>>         ├── Network initialization
>>             ├── Network initialization thread
>>             ├── Hardware has no MAC Address
>>
>> Could someone help me with this?
>> And also, I've been searching for articles about building applications
>> for NuttX, but didn't find any. Does anyone know where I can find them?
>>
>>
>>

Re: undefined reference to 'inet_ntoa_r'

Posted by Petro Karashchenko <pe...@gmail.com>.
Hi,

I see that both "inet_ntoa" and "inet_ntoa_r" implementations are guarded
by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". Could you take a look
if your configuration has at least one of those options enabled?

Best regards,
Petro

пт, 17 бер. 2023 р. о 01:57 Gustavo Soares <gu...@gmail.com>
пише:

> Hi!
>
> I'm starting a new project at college using NuttX and ESP-32. I'm trying
> to build a new application for NuttX: a webserver to read and execute
> Assembly! But the following error is showing up:[image: error description]
> [image: netprocfs_inet4addresses function (netdev_statistics.c file)]
>
> In menuconfig I enabled:
>   Network support
>      ├── Link layer support
>          ├── Ethernet support
>          ├── Late driver initialization
>      ├── TCP/IP Networking
>
> Application Configuration
>     ├── Network utilities
>         ├── Network initialization
>             ├── Network initialization thread
>             ├── Hardware has no MAC Address
>
> Could someone help me with this?
> And also, I've been searching for articles about building applications for
> NuttX, but didn't find any. Does anyone know where I can find them?
>
>
>