Doesn't build when disabling gnome-pty-helper
Submitted by Loïc Minier
Link to original bug (#542561)
Description
Hi,
building with --disable-gnome-pty-helper ends with: gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR="/usr/local/share" -DLIBEXECDIR="/usr/local/libexec" -DLOCALEDIR="/usr/local/share/locale" -DVTE_COMPILATION -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -DG_DISABLE_ASSERT -DG_LOG_DOMAIN="Vte" -g -O2 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Waggregate-return -Wcast-align -Wimplicit -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wmissing-format-attribute -Wshadow -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -fno-common -MT reaper.lo -MD -MP -MF .deps/reaper.Tpo -c reaper.c -fPIC -DPIC -o .libs/reaper.o pty.c: In function ‘_vte_pty_read_ptypair’: pty.c:646: error: storage size of ‘msg’ isn’t known pty.c:658: error: implicit declaration of function ‘recvmsg’ pty.c:658: warning: nested extern declaration of ‘recvmsg’ pty.c:662: error: implicit declaration of function ‘CMSG_FIRSTHDR’ pty.c:662: warning: nested extern declaration of ‘CMSG_FIRSTHDR’ pty.c:662: warning: assignment makes pointer from integer without a cast pty.c:664: error: implicit declaration of function ‘CMSG_NXTHDR’ pty.c:664: warning: nested extern declaration of ‘CMSG_NXTHDR’ pty.c:664: warning: assignment makes pointer from integer without a cast pty.c:665: error: dereferencing pointer to incomplete type pty.c:665: error: ‘SCM_RIGHTS’ undeclared (first use in this function) pty.c:665: error: (Each undeclared identifier is reported only once pty.c:665: error: for each function it appears in.) pty.c:666: error: implicit declaration of function ‘CMSG_DATA’ pty.c:666: warning: nested extern declaration of ‘CMSG_DATA’ pty.c:666: warning: passing argument 2 of ‘memcpy’ makes pointer from integer without a cast pty.c:646: warning: unused variable ‘msg’
I'll attach a patch from Jérémy Bobbio lunar@debian.org which adds the missing include.
Bye,
Version: 0.16.x
Resolution: RESOLVED FIXED