[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: |
Christian Jullien |
Subject: |
Re: [Bug-wget] flock is not available on solaris 10 (at least sparc) |
Date: |
Sat, 12 Dec 2015 20:23:17 +0100 |
I'm using wget-1.17.1.tar.gz pushed yesterday on http://ftp.gnu.org/pub/gnu
Here are my attempts to make wget compile on Solaris 10
(sol-10-u11-ga-sparc-dvd.iso)
address@hidden uname -a
SunOS pastre 5.10 Generic_147147-26 sun4u sparc SUNW,Ultra-5_10 Solaris
address@hidden gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/sparc-sun-solaris2.10/5.2.0/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: ../configure --with-gnu-as --with-as=/usr/local/bin/as
--with-gnu-ld --with-ld=/usr/local/bin/ld --enable-shared --disable-lto
--disable-nls --enable-languages=c,c++
Thread model: posix
gcc version 5.2.0 (GCC)
=> first attempt
$ ./configure; make
...
configure: error: Package requirements (gnutls) were not met:
Package gnutls was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnutls.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnutls' found
=> Ok, I add PKG_CONFIG_PATH , 2nd attempt
$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure; make
...
gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\"
-DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../lib -I../lib -D_REENTRANT
-I/usr/local/include -I/usr/include/idn -I/usr/local/include
-I/usr/local/include -DHAVE_LIBGNUTLS -I/usr/local/include -DNDEBUG -MT
connect.o -MD -MP -MF .deps/connect.Tpo -c -o connect.o connect.c
In file included from /usr/include/sys/types.h:17:0,
from ../lib/sys/types.h:28,
from sysdep.h:85,
from wget.h:47,
from connect.c:32:
/usr/local/lib/gcc/sparc-sun-solaris2.10/5.2.0/include-fixed/sys/feature_tests.h:346:2:
error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications
and pre-2001 POSIX applications"
#error "Compiler or options invalid for pre-UNIX 03 X/Open applications \
^
Makefile:1579: recipe for target 'connect.o' failed
=> Ok, _XPG6 is now required, 3rd attempt
$ CFLAGS="-D_XPG6" PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure; make
...
gcc -I/usr/local/include -I/usr/local/include -DHAVE_LIBGNUTLS
-I/usr/local/include -DNDEBUG -D_XPG6 -o wget connect.o convert.o cookies.o
ftp.o css_.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o hsts.o html-parse.o
html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o res.o
retr.o spider.o url.o warc.o utils.o exits.o build_info.o version.o
ftp-opie.o gnutls.o ../lib/libgnu.a /usr/local/lib/libiconv.so -Wl,-rpath
-Wl,/usr/local/lib /usr/local/lib/libintl.so -L/usr/local/lib
/usr/local/lib/libiconv.so -lc -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib
-lpcre -L/usr/local/lib -lgnutls -L/usr/local/lib -lz -lsocket -lnsl -lrt
-lrt
/usr/local/bin/ld: warning: libnettle.so.4, needed by
/usr/local/lib/libgnutls.so, not found (try using -rpath or -rpath-link)
/usr/local/bin/ld: warning: libhogweed.so.2, needed by
/usr/local/lib/libgnutls.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libgnutls.so: undefined reference to
`nettle_camellia_set_decrypt_key'
/usr/local/lib/libgnutls.so: undefined reference to `nettle_md2_init'
....
/usr/local/lib/libgnutls.so: undefined reference to `nettle_yarrow256_update'
/usr/local/lib/libgnutls.so: undefined reference to `nettle_yarrow256_random'
collect2: error: ld returned 1 exit status
=> Ok, I have openssl, 4th attempt
$ CFLAGS="-D_XPG6" PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure
--with-ssl=openssl; make
...
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
-----Original Message-----
From: Darshit Shah [mailto:address@hidden
Sent: samedi 12 décembre 2015 18:22
To: Tim Rühsen
Cc: Bug-Wget; Christian Jullien
Subject: Re: [Bug-wget] flock is not available on solaris 10 (at least sparc)
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
Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Tim Rühsen, 2015/12/12
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Kiyoshi KANAZAWA, 2015/12/15
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Tim Ruehsen, 2015/12/15
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Kiyoshi KANAZAWA, 2015/12/15
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Giuseppe Scrivano, 2015/12/16
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Tim Ruehsen, 2015/12/16
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Dagobert Michelsen, 2015/12/16
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Giuseppe Scrivano, 2015/12/16
- Re: [Bug-wget] flock is not available on solaris 10 (at least sparc), Tim Rühsen, 2015/12/16