Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Problems with linking to libnewlib-lpc.a

2004-04-11 by Robert Adsett

Patrick and I took this discussion off list so we could continue it w/o 
burden everyone with the details.  We appear to have found and fixed the 
source of the problem.

The upshot is the library he was using already had dummy newlib stubs in 
it.  So when linking they were taken in preference to the ones in 
libnewlib-lpc.a unless the replacements were linked in explicitly.

Two solutions:

The quick and dirty one is to remove the dummy stubs from the library 
(libc.a).  If you try this remember to backup the original first :)

The other solutions (the more correct one?) is to rebuild newlib without 
the pre-existing stubs (an option something like 
-DREENTRANT_SYSCALLS_PROVIDED if I remember correctly).  Check Bill 
Gatliff's article and the newlib documentation before proceeding.

Robert


" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.