debdrup@nerd-thinkpad:/usr/ports/security/pam_per_user % sudo make build ===> pam_per_user-0.4_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by pam_per_user-0.4_1 for building ===> Extracting for pam_per_user-0.4_1 => SHA256 Checksum OK for pam_per_user-0.4.tar.gz. ===> Patching for pam_per_user-0.4_1 ===> Applying FreeBSD patches for pam_per_user-0.4_1 ===> Configuring for pam_per_user-0.4_1 configure: loading site script /usr/ports/Templates/config.site checking for epkg... no checking for mkencap... no checking for gcc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... cpp checking for egrep... grep -E checking for AIX... no checking for an ANSI C-conforming const... yes checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for unistd.h... (cached) yes checking for security/pam_appl.h... (cached) yes checking for security/pam_modules.h... yes checking for working snprintf... yes checking for strlcpy... (cached) yes checking for dlopen in -ldl... yes checking for pam_start in -lpam... yes checking how to build shared libraries... CFLAGS=-fpic LDFLAGS=-shared configure: creating ./config.status config.status: creating Makefile config.status: creating config.h ===> Building for pam_per_user-0.4_1 --- pam_per_user.o --- --- authtest.o --- --- pam_per_user.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fpic -I. -I. -I./compat -c -o pam_per_user.o pam_per_user.c --- authtest.o --- cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fpic -I. -I. -I./compat -c -o authtest.o authtest.c --- pam_per_user.o --- pam_per_user.c:379:36: warning: passing 'void **' to parameter of type 'const void **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] if (pam_get_item(from_pamh, type, &item) != PAM_SUCCESS) ^~~~~ /usr/include/security/pam_appl.h:86:15: note: passing argument to parameter '_item' here const void **_item) ^ pam_per_user.c:494:6: warning: passing 'void **' to parameter of type 'const void **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] (void **)&old_service) != PAM_SUCCESS) ^~~~~~~~~~~~~~~~~~~~~ /usr/include/security/pam_appl.h:86:15: note: passing argument to parameter '_item' here const void **_item) ^ pam_per_user.c:515:35: warning: passing 'void **' to parameter of type 'const void **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] if (pam_get_item(pamh, PAM_CONV, (void **)&conv) != PAM_SUCCESS) ^~~~~~~~~~~~~~ /usr/include/security/pam_appl.h:86:15: note: passing argument to parameter '_item' here const void **_item) ^ pam_per_user.c:558:25: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] if (pam_get_user(pamh, &user, "login: ") != PAM_SUCCESS) ^~~~~ /usr/include/security/pam_appl.h:91:15: note: passing argument to parameter '_user' here const char **_user, ^ pam_per_user.c:581:6: warning: passing 'void **' to parameter of type 'const void **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] (void **)&sub_user) != PAM_SUCCESS) ^~~~~~~~~~~~~~~~~~ /usr/include/security/pam_appl.h:86:15: note: passing argument to parameter '_item' here const void **_item) ^ --- per_user_authtest --- cc -fstack-protector-strong -o per_user_authtest authtest.o -lpam -ldl --- pam_per_user.o --- 5 warnings generated. --- pam_per_user.so.1 --- cc -fpic -shared -fstack-protector-strong -o pam_per_user.so.1 pam_per_user.o -lpam -ldl