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 18:45:06 +0100

I should think not. As far as I'm aware, bootstrap will copy all the
used modules to lib/ and they can be used at compile time if needed.
If the environment affects the tarball being created, we have a bug in
the system

On 12 December 2015 at 18:39, Tim Rühsen <address@hidden> wrote:
> You might be right, thanks for pointing out (I never use tarballs, that's why
> I don't have them in mind).
>
> Giuseppe created the tarballs on a system with flock() available. AFAIK,
> gnulib jumps in only when needed. Maybe the gnulib-flock implementation didn't
> find it's into the tarball ? We have to check that.
>
> Tim
>
> Am Samstag, 12. Dezember 2015, 18:21:43 schrieb Darshit Shah:
>> If he's talking about releases, he is probably using the release
>> tarballs. Those don't need ./bootstrap
>>
>> On 12 December 2015 at 18:15, Tim Rühsen <address@hidden> wrote:
>> > Hi Christian,
>> >
>> > did you ./bootstrap, ./configure, make clean, make after updating ?
>> >
>> > Especially without ./bootstrap flock might not be taken from gnulib (which
>> > call lockf if flock is not available).
>> >
>> > Regards, Tim
>> >
>> > Am Samstag, 12. Dezember 2015, 17:42:10 schrieb Christian Jullien:
>> >> 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]