bug-coreutils
[Top][All Lists]
Advanced

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

Re: Build a single source file under src/


From: Thiago Farina
Subject: Re: Build a single source file under src/
Date: Sun, 27 Dec 2009 22:01:15 -0200

Hi Alfred,

On Sun, Dec 27, 2009 at 9:52 PM, Alfred M. Szmidt <address@hidden> wrote:
> The following might work: make -C src foo.o
>
Thanks for the quick answer.

That didn't work for the tac-pipe example.
$ make -C src tac-pipe.o
make: Entering directory `/home/tfarina/coreutils/src'
  CC     tac-pipe.o
tac-pipe.c:31: error: expected specifier-qualifier-list before ‘size_t’
tac-pipe.c:44: error: expected specifier-qualifier-list before ‘size_t’
tac-pipe.c:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘buf_init_from_stdin’
tac-pipe.c: In function ‘buf_free’:
tac-pipe.c:128: error: ‘size_t’ undeclared (first use in this function)
tac-pipe.c:128: error: (Each undeclared identifier is reported only once
tac-pipe.c:128: error: for each function it appears in.)
tac-pipe.c:128: error: expected ‘;’ before ‘i’
tac-pipe.c:129: error: ‘i’ undeclared (first use in this function)
tac-pipe.c:129: error: ‘Buf’ has no member named ‘n_bufs’
tac-pipe.c:130: warning: implicit declaration of function ‘free’
tac-pipe.c:130: warning: incompatible implicit declaration of built-in
function ‘free’
tac-pipe.c:130: error: ‘Buf’ has no member named ‘p’
tac-pipe.c:131: warning: implicit declaration of function ‘obstack_free’
tac-pipe.c:131: error: ‘Buf’ has no member named ‘obs’
tac-pipe.c:131: error: ‘NULL’ undeclared (first use in this function)
tac-pipe.c: In function ‘line_ptr_decrement’:
tac-pipe.c:139: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:139: error: ‘Buf’ has no member named ‘p’
tac-pipe.c:139: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:141: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:141: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:142: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:142: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:146: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:147: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:147: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:148: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:148: error: ‘Buf’ has no member named ‘p’
tac-pipe.c:148: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c: In function ‘line_ptr_increment’:
tac-pipe.c:158: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:158: error: ‘Buf’ has no member named ‘p’
tac-pipe.c:158: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:159: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:159: error: ‘Buf’ has no member named ‘p’
tac-pipe.c:159: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:161: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:161: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:162: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:162: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:166: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:166: error: ‘Buf’ has no member named ‘n_bufs’
tac-pipe.c:167: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:167: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c:168: error: ‘Line_ptr’ has no member named ‘ptr’
tac-pipe.c:168: error: ‘Buf’ has no member named ‘p’
tac-pipe.c:168: error: ‘Line_ptr’ has no member named ‘i’
tac-pipe.c: At top level:
tac-pipe.c:174: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘find_bol’
tac-pipe.c:220: error: expected ‘)’ before ‘*’ token
tac-pipe.c:233: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘tac_mem’
make: *** [tac-pipe.o] Error 1
make: Leaving directory `/home/tfarina/coreutils/src'

But at least it worked for the programs, like date, cat, wc, etc.




reply via email to

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