pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Building pkgtools/pkg_install fails with lang/gcc8
> Try just removing the "fixed" header.
That just changes the file reported in the warnimg message:
In file included from /var/work/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/stdlib.h:36,
from /var/work/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:60,
from common.c:37:
/usr/include/stdlib.h:98:1: error: ignoring attribute 'pure' in declaration of a built-in function 'abs' because it conflicts with attribute 'const' [-Werror=attributes]
__pure int abs(int);
^~~~~~
<built-in>: note: previous declaration here
/usr/include/stdlib.h:115:3: error: ignoring attribute 'pure' in declaration of a built-in function 'labs' because it conflicts with attribute 'const' [-Werror=attributes]
labs(long);
^~~~
<built-in>: note: previous declaration here
cc1: all warnings being treated as errors
*** Error code 1
Home |
Main Index |
Thread Index |
Old Index