lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip PPP malloc problem


From: Rainer Thaden
Subject: Re: [lwip-users] lwip PPP malloc problem
Date: Mon, 21 Jul 2014 15:37:38 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Simon,


Am 21.07.2014 14:02, schrieb Simon Goldschmidt:
> Rainer Thaden wrote:
>> Since I need to communicate over serial ports, too, I activated PPP
>> support in lwipopts.h.
>> Now, the linker complains about undefined references to _sbrk which (to
>> me) is a sign for a call to malloc in the libc somewhere.
> Check your linker file if it tells you why _sbrk is wanted. At least gcc has 
> some good output in the map file for this. I think I remember to get malloc 
> include when calling printf...
>

Found it. Due to your post, I inspected the linker map file again and
found that rand() and srand() were calling malloc from libc.
I replaced them by urand() and usrand() per define in the makefile and
now it compiles.
Thanks for your help!

Regards,

Rainer




reply via email to

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