* dash klibc DEBUG compile question
@ 2010-09-09 8:16 maximilian attems
2010-09-09 8:22 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: maximilian attems @ 2010-09-09 8:16 UTC (permalink / raw)
To: Herbert Xu; +Cc: dash, klibc
now with the proper flags passed and the jobs.c fix dash
allmost compiles in DEBUG mode, the last two failures happen
in show.c, which assumes some buffering functions that klibc
doesn't provide:
usr/dash/show.o: In function `opentrace':
show.c:(.text+0x36): undefined reference to `freopen'
show.c:(.text+0x86): undefined reference to `setlinebuf'
afais this code dates from the initial git import.
any preferences on how to fix those Herbert?
--
maks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dash klibc DEBUG compile question
2010-09-09 8:16 dash klibc DEBUG compile question maximilian attems
@ 2010-09-09 8:22 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2010-09-09 8:22 UTC (permalink / raw)
To: maximilian attems; +Cc: dash, klibc
On Thu, Sep 09, 2010 at 10:16:11AM +0200, maximilian attems wrote:
> now with the proper flags passed and the jobs.c fix dash
> allmost compiles in DEBUG mode, the last two failures happen
> in show.c, which assumes some buffering functions that klibc
> doesn't provide:
> usr/dash/show.o: In function `opentrace':
> show.c:(.text+0x36): undefined reference to `freopen'
> show.c:(.text+0x86): undefined reference to `setlinebuf'
>
> afais this code dates from the initial git import.
> any preferences on how to fix those Herbert?
setlinebuf is easy I guess if klibc doesn't do buffering. You
can just skip it.
freopen is trickier. However, it's only needed if you enable
history. So I guess you could put it inside ifndef SMALL and
use fclose/fopen when not using history support.
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-09 8:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09 8:16 dash klibc DEBUG compile question maximilian attems
2010-09-09 8:22 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox