Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Oct 2016 18:17:59 GMT
From:      pkg-fallout@FreeBSD.org
To:        dinoex@FreeBSD.org
Cc:        pkg-fallout@FreeBSD.org
Subject:   [package - head-amd64-default][news/nntp] Failed for nntp-1.5.12.2_7 in build
Message-ID:  <201610291817.u9TIHxTl088769@beefy4.nyi.freebsd.org>

next in thread | raw e-mail | index | archive | help
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     dinoex@FreeBSD.org
Last committer: dinoex@FreeBSD.org
Ident:          $FreeBSD: head/news/nntp/Makefile 422237 2016-09-16 05:42:59Z dinoex $
Log URL:        http://beefy4.nyi.freebsd.org/data/head-amd64-default/p424740_s307979/logs/nntp-1.5.12.2_7.log
Build URL:      http://beefy4.nyi.freebsd.org/build.html?mastername=head-amd64-default&build=p424740_s307979
Log:

====>> Building news/nntp
build started at Sat Oct 29 18:17:50 UTC 2016
port directory: /usr/ports/news/nntp
building for: FreeBSD head-amd64-default-job-24 12.0-CURRENT FreeBSD 12.0-CURRENT r307979 amd64
maintained by: dinoex@FreeBSD.org
Makefile ident:      $FreeBSD: head/news/nntp/Makefile 422237 2016-09-16 05:42:59Z dinoex $
Poudriere version: 3.1.14
Host OSVERSION: 1200005
Jail OSVERSION: 1200014




!!! Jail is newer than host. (Jail: 1200014, Host: 1200005) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/csh
UNAME_v=FreeBSD 12.0-CURRENT r307979
UNAME_r=12.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
ARCH=amd64
SAVED_TERM=
MASTERMNT=/usr/local/poudriere/data/.m/head-amd64-default/ref
UID=0
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
_JAVA_VERSION_LIST_REGEXP=1.6\|1.7\|1.8\|1.6+\|1.7+\|1.8+
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=nntp-1.5.12.2_7
OSREL=12.0
_OSRELEASE=12.0-CURRENT
PYTHONBASE=/usr/local
OLDPWD=/
_SMP_CPUS=24
PWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p/pool
HAVE_COMPAT_IA32_KERN=YES OPSYS=FreeBSD
MASTERNAME=head-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
_JAVA_VENDOR_LIST_REGEXP=openjdk\|oracle\|sun
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.14
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
CONFIGURE_MAX_CMD_LEN=262144
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
_JAVA_OS_LIST_REGEXP=native\|linux
OSVERSION=1200014
---End Environment---

---Begin OPTIONS List---
===> The following configuration options are available for nntp-1.5.12.2_7:
     INETD=off: build to run from inetd only
     DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
---End OPTIONS List---

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/news/nntp/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/news/nntp/work  HOME=/wrkdirs/usr/ports/news/nntp/work TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
DBLIBS="/usr/local/lib/libcnews.a -lcrypt -lutil" ETCDIR="/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/sbin" BINDIR="/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/libexec/cnews" MANDIR="/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/man" XDG_DATA_HOME=/wrkdirs/usr/ports/news/nntp/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/news/nntp/work  HOME=/wrkdirs/usr/ports/news/nntp/work TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89"  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 444"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
VARBASE=/var
NEWSBIN=libexec/cnews
NEWSCTL=lib/news
OSREL=12.0
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS=""
PORTEXAMPLES=""
LIB32DIR=lib
DOCSDIR="share/doc/nntp"
EXAMPLESDIR="share/examples/nntp"
DATADIR="share/nntp"
WWWDIR="www/nntp"
ETCDIR="etc/nntp"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/nntp
DOCSDIR=/usr/local/share/doc/nntp
EXAMPLESDIR=/usr/local/share/examples/nntp
WWWDIR=/usr/local/www/nntp
ETCDIR=/usr/local/etc/nntp
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
=======================<phase: check-sanity   >============================
===========================================================================
=======================<phase: pkg-depends    >============================
===>   nntp-1.5.12.2_7 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.9.1.txz
[head-amd64-default-job-24] Installing pkg-1.9.1...
[head-amd64-default-job-24] Extracting pkg-1.9.1: .......... done
===>   nntp-1.5.12.2_7 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of nntp-1.5.12.2_7
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===> Fetching all distfiles required by nntp-1.5.12.2_7 for building
===========================================================================
=======================<phase: checksum       >============================
===> Fetching all distfiles required by nntp-1.5.12.2_7 for building
=> SHA256 Checksum OK for nntp.1.5.12.2.tar.gz.
=> SHA256 Checksum OK for nntp-patch-y2k.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===> Fetching all distfiles required by nntp-1.5.12.2_7 for building
===>  Extracting for nntp-1.5.12.2_7
=> SHA256 Checksum OK for nntp.1.5.12.2.tar.gz.
=> SHA256 Checksum OK for nntp-patch-y2k.
cp -f /wrkdirs/usr/ports/news/nntp/work/nntp-1.5.12.2_7/conf.h.dist /wrkdirs/usr/ports/news/nntp/work/nntp-1.5.12.2_7/conf.h
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for nntp-1.5.12.2_7
===>  Applying distribution patches for nntp-1.5.12.2_7
===>  Applying FreeBSD patches for nntp-1.5.12.2_7
===========================================================================
=======================<phase: build-depends  >============================
===>   nntp-1.5.12.2_7 depends on file: /usr/local/lib/libcnews.a - not found
===>   Installing existing package /packages/All/cnews-cr.g_16.txz
[head-amd64-default-job-24] Installing cnews-cr.g_16...
[head-amd64-default-job-24] Extracting cnews-cr.g_16: .......... done
Message from cnews-cr.g_16:
you MUST change the configuration of this news setup:
  cd to /var/lib/news and change the following files...
mailname, whoami, organization, mailpaths, sys, readnews.ctl, postdefltgroup
  to suit your local system and news topology.
check that you have vaild aliases in report.ctl,
  so any problem can be reported.

for ease of administration you may add a shell:
pw usermod news -d /var/lib/news -s /bin/csh
===>   nntp-1.5.12.2_7 depends on file: /usr/local/lib/libcnews.a - found
===>   Returning to build of nntp-1.5.12.2_7
===========================================================================
=======================<phase: lib-depends    >============================
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for nntp-1.5.12.2_7
/usr/bin/sed -i.bak -e 's|\([(! 	]\)log\([)+ 	]\)|\1dolog\2|g'  /wrkdirs/usr/ports/news/nntp/work/nntp-1.5.12.2_7/server/msgidd.c
/usr/bin/sed -i.bak   -e "s=/usr/local/news/lib/bin/config=/usr/local/libexec/cnews/config="  -e "s=/usr/local/news/cnewsbin=/usr/local/libexec/cnews="  -e "s=/usr/local/news/lib=/var/lib/news="  -e "s=/var/news/over.view=/var/news/over.view="  -e "s=/var/news=/var/news="  -e "s=/usr/local/bin=/usr/local/bin="  -e "s=/usr/local/sbin=/usr/local/sbin="  -e "s=/usr/local/man=/usr/local/man="  /wrkdirs/usr/ports/news/nntp/work/nntp-1.5.12.2_7/conf.h
===========================================================================
=======================<phase: build          >============================
===>  Building for nntp-1.5.12.2_7
/usr/bin/make -C server   "LIBS=/usr/local/lib/libcnews.a -lcrypt -lutil   " "CFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include" "ETCDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/sbin" "BINDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/libexec/cnews" "MANDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/man"
cc  -O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include -c main.c -o main.o
In file included from main.c:18:
In file included from ./common.h:8:
./../conf.h:197:39: warning: '/*' within block comment [-Wcomment]
/*define ROVER_DIR "/var/news/r.over"   /* base directory */
                                        ^
./../conf.h:212:44: warning: '/*' within block comment [-Wcomment]
/*#define THREAD_DIR    "/usr/spool/threads"            /* base directory */
                                                        ^
main.c:105:25: warning: incompatible pointer types passing 'int ()' to parameter of type '__sighandler_t *' (aka 'void (*)(int)') [-Wincompatible-pointer-types]
        (void) signal(SIGCHLD, reaper);
                               ^~~~~~
/usr/include/sys/signal.h:465:45: note: passing argument to parameter here
__sighandler_t *signal(int, __sighandler_t *);
                                            ^
main.c:161:26: warning: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'struct sockaddr *' [-Wincompatible-pointer-types]
<snip>
        dprintf(stderr, "Parse(%d/%s): `%s'\n", fd, hosts[fd], buf);
                                                    ~~~~~ ~~^
msgidd.c:505:9: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
    if (STRN_EQ(cmdp, msgs[MCANCEL], 4)) {
        ^
msgidd.c:22:47: note: expanded from macro 'STRN_EQ'
#define STRN_EQ(s1, s2, n)      (*(s1) == *(s2) && strncmp(s1, s2, n) == 0)
                                                   ^
msgidd.c:505:9: note: include the header <string.h> or explicitly provide a declaration for 'strncmp'
msgidd.c:22:47: note: expanded from macro 'STRN_EQ'
#define STRN_EQ(s1, s2, n)      (*(s1) == *(s2) && strncmp(s1, s2, n) == 0)
                                                   ^
msgidd.c:519:18: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Old(%d/%s): `%s'\n", fd, hosts[fd], bufp);
                        ^~~~~~~~~~~~~~~~~~~~
msgidd.c:519:40: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Old(%d/%s): `%s'\n", fd, hosts[fd], bufp);
                                              ^~
msgidd.c:519:52: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Old(%d/%s): `%s'\n", fd, hosts[fd], bufp);
                                                  ~~~~~ ~~^
msgidd.c:527:18: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Connect(%d/%s)\n", fd, hosts[fd]);
                        ^~~~~~~~~~~~~~~~~~
msgidd.c:527:38: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Connect(%d/%s)\n", fd, hosts[fd]);
                                            ^~
msgidd.c:534:18: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Error(%d/%s) unknown-cmd %s\n", fd, hosts[fd], cmdp);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
msgidd.c:534:51: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Error(%d/%s) unknown-cmd %s\n", fd, hosts[fd], cmdp);
                                                         ^~
msgidd.c:534:63: warning: expression result unused [-Wunused-value]
        dprintf(stderr, "Error(%d/%s) unknown-cmd %s\n", fd, hosts[fd], cmdp);
                                                             ~~~~~ ~~^
41 warnings generated.
/usr/bin/make -C support   "LIBS=/usr/local/lib/libcnews.a -lcrypt -lutil   " "CFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include" "ETCDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/sbin" "BINDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/libexec/cnews" "MANDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/man"
cc  -O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include -c acttimes.c -o acttimes.o
In file included from acttimes.c:26:
./../conf.h:197:39: warning: '/*' within block comment [-Wcomment]
/*define ROVER_DIR "/var/news/r.over"   /* base directory */
                                        ^
./../conf.h:212:44: warning: '/*' within block comment [-Wcomment]
/*#define THREAD_DIR    "/usr/spool/threads"            /* base directory */
                                                        ^
acttimes.c:62:26: warning: '/*' within block comment [-Wcomment]
/*#define index   strchr        /* uncomment these if you need them */
                                ^
acttimes.c:63:27: warning: '/*' within block comment [-Wcomment]
/*#define rindex  strrchr       /* (i.e. if index is undefined) */
                                ^
acttimes.c:74:28: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration]
char *index(), *rindex(), *malloc();
                           ^
acttimes.c:74:28: note: 'malloc' is a builtin with type 'void *(unsigned long)'
acttimes.c:123:7: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
                    exit(1);
                    ^
acttimes.c:123:7: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
acttimes.c:137:5: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
    strcpy(lockfile, ACTIVE_TIMES_FILE);
    ^
acttimes.c:137:5: note: include the header <string.h> or explicitly provide a declaration for 'strcpy'
acttimes.c:153:5: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
    strcat(lockfile, "LOCKacttimes");
    ^
acttimes.c:153:5: note: include the header <string.h> or explicitly provide a declaration for 'strcat'
acttimes.c:356:23: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
        pline->name = malloc(strlen(buf) + 1);
                             ^
acttimes.c:356:23: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
acttimes.c:384:7: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
                if (strnEQ(buf, pline->name, strlen(pline->name))) {
                    ^
acttimes.c:70:25: note: expanded from macro 'strnEQ'
#define strnEQ(x,y,n) (!strncmp((x),(y),(n)))
                        ^
acttimes.c:384:7: note: include the header <string.h> or explicitly provide a declaration for 'strncmp'
acttimes.c:70:25: note: expanded from macro 'strnEQ'
#define strnEQ(x,y,n) (!strncmp((x),(y),(n)))
                        ^
10 warnings generated.
cc -O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include -o acttimes acttimes.o
/usr/bin/make -C doc   "LIBS=/usr/local/lib/libcnews.a -lcrypt -lutil   " "CFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include" "ETCDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/sbin" "BINDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/libexec/cnews" "MANDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/man"
./config.sh nntpd.dst nntpd.8c
Extracting nntpd.8c from nntpd.dst ...
Finished.
./config.sh nntpxmit.dst nntpxmit.1
Extracting nntpxmit.1 from nntpxmit.dst ...
Finished.
./config.sh acttimes.dst acttimes.8c
Extracting acttimes.8c from acttimes.dst ...
Finished.
Done
/usr/bin/make -C xmit   "LIBS=/usr/local/lib/libcnews.a -lcrypt -lutil   " "CFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include" "ETCDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/sbin" "BINDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/libexec/cnews" "MANDIR=/wrkdirs/usr/ports/news/nntp/work/stage/usr/local/man"
cc  -O2 -pipe  -fstack-protector -fno-strict-aliasing -std=gnu89 -I/usr/local/include -c nntpxmit.c -o nntpxmit.o
In file included from nntpxmit.c:66:
./../conf.h:197:39: warning: '/*' within block comment [-Wcomment]
/*define ROVER_DIR "/var/news/r.over"   /* base directory */
                                        ^
./../conf.h:212:44: warning: '/*' within block comment [-Wcomment]
/*#define THREAD_DIR    "/usr/spool/threads"            /* base directory */
                                                        ^
nntpxmit.c:105:7: error: conflicting types for 'getline'
char    *getline();
         ^
/usr/include/stdio.h:361:10: note: previous declaration is here
ssize_t  getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
         ^
nntpxmit.c:184:20: warning: implicitly declaring library function 'rindex' with type 'char *(const char *, int)' [-Wimplicit-function-declaration]
        Pname = ((Pname = rindex(av[0],'/')) ? Pname + 1 : av[0]);
                          ^
nntpxmit.c:184:20: note: include the header <strings.h> or explicitly provide a declaration for 'rindex'
nntpxmit.c:188:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
                exit(EX_USAGE);
                ^
nntpxmit.c:188:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
nntpxmit.c:240:16: warning: implicitly declaring library function 'index' with type 'char *(const char *, int)' [-Wimplicit-function-declaration]
                if ((Qfile = index(Host, ':')) != (char *)NULL) {
                             ^
nntpxmit.c:240:16: note: include the header <strings.h> or explicitly provide a declaration for 'index'
nntpxmit.c:250:3: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration]
                bzero((caddr_t)&Stats, sizeof(Stats));
                ^
nntpxmit.c:250:3: note: include the header <strings.h> or explicitly provide a declaration for 'bzero'
nntpxmit.c:257:11: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
                        (void) strcpy(Article, Qfile);
                               ^
nntpxmit.c:257:11: note: include the header <string.h> or explicitly provide a declaration for 'strcpy'
nntpxmit.c:382:27: warning: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'char **' [-Wincompatible-pointer-types]
                while ((msgid = getline(Qfp, Article, sizeof(Article))) != NULL) {
                                        ^~~
/usr/include/stdio.h:361:36: note: passing argument to parameter here
ssize_t  getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
                                   ^
nntpxmit.c:382:32: warning: incompatible pointer types passing 'char [1024]' to parameter of type 'size_t *' (aka 'unsigned long *') [-Wincompatible-pointer-types]
                while ((msgid = getline(Qfp, Article, sizeof(Article))) != NULL) {
                                             ^~~~~~~
/usr/include/stdio.h:361:57: note: passing argument to parameter here
ssize_t  getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
                                                        ^
nntpxmit.c:382:41: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'FILE *' (aka 'struct __sFILE *') [-Wint-conversion]
                while ((msgid = getline(Qfp, Article, sizeof(Article))) != NULL) {
                                                      ^~~~~~~~~~~~~~~
/usr/include/stdio.h:361:76: note: passing argument to parameter here
ssize_t  getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
                                                                           ^
nntpxmit.c:382:17: warning: incompatible integer to pointer conversion assigning to 'char *' from 'ssize_t' (aka 'long') [-Wint-conversion]
                while ((msgid = getline(Qfp, Article, sizeof(Article))) != NULL) {
                              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nntpxmit.c:536:10: warning: returning 'const char *const' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                return sys_errlist[code];
                       ^~~~~~~~~~~~~~~~~
nntpxmit.c:554:10: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
        cp = &s[strlen(s) - 1];
                ^
nntpxmit.c:554:10: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
nntpxmit.c:610:8: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
                        if (strncmp(lcase(buf), msgid, strlen(msgid)) == 0) {
                            ^
nntpxmit.c:610:8: note: include the header <string.h> or explicitly provide a declaration for 'strncmp'
nntpxmit.c:821:1: error: conflicting types for 'getline'
getline(fp, line, len)
^
/usr/include/stdio.h:361:10: note: previous declaration is here
ssize_t  getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
         ^
nntpxmit.c:899:10: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
                (void) strcat(strcat(buf, " "), msgid);
                       ^
nntpxmit.c:899:10: note: include the header <string.h> or explicitly provide a declaration for 'strcat'
nntpxmit.c:1070:3: warning: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
        {NULL}
         ^~~~
/usr/include/sys/_null.h:32:14: note: expanded from macro 'NULL'
#define NULL    ((void *)0)
                ^~~~~~~~~~~
nntpxmit.c:1080:31: warning: comparison between pointer and integer ('int' and 'void *')
                for(i = 0; SigList[i].signo != NULL; i++) {
                           ~~~~~~~~~~~~~~~~ ^  ~~~~
nntpxmit.c:1084:31: warning: comparison between pointer and integer ('int' and 'void *')
                for(i = 0; SigList[i].signo != NULL; i++) {
                           ~~~~~~~~~~~~~~~~ ^  ~~~~
nntpxmit.c:1095:30: warning: comparison between pointer and integer ('int' and 'void *')
        for(i = 0; SigList[i].signo != NULL; i++) {
                   ~~~~~~~~~~~~~~~~ ^  ~~~~
19 warnings and 2 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /wrkdirs/usr/ports/news/nntp/work/nntp-1.5.12.2_7/xmit
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/news/nntp/work/nntp-1.5.12.2_7
*** Error code 1

Stop.
make: stopped in /usr/ports/news/nntp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610291817.u9TIHxTl088769>