[Bug 257653] security/gvm-libs: 21.4.1 build fails (incomplete type 'crypt_data', etc.)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Aug 2021 10:37:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257653

            Bug ID: 257653
           Summary: security/gvm-libs: 21.4.1 build fails (incomplete type
                    'crypt_data', etc.)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: jcfyecrayz@liamekaens.com
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

security/gvm-libs on 11-stable/amd64 is exhibiting a build failure. LDAP and
RADIUS options are off.

 .
 .
[ 57% 30/47] /usr/bin/cc -DGVM_LIBS_VERSION=\"21.4.1\"
-DREDIS_SOCKET_PATH=\"/var/run/redis/redis.sock\" -Dgvm_util_shared_EXPORTS
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -I/usr/local/include/libxml2 -O2 -pipe 
-fstack-protector-strong -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
-DLARGEFILE_SOURCE=1 -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing
-Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC -MD -MT
util/CMakeFiles/gvm_util_shared.dir/passwordbasedauthentication.c.o -MF
util/CMakeFiles/gvm_util_shared.dir/passwordbasedauthentication.c.o.d -o
util/CMakeFiles/gvm_util_shared.dir/passwordbasedauthentication.c.o -c
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c
FAILED: util/CMakeFiles/gvm_util_shared.dir/passwordbasedauthentication.c.o 
/usr/bin/cc -DGVM_LIBS_VERSION=\"21.4.1\"
-DREDIS_SOCKET_PATH=\"/var/run/redis/redis.sock\" -Dgvm_util_shared_EXPORTS
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -I/usr/local/include/libxml2 -O2 -pipe 
-fstack-protector-strong -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
-DLARGEFILE_SOURCE=1 -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing
-Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC -MD -MT
util/CMakeFiles/gvm_util_shared.dir/passwordbasedauthentication.c.o -MF
util/CMakeFiles/gvm_util_shared.dir/passwordbasedauthentication.c.o.d -o
util/CMakeFiles/gvm_util_shared.dir/passwordbasedauthentication.c.o -c
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:204:21:
error: invalid application of 'sizeof' to an incomplete type 'struct
crypt_data'
  data = calloc (1, sizeof (struct crypt_data));
                    ^      ~~~~~~~~~~~~~~~~~~~
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:185:10:
note: forward declaration of 'struct crypt_data'
  struct crypt_data *data = NULL;
         ^
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:205:10:
warning: implicit declaration of function 'crypt_r' is invalid in C99
[-Wimplicit-function-declaration]
  rslt = crypt_r (password, settings, data);
         ^
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:205:8:
warning: incompatible integer to pointer conversion assigning to 'char *' from
'int' [-Wint-conversion]
  rslt = crypt_r (password, settings, data);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:241:25:
error: invalid application of 'sizeof' to an incomplete type 'struct
crypt_data'
      data = calloc (1, sizeof (struct crypt_data));
                        ^      ~~~~~~~~~~~~~~~~~~~
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:232:10:
note: forward declaration of 'struct crypt_data'
  struct crypt_data *data = NULL;
         ^
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:255:13:
warning: implicit declaration of function 'crypt_r' is invalid in C99
[-Wimplicit-function-declaration]
      cmp = crypt_r (password ? password : "", tmp, data);
            ^
/usr/ports/security/gvm-libs/work/gvm-libs-21.4.1/util/passwordbasedauthentication.c:255:11:
warning: incompatible integer to pointer conversion assigning to 'char *' from
'int' [-Wint-conversion]
      cmp = crypt_r (password ? password : "", tmp, data);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings and 2 errors generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.