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 19:29:03 +0200

Elbert & Nicole Pol wrote:
> On 21-08-09 18:10, Jim Meyering wrote:
>> 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.
>>
> Hi Jim,
>
> Thankz for fast repley :P
> First in the fcntl.h there is no definid for O_DIRECTORY
>
> There is no savewd.o
> But when i run command i get
> # make AM_CFLAGS='-E -dD' savewd.o; mv savewd.o savewd.i
>   CC     savewd.o
> And looking in the savewd.i gives a lot of info.
> But no nfo about the O_directory
> I add to fcntl.h #define O_DIRECTORY 0200000
> Now it's passing the error ...
> But get a other error ...
>
>   CC     canon-host.o
> canon-host.c: In function 'canon_host_r':
> canon-host.c:63: error: storage size of 'hints' isn't known
> canon-host.c:67: error: 'AI_CANONNAME' undeclared (first use in this
> function)
> canon-host.c:67: error: (Each undeclared identifier is reported only once
> canon-host.c:67: error: for each function it appears in.)
> canon-host.c:68: warning: implicit declaration of function 'getaddrinfo'
> canon-host.c:74: error: dereferencing pointer to incomplete type
> canon-host.c:74: error: dereferencing pointer to incomplete type
> canon-host.c:76: error: 'EAI_MEMORY' undeclared (first use in this function)
> canon-host.c:77: warning: implicit declaration of function 'freeaddrinfo'
> canon-host.c: In function 'ch_strerror':
> canon-host.c:89: warning: implicit declaration of function 'gai_strerror'
> canon-host.c:89: warning: return makes pointer from integer without a cast
> make[2]: *** [canon-host.o] Error 1
>
>
> Strange part is when i use gcc 3.4.6 i see no errors  ???

If it works with gcc-3.4.6, then let's stop here,
and presume you have a problem with your installation of gcc-4.1.1.




reply via email to

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