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


_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to