Here is how it compiles on my machine: ri...@ozone:~/work/scrot$ dpkg-source -x scrot_0.8-11.dsc dpkg-source: info: extracting scrot in scrot-0.8 dpkg-source: info: unpacking scrot_0.8.orig.tar.gz dpkg-source: info: applying scrot_0.8-11.diff.gz ri...@ozone:~/work/scrot$ cd scrot-0.8/ ri...@ozone:~/work/scrot/scrot-0.8$ dpatch apply-all applying patch 01_manpagefix to ./ ... ok. applying patch 02_options.c to ./ ... ok. applying patch 003_descmanpage to ./ ... ok. applying patch 04-focused to ./ ... ok. applying patch 05-addfocusedmanpage to ./ ... ok. applying patch 06_manpagespace to ./ ... ok. applying patch 07_fix-formatstring to ./ ... ok. ri...@ozone:~/work/scrot/scrot-0.8$ patch -p1 < ../fix-beeping.diff patching file scrot.1 patching file src/main.c patching file src/options.c patching file src/options.h ri...@ozone:~/work/scrot/scrot-0.8$ ./configure --prefix=/usr --mandir=/usr/share/man checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... no checking for giblib-config... /usr/bin/giblib-config checking for giblib - version >= 1.2.3... yes checking for getopt_long... yes configure: creating ./config.status config.status: creating Makefile config.status: creating scrot.spec config.status: creating src/Makefile config.status: creating src/config.h config.status: executing default-1 commands ri...@ozone:~/work/scrot/scrot-0.8$ make Making all in src make[1]: Entering directory `/home/rinat/work/scrot/scrot-0.8/src' gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -Wall -I/usr/X11R6/include -I/usr/include -I/usr/include -I. -DPREFIX=\""/usr"\" -I/usr/include/giblib -g -O2 -c main.c main.c: In function 'scrot_get_geometry': main.c:383: warning: pointer targets in passing argument 4 of 'XGetGeometry' differ in signedness /usr/include/X11/Xlib.h:2627: note: expected 'int *' but argument is of type 'unsigned int *' main.c:383: warning: pointer targets in passing argument 5 of 'XGetGeometry' differ in signedness /usr/include/X11/Xlib.h:2627: note: expected 'int *' but argument is of type 'unsigned int *' gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -Wall -I/usr/X11R6/include -I/usr/include -I/usr/include -I. -DPREFIX=\""/usr"\" -I/usr/include/giblib -g -O2 -c getopt.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -Wall -I/usr/X11R6/include -I/usr/include -I/usr/include -I. -DPREFIX=\""/usr"\" -I/usr/include/giblib -g -O2 -c getopt1.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -Wall -I/usr/X11R6/include -I/usr/include -I/usr/include -I. -DPREFIX=\""/usr"\" -I/usr/include/giblib -g -O2 -c options.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O3 -Wall -I/usr/X11R6/include -I/usr/include -I/usr/include -I. -DPREFIX=\""/usr"\" -I/usr/include/giblib -g -O2 -c imlib.c gcc -g -O2 -L/usr/X11R6/lib -o scrot main.o getopt.o getopt1.o options.o imlib.o -lX11 -L/usr/lib -lgiblib -L/usr/lib -lImlib2 -lfreetype -lz -L/usr/X11R6/lib -lX11 -lXext -ldl -lm -lm make[1]: Leaving directory `/home/rinat/work/scrot/scrot-0.8/src' make[1]: Entering directory `/home/rinat/work/scrot/scrot-0.8' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/home/rinat/work/scrot/scrot-0.8' ri...@ozone:~/work/scrot/scrot-0.8$
There are no errors, only 2 warnings, but they were there before. Error message you get tells that function prototype missing. May be this is a key. Can you post here your "main.c" file so I can compare it with my version? I attach my version to the message.
scrot.h
Description: Binary data
main.c
Description: Binary data