Bug 240171 - security/gnutls build error with poudriere
Summary: security/gnutls build error with poudriere
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-28 13:51 UTC by Cassiano Peixoto
Modified: 2019-08-29 10:22 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (tijl)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cassiano Peixoto 2019-08-28 13:51:39 UTC
Hi there,

I'm running FreeBSD 11.3-RELEASE with poudriere 3.3.2_1 to build security/gnutls. It always compiled with no issues. But after the update it's not building anymore. I need to make it clear that the issue is building only with poudriere. Can someone help?

Here are poudriere logs:

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../.. -I./../../../gl -I./../../../gl -I./../../includes -I./../../includes -I./../../ -I./../ -DLIBICONV_PLUG -isystem /usr/local/include -I/usr/local/include -Wtype-limits -fno-common -W -Wabi -Waddress -Wall -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wcomment -Wcomments -Wcpp -Wdate-time -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wenum-compare -Wextra -Wformat-extra-args -Wformat-security -Wformat-zero-length -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Wint-conversion -Wint-to-pointer-cast -Winvalid-pch -Wlogical-not-parentheses -Wmain -Wmemset-transposed-args -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wnull-dereference -Wodr -Wold-style-definition -Woverflow -Woverride-init -Wpacked -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-type -Wsequence-point -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wswitch -Wswitch-bool -Wtautological-compare -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wno-missing-field-initializers -Wno-unused-parameter -fdiagnostics-show-option -I/usr/local/include -I/usr/local/include -I/usr/local/include/p11-kit-1 -DASM_X86_64 -DASM_X86 -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -MT aes-padlock.lo -MD -MP -MF .deps/aes-padlock.Tpo -c aes-padlock.c  -fPIC -DPIC -o .libs/aes-padlock.o
aes-padlock.c:92:4: warning: 'nettle_aes_set_encrypt_key' is deprecated [-Wdeprecated-declarations]
                        aes_set_encrypt_key(&nc, keysize, userkey);
                        ^
/usr/local/include/nettle/aes.h:44:29: note: expanded from macro 'aes_set_encrypt_key'
#define aes_set_encrypt_key nettle_aes_set_encrypt_key
                            ^
/usr/local/include/nettle/aes.h:160:3: note: 'nettle_aes_set_encrypt_key' has been explicitly marked deprecated here
  _NETTLE_ATTRIBUTE_DEPRECATED;
  ^
/usr/local/include/nettle/nettle-types.h:46:53: note: expanded from macro '_NETTLE_ATTRIBUTE_DEPRECATED'
#define _NETTLE_ATTRIBUTE_DEPRECATED __attribute__((deprecated))
                                                    ^
aes-padlock.c:94:4: warning: 'nettle_aes_set_decrypt_key' is deprecated [-Wdeprecated-declarations]
                        aes_set_decrypt_key(&nc, keysize, userkey);
                        ^
/usr/local/include/nettle/aes.h:45:29: note: expanded from macro 'aes_set_decrypt_key'
#define aes_set_decrypt_key nettle_aes_set_decrypt_key
                            ^
/usr/local/include/nettle/aes.h:165:3: note: 'nettle_aes_set_decrypt_key' has been explicitly marked deprecated here
  _NETTLE_ATTRIBUTE_DEPRECATED;
  ^
/usr/local/include/nettle/nettle-types.h:46:53: note: expanded from macro '_NETTLE_ATTRIBUTE_DEPRECATED'
#define _NETTLE_ATTRIBUTE_DEPRECATED __attribute__((deprecated))
                                                    ^
aes-padlock.c:96:29: error: no member named 'keys' in 'struct aes_ctx'
                memcpy(pce->ks.rd_key, nc.keys, sizeof(nc.keys));
                                       ~~ ^
aes-padlock.c:96:45: error: no member named 'keys' in 'struct aes_ctx'
                memcpy(pce->ks.rd_key, nc.keys, sizeof(nc.keys));
                                                       ~~ ^
aes-padlock.c:97:23: error: no member named 'rounds' in 'struct aes_ctx'
                pce->ks.rounds = nc.rounds;
                                 ~~ ^
2 warnings and 3 errors generated.
gmake[6]: *** [Makefile:1661: aes-padlock.lo] Error 1
gmake[6]: Leaving directory '/wrkdirs/usr/ports/security/gnutls/work/gnutls-3.5.19/lib/accelerated/x86'
gmake[5]: *** [Makefile:1492: all-recursive] Error 1
gmake[5]: Leaving directory '/wrkdirs/usr/ports/security/gnutls/work/gnutls-3.5.19/lib/accelerated'
gmake[4]: *** [Makefile:1953: all-recursive] Error 1
gmake[4]: Leaving directory '/wrkdirs/usr/ports/security/gnutls/work/gnutls-3.5.19/lib'
gmake[3]: *** [Makefile:1640: all] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/security/gnutls/work/gnutls-3.5.19/lib'
gmake[2]: *** [Makefile:1473: all-recursive] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/security/gnutls/work/gnutls-3.5.19'
gmake[1]: *** [Makefile:1400: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/security/gnutls/work/gnutls-3.5.19'
*** Error code 1

Stop.
make: stopped in /usr/ports/security/gnutls
=>> Cleaning up wrkdir
===>  Cleaning for gnutls-3.5.19

Thanks
Comment 1 Tijl Coosemans freebsd_committer freebsd_triage 2019-08-28 15:06:07 UTC
The current version in ports is gnutls 3.6.9 so please make sure your ports tree checkout is up to date.
Comment 2 Cassiano Peixoto 2019-08-28 18:45:20 UTC
Hi Tijl Coosemans,

I have updated to 3.6.9 and worked. You can close this ticket. Thanks.