bug-coreutils
[Top][All Lists]
Advanced

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

Re: Core utils 7.5 Os/2


From: Jim Meyering
Subject: Re: Core utils 7.5 Os/2
Date: Fri, 21 Aug 2009 18:10:15 +0200

Elbert & Nicole Pol wrote:
> Did a try to port it to Os2.
> But the make failed :(
> I use gcc 4.4.1
...
> savewd.c: In function 'savewd_chdir':
> savewd.c:112: error: 'O_DIRECTORY' undeclared (first use in this function)
> savewd.c:112: error: (Each undeclared identifier is reported only once
> savewd.c:112: error: for each function it appears in.)

That symbol is supposed to be defined in lib/fcntl.h.
And savewd.c does include <fcntl.h>.

Can you figure out what is not working?
Start by doing this:

    cd lib; rm -f savewd.o
    make AM_CFLAGS='-E -dD' savewd.o; mv savewd.o savewd.i

Then send look at savewd.i (preprocessed C) and see if you
can figure it out.




reply via email to

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