I fixed passing CPPFLAGS to the Makefile (dh_auto_build -- OPTS="$(CPPFLAGS) $(CFLAGS)"), but it is still failing:
``` make[1]: Entering directory '<<PKGBUILDDIR>>' dh_auto_build -- OPTS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=<<PKGBUILDDIR>>=/usr/src/xf86-input-multitouch-1.0~rc3-2ubuntu1" make -j4 "INSTALL=install --strip-program=true" "OPTS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=<<PKGBUILDDIR>>=/usr/src/xf86-input-multitouch-1.0~rc3-2ubuntu1" make[2]: Entering directory '<<PKGBUILDDIR>>' gcc -Iinclude -I/usr/include/xorg -I/usr/include/pixman-1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=<<PKGBUILDDIR>>=/usr/src/xf86-input-multitouch-1.0~rc3-2ubuntu1 -c src/capabilities.c -o obj/src/capabilities.o gcc -Iinclude -I/usr/include/xorg -I/usr/include/pixman-1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=<<PKGBUILDDIR>>=/usr/src/xf86-input-multitouch-1.0~rc3-2ubuntu1 -c src/hwstate.c -o obj/src/hwstate.o gcc -Iinclude -I/usr/include/xorg -I/usr/include/pixman-1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=<<PKGBUILDDIR>>=/usr/src/xf86-input-multitouch-1.0~rc3-2ubuntu1 -c src/mtstate.c -o obj/src/mtstate.o gcc -Iinclude -I/usr/include/xorg -I/usr/include/pixman-1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=<<PKGBUILDDIR>>=/usr/src/xf86-input-multitouch-1.0~rc3-2ubuntu1 -c src/memory.c -o obj/src/memory.o src/hwstate.c: In function ‘finish_packet’: src/hwstate.c:43:24: error: ‘const struct input_event’ has no member named ‘time’ 43 | s->evtime = syn->time.tv_usec / ms + syn->time.tv_sec * ms; | ^~ src/hwstate.c:43:49: error: ‘const struct input_event’ has no member named ‘time’ 43 | s->evtime = syn->time.tv_usec / ms + syn->time.tv_sec * ms; | ^~ make[2]: *** [Makefile:50: obj/src/hwstate.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '<<PKGBUILDDIR>>' dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" "OPTS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=<<PKGBUILDDIR>>=/usr/src/xf86-input-multitouch-1.0~rc3-2ubuntu1" returned exit code 2 make[1]: *** [debian/rules:21: override_dh_auto_build] Error 25 make[1]: Leaving directory '<<PKGBUILDDIR>>' ```
I fixed passing CPPFLAGS to the Makefile (dh_auto_build -- OPTS="$(CPPFLAGS) $(CFLAGS)"), but it is still failing:
``` D_LARGEFILE_ SOURCE -D_FILE_ OFFSET_ BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror= implicit- function- declaration -ffile- prefix- map=<<PKGBUILDD IR>>=. -fstack- protector- strong -Wformat -Werror= format- security -fno-stack- clash-protectio n -fdebug- prefix- map=<<PKGBUILDD IR>>=/usr/ src/xf86- input-multitouc h-1.0~rc3- 2ubuntu1" program= true" "OPTS=- D_LARGEFILE_ SOURCE -D_FILE_ OFFSET_ BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror= implicit- function- declaration -ffile- prefix- map=<<PKGBUILDD IR>>=. -fstack- protector- strong -Wformat -Werror= format- security -fno-stack- clash-protectio n -fdebug- prefix- map=<<PKGBUILDD IR>>=/usr/ src/xf86- input-multitouc h-1.0~rc3- 2ubuntu1" include/ pixman- 1 -D_LARGEFILE_SOURCE -D_FILE_ OFFSET_ BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror= implicit- function- declaration -ffile- prefix- map=<<PKGBUILDD IR>>=. -fstack- protector- strong -Wformat -Werror= format- security -fno-stack- clash-protectio n -fdebug- prefix- map=<<PKGBUILDD IR>>=/usr/ src/xf86- input-multitouc h-1.0~rc3- 2ubuntu1 -c src/capabilities.c -o obj/src/ capabilities. o include/ pixman- 1 -D_LARGEFILE_SOURCE -D_FILE_ OFFSET_ BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror= implicit- function- declaration -ffile- prefix- map=<<PKGBUILDD IR>>=. -fstack- protector- strong -Wformat -Werror= format- security -fno-stack- clash-protectio n -fdebug- prefix- map=<<PKGBUILDD IR>>=/usr/ src/xf86- input-multitouc h-1.0~rc3- 2ubuntu1 -c src/hwstate.c -o obj/src/hwstate.o include/ pixman- 1 -D_LARGEFILE_SOURCE -D_FILE_ OFFSET_ BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror= implicit- function- declaration -ffile- prefix- map=<<PKGBUILDD IR>>=. -fstack- protector- strong -Wformat -Werror= format- security -fno-stack- clash-protectio n -fdebug- prefix- map=<<PKGBUILDD IR>>=/usr/ src/xf86- input-multitouc h-1.0~rc3- 2ubuntu1 -c src/mtstate.c -o obj/src/mtstate.o include/ pixman- 1 -D_LARGEFILE_SOURCE -D_FILE_ OFFSET_ BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror= implicit- function- declaration -ffile- prefix- map=<<PKGBUILDD IR>>=. -fstack- protector- strong -Wformat -Werror= format- security -fno-stack- clash-protectio n -fdebug- prefix- map=<<PKGBUILDD IR>>=/usr/ src/xf86- input-multitouc h-1.0~rc3- 2ubuntu1 -c src/memory.c -o obj/src/memory.o c:43:24: error: ‘const struct input_event’ has no member named ‘time’ c:43:49: error: ‘const struct input_event’ has no member named ‘time’ program= true" "OPTS=- D_LARGEFILE_ SOURCE -D_FILE_ OFFSET_ BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror= implicit- function- declaration -ffile- prefix- map=<<PKGBUILDD IR>>=. -fstack- protector- strong -Wformat -Werror= format- security -fno-stack- clash-protectio n -fdebug- prefix- map=<<PKGBUILDD IR>>=/usr/ src/xf86- input-multitouc h-1.0~rc3- 2ubuntu1" returned exit code 2 dh_auto_ build] Error 25
make[1]: Entering directory '<<PKGBUILDDIR>>'
dh_auto_build -- OPTS="-
make -j4 "INSTALL=install --strip-
make[2]: Entering directory '<<PKGBUILDDIR>>'
gcc -Iinclude -I/usr/include/xorg -I/usr/
gcc -Iinclude -I/usr/include/xorg -I/usr/
gcc -Iinclude -I/usr/include/xorg -I/usr/
gcc -Iinclude -I/usr/include/xorg -I/usr/
src/hwstate.c: In function ‘finish_packet’:
src/hwstate.
43 | s->evtime = syn->time.tv_usec / ms + syn->time.tv_sec * ms;
| ^~
src/hwstate.
43 | s->evtime = syn->time.tv_usec / ms + syn->time.tv_sec * ms;
| ^~
make[2]: *** [Makefile:50: obj/src/hwstate.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-
make[1]: *** [debian/rules:21: override_
make[1]: Leaving directory '<<PKGBUILDDIR>>'
```