jasonkajita/chipKIT-cxx — Issue #2: undefined _kill_r and _getpid_r & ultoa redefinition with chipKIT
Author: jasonkajita
Created: 2012-01-24 15:56:42+00:00
State: open

http://chipkit.cc/forum/viewtopic.php?p=3944&sid=fa3c9afd34ab28266709dab8d975a26a#p3944

I encountered two errors... the first was when using the Ethernet shield, namely (1) the redefinition of ultoa() and then (2): undefined references to kill and getpid, please see below:

/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/lib/libc.a(lib_a-signalr.o): In function `_kill_r':
/Users/kjason/github-jasonkajita/mac-build/newlib/pic32mx/newlib/libc/reent/../../../../../../pic32-newlib/newlib/libc/reent/signalr.c:61: undefined reference to `kill'
/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/lib/libc.a(lib_a-signalr.o): In function `_getpid_r':
/Users/kjason/github-jasonkajita/mac-build/newlib/pic32mx/newlib/libc/reent/../../../../../../pic32-newlib/newlib/libc/reent/signalr.c:96: undefined reference to `getpid'
collect2: ld returned 1 exit status

I SOOOO want a working malloc too!

Thanks for all your work.