bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] flock is not available on solaris 10 (at least sparc)


From: Darshit Shah
Subject: Re: [Bug-wget] flock is not available on solaris 10 (at least sparc)
Date: Sat, 12 Dec 2015 17:57:00 +0100

Didn't we fix this by using the Gnulib module?
I thought all the tests were passing on Solaris after that. What went
wrong with the release?
Immediately after the release, even the Solaris buildbot complained
about a broken build.



On 12 December 2015 at 17:42, Christian Jullien <address@hidden> wrote:
> Hi, trying to compile wget-1.17 and now wget-1.17.1 on solaris 10 sparc
> using gcc  5.2.0 , I get:
>
>
>
> hsts.c:505:11: warning: implicit declaration of function 'flock'
> [-Wimplicit-function-declaration]
>
>            flock (fd, LOCK_EX);
>
>            ^
>
> hsts.c:505:22: error: 'LOCK_EX' undeclared (first use in this function)
>
>            flock (fd, LOCK_EX);
>
>                       ^
>
> hsts.c:505:22: note: each undeclared identifier is reported only once for
> each function it appears in
>
> Makefile:1573: recipe for target 'hsts.o' failed
>
>
>
> I solved compilation issue by replacing flock (line 505) by lockf which is
> (POSIX.1-2001)
>
> =>          lockf (fd, F_LOCK, 0);
>
>
>
> Hope it helps.
>
>
>
> Christian
>
>
>
>
>
>
>
>
>



-- 
Thanking You,
Darshit Shah



reply via email to

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