> > gcc -c -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I./../include  -W 
-Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -pedantic  ./regex.c -o regex.o
> > ./regex.c:132:1: warning: function declaration isn't a prototype 
> > [-Wstrict-prototypes]
> >  char *malloc ();
> >  ^~~~
> > ./regex.c:132:7: warning: conflicting types for built-in function 'malloc'
> >  char *malloc ();

This is caused by the '-pie' option in debian/rules:
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie

The above adds the option '-specs=/usr/share/dpkg/no-pie-compile.specs' to 
CFLAGS which seems to
cause problems with gcc6.

Removing '-pie' from DEB_BUILD_MAINT_OPTIONS fixes the compilation error but 
I'm not sure if that's
the real fix. Maybe there's an issue with the content of 
/usr/share/dpkg/no-pie-compile.specs.

...Juerg

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to