Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2017 11:33:39 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        meta+ports@vmeta.jp
Cc:        freebsd-ports@freebsd.org
Subject:   port net/tightvnc failes to build with DEBUG
Message-ID:  <20170503093339.GA62352@c720-r314251>

next in thread | raw e-mail | index | archive | help

Hello,

when DEBUG is set in /etc/make.conf:

CFLAGS+= -DDEBUG

the port failes to build with:

# make 
...
rm -f fserve.o
cc -c -O2 -pipe -DDEBUG  -Wno-return-type -fstack-protector -fno-strict-aliasing -ansi -pedantic -Dasm=__asm  -I../../.././/include/fonts -I../include  -I../../.././ -I../../.././/exports/include  -DCSRG_BASED -DSHAPE   				    				    			   				    -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV   -D_XSERVER64 -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO    fserve.c
fserve.c:412:5: warning: declaration of built-in function 'fprintf' requires inclusion of the header
      <stdio.h> [-Wbuiltin-requires-header]
    fprintf(stderr, "failed to connect to FS \"%s\"\n", name);
    ^
fserve.c:412:13: error: use of undeclared identifier 'stderr'
    fprintf(stderr, "failed to connect to FS \"%s\"\n", name);

	matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045



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