pkgsrc-Users archive

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

Re: pkg_install/libfetch build failure with clang



On Tue, Aug 23, 2022 at 04:22:45PM +0200, Edgar Fuß wrote:
> I've set up a NetBSD-8 server to use clang as PKGSRC_COMPILER (more later) 
> and now building pkg_install (from 2022Q2) fails to build libfetch:
> 
> #   compile  libfetch/http.o
> clang -O2 -fPIC -I/usr/include  -std=gnu99     -Wno-sign-compare -Wno-pointer-sign  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare    -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Werror   -fPIE  -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=0022 -I/var/work/pkgsrc/pkgtools/pkg_install/work/libfetch -I/var/work/pkgsrc/pkgtools/pkg_install/work -DHAVE_NBCOMPAT_H=1 -I/var/work/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I/usr/include -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DINET6 -DWITH_SSL -DFTP_COMBINE_CWDS  -c    http.c -o http.o
> http.c:622:9: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable]
>         int t, r;
>                ^
> 
> Any hints?

This variable is really only set and not used.

It was removed in FreeBSD (upstream) already, I just removed it in pkgsrc.
 Thomas


Home | Main Index | Thread Index | Old Index