pkgsrc-Users archive

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

audio/arts build broken by FORTIFY_SOURCE



NetBSD wheel 7.1_STABLE NetBSD 7.1_STABLE (XEN3_DOM0) #44: Sat Jul  8 03:22:36 EDT 2017  root%bldr.6net.duzan.org@localhost:/usr/build/netbsd-7/obj/usr/build/netbsd-7/src/sys/arch/amd64/compile/XEN3_DOM0 amd64

/bin/sh ../libtool --silent --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../mcop -I../mcop -I../mcop -I../flow -I../flow -I../soundserver -I../libltdl -I/usr/pkg/include -I/usr/pkg/qt3/include -I/usr/X11R7/include  -I/usr/pkg/include -I/usr/X11R7/include -I../libltdl -DCOMPILING_ARTSC -DQT_THREAD_SUPPORT -I/usr/pkg/include -I/usr/X11R7/include -I/usr/pkg/qt3/include -I/usr/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -pthread  -DARTSC_BACKEND='"/usr/pkg/lib/libartscbackend.la"'  -DNDEBUG -O2  -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/pkg/qt3/include -I/usr/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -pthread  -MT artsdsp.lo -MD -MP -MF .deps/artsdsp.Tpo -c -o artsdsp.lo artsdsp.c
artsdsp.c:625:9: error: redefinition of 'read'
 ssize_t read (int fd, void *buf, size_t count)
         ^
In file included from /usr/include/ssp/stdio.h:34:0,
                 from /usr/include/stdio.h:593,
                 from artsdsp.c:31:
/usr/include/ssp/unistd.h:39:1: note: previous definition of 'read' was here
 __ssp_redirect0(ssize_t, read, (int __fd, void *__buf, size_t __len), \
 ^
Makefile:553: recipe for target 'artsdsp.lo' failed
gmake[3]: *** [artsdsp.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
mv -f .deps/artscbackend.Tpo .deps/artscbackend.Plo
gmake[3]: Leaving directory '/usr/pkg/work/audio/arts/work/arts-1.5.10/artsc'
[...]

   Setting PKGSRC_USE_FORTIFY=no in the Makefile avoids the problem.

				Gary Duzan




Home | Main Index | Thread Index | Old Index