pkgsrc-Users archive

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

pkgsrc-2018Q2: pkgtools/pkgin fails to build



My environment is a pkg_comp1 chroot, with NetBSD 7.0 inside.
I use this to make sure all C++ programs are compiled with the same compiler:

PKGSRC_COMPILER=        gcc
GCC_REQD+=              4.9
USE_PKGSRC_GCC=         yes
USE_PKGSRC_GCC_RUNTIME= yes

When building pkgin it fails with

--- download.o ---
#   compile  pkgin-0.11.3/download.o
gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include      -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wno-traditional  -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wconversion -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/pkg_comp/obj/pkgsrc/pkgtools/pkgin/default/libnbcompat -I/usr/pkg/include -I/usr/include  -DPKGIN_VERSION=\""0.11.3 for NetBSD-7.0 x86_64"\" -DHAVE_NBCOMPAT_H=1 -I/pkg_comp/obj/pkgsrc/pkgtools/pkgin/default/libnbcompat -I/usr/pkg/include -I/usr/include -g -DLOCALBASE=\"/usr/pkg\"         -DPKG_SYSCONFDIR=\"/usr/pkg/etc\"                -DPKGIN_DBDIR=\"/var/db/pkgin\" -DPKGTOOLS=\"/usr/pkg/sbin\" -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_LARGE_FILES -DCHECK_MACHINE_ARCH=\"x86_64\" -I. -I/usr/pkg/include  -c    download.c

download.c: In function 'download_pkg':
download.c:213:6: error: conversion to 'short unsigned int' from 'int' may alter its value [-Werror=conversion]
      clearerr(fp);
      ^
cc1: all warnings being treated as errors
*** [download.o] Error code 1

make: stopped in /pkg_comp/obj/pkgsrc/pkgtools/pkgin/default/pkgin-0.11.3
1 error

Note the -Werror in the options.

If I configure and build pkgin outside the context of pkg_comp and
pkgsrc, the -Werror option isn't there. It also isn't to be found
anywhere in the pkgin source tree. So where does it come from?

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index