Running poudriere on 14.0-RELEASE (both build jail and host). netatalk fails to build nagging about "incompatible function pointer types initializing 'int (*)(int, const struct pam_message **, struct pam_response **, void *)' with an expression of type 'int (*)(int, struct pam_message **, struct pam_response **, void *)'". It seems that clang is more picky about const struct vs struct: libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_passwd.lo -MD -MP -MF .deps/uams_passwd.Tpo -c uams_passwd.c -o uams_passwd.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -module -avoid-version -lcrypt -fstack-protector-strong -o uams_passwd.la -rpath /usr/local/libexec/netatalk-uams uams_passwd.lo libtool: link: cc -shared -fPIC -DPIC .libs/uams_passwd.o -L/usr/local/lib -lcrypt -O2 -fstack-protector-strong -fstack-protector-strong -Wl,-soname -Wl,uams_passwd.so -o .libs/uams_passwd.so libtool: link: ar cr .libs/uams_passwd.a uams_passwd.o libtool: link: ranlib .libs/uams_passwd.a libtool: link: ( cd ".libs" && rm -f "uams_passwd.la" && ln -s "../uams_passwd.la" "uams_passwd.la" ) /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_pam_la-uams_pam.lo -MD -MP -MF .deps/uams_pam_la-uams_pam.Tpo -c -o uams_pam_la-uams_pam.lo `test -f 'uams_pam.c' || echo './'`uams_pam.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_pam_la-uams_pam.lo -MD -MP -MF .deps/uams_pam_la-uams_pam.Tpo -c uams_pam.c -fPIC -DPIC -o .libs/uams_pam_la-uams_pam.o cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] uams_pam.c:127:3: error: incompatible function pointer types initializing 'int (*)(int, const struct pam_message **, struct pam_response **, void *)' with an expression of type 'int (*)(int, struct pam_message **, struct pam_response **, void *)' [-Wincompatible-function-pointer-types] &PAM_conv, ^~~~~~~~~ 1 error generated. gmake[4]: *** [Makefile:795: uams_pam_la-uams_pam.lo] Error 1 gmake[4]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc/uams' gmake[3]: *** [Makefile:476: all-recursive] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc' gmake[2]: *** [Makefile:533: all-recursive] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18' gmake[1]: *** [Makefile:465: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18' *** Error code 1 Stop. make: stopped in /usr/ports/net/netatalk3 =>> Cleaning up wrkdir ===> Cleaning for netatalk3-3.1.18,1 build of net/netatalk3 | netatalk3-3.1.18,1 ended at Wed Nov 22 15:32:31 CET 2023 build time: 00:01:04 !!! build failure encountered !!!
Can you give this patch a try?
Created attachment 246492 [details] Fix build on 14.x
Thanks, it fixed that problem, but only to reveal the next: cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] /bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/local/include/db5 -D_PATH_CNID_DBD=\"/usr/local/sbin/cnid_dbd\" -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong -o cnid_dbd dbif.o pack.o comm.o db_param.o main.o dbd_add.o dbd_get.o dbd_resolve.o dbd_lookup.o dbd_update.o dbd_delete.o dbd_getstamp.o dbd_rebuild_add.o dbd_dbcheck.o dbd_search.o ../../libatalk/libatalk.la -L/usr/local/lib -ldb-5.3 libtool: link: cc -I/usr/local/include/db5 -D_PATH_CNID_DBD=\"/usr/local/sbin/cnid_dbd\" "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong -o .libs/cnid_dbd dbif.o pack.o comm.o db_param.o main.o dbd_add.o dbd_get.o dbd_resolve.o dbd_lookup.o dbd_update.o dbd_delete.o dbd_getstamp.o dbd_rebuild_add.o dbd_dbcheck.o dbd_search.o -L/usr/local/lib ../../libatalk/.libs/libatalk.so -ldb-5.3 -pthread -Wl,-rpath -Wl,/usr/local/lib depbase=`echo cnid_metad.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/local/include/db5 -D_PATH_CNID_DBD=\"/usr/local/sbin/cnid_dbd\" -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT cnid_metad.o -MD -MP -MF $depbase.Tpo -c -o cnid_metad.o cnid_metad.c &&\ mv -f $depbase.Tpo $depbase.Po cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] depbase=`echo usockfd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/local/include/db5 -D_PATH_CNID_DBD=\"/usr/local/sbin/cnid_dbd\" -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT usockfd.o -MD -MP -MF $depbase.Tpo -c -o usockfd.o usockfd.c &&\ mv -f $depbase.Tpo $depbase.Po cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] /bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/local/include/db5 -D_PATH_CNID_DBD=\"/usr/local/sbin/cnid_dbd\" -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong -o cnid_metad cnid_metad.o usockfd.o db_param.o ../../libatalk/libatalk.la libtool: link: cc -I/usr/local/include/db5 -D_PATH_CNID_DBD=\"/usr/local/sbin/cnid_dbd\" "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong -o .libs/cnid_metad cnid_metad.o usockfd.o db_param.o -L/usr/local/lib ../../libatalk/.libs/libatalk.so -pthread -Wl,-rpath -Wl,/usr/local/lib gmake[4]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc/cnid_dbd' Making all in netatalk gmake[4]: Entering directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc/netatalk' cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -D_REENTRANT -D_THREAD_SAFE -pthread -I/usr/local/include -D_PATH_CONFDIR=\"/usr/local/etc/\" -D_PATH_STATEDIR='"/var/netatalk/"' -D_PATH_AFPD=\"/usr/local/sbin/afpd\" -D_PATH_CNID_METAD=\"/usr/local/sbin/cnid_metad\" -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT netatalk-netatalk.o -MD -MP -MF .deps/netatalk-netatalk.Tpo -c -o netatalk-netatalk.o `test -f 'netatalk.c' || echo './'`netatalk.c cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] mv -f .deps/netatalk-netatalk.Tpo .deps/netatalk-netatalk.Po cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -D_REENTRANT -D_THREAD_SAFE -pthread -I/usr/local/include -D_PATH_CONFDIR=\"/usr/local/etc/\" -D_PATH_STATEDIR='"/var/netatalk/"' -D_PATH_AFPD=\"/usr/local/sbin/afpd\" -D_PATH_CNID_METAD=\"/usr/local/sbin/cnid_metad\" -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT netatalk-afp_avahi.o -MD -MP -MF .deps/netatalk-afp_avahi.Tpo -c -o netatalk-afp_avahi.o `test -f 'afp_avahi.c' || echo './'`afp_avahi.c cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] mv -f .deps/netatalk-afp_avahi.Tpo .deps/netatalk-afp_avahi.Po cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -D_REENTRANT -D_THREAD_SAFE -pthread -I/usr/local/include -D_PATH_CONFDIR=\"/usr/local/etc/\" -D_PATH_STATEDIR='"/var/netatalk/"' -D_PATH_AFPD=\"/usr/local/sbin/afpd\" -D_PATH_CNID_METAD=\"/usr/local/sbin/cnid_metad\" -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT netatalk-afp_mdns.o -MD -MP -MF .deps/netatalk-afp_mdns.Tpo -c -o netatalk-afp_mdns.o `test -f 'afp_mdns.c' || echo './'`afp_mdns.c cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] mv -f .deps/netatalk-afp_mdns.Tpo .deps/netatalk-afp_mdns.Po cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -D_REENTRANT -D_THREAD_SAFE -pthread -I/usr/local/include -D_PATH_CONFDIR=\"/usr/local/etc/\" -D_PATH_STATEDIR='"/var/netatalk/"' -D_PATH_AFPD=\"/usr/local/sbin/afpd\" -D_PATH_CNID_METAD=\"/usr/local/sbin/cnid_metad\" -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT netatalk-afp_zeroconf.o -MD -MP -MF .deps/netatalk-afp_zeroconf.Tpo -c -o netatalk-afp_zeroconf.o `test -f 'afp_zeroconf.c' || echo './'`afp_zeroconf.c cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] mv -f .deps/netatalk-afp_zeroconf.Tpo .deps/netatalk-afp_zeroconf.Po /bin/sh ../../libtool --tag=CC --mode=link cc -D_REENTRANT -D_THREAD_SAFE -pthread -I/usr/local/include -D_PATH_CONFDIR=\"/usr/local/etc/\" -D_PATH_STATEDIR='"/var/netatalk/"' -D_PATH_AFPD=\"/usr/local/sbin/afpd\" -D_PATH_CNID_METAD=\"/usr/local/sbin/cnid_metad\" -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -levent -fstack-protector-strong -o netatalk netatalk-netatalk.o netatalk-afp_avahi.o netatalk-afp_mdns.o netatalk-afp_zeroconf.o -L/usr/local/lib -levent -L/usr/local/lib -lavahi-common -lavahi-client ../../libatalk/libatalk.la libtool: link: cc -D_REENTRANT -D_THREAD_SAFE -pthread -I/usr/local/include -D_PATH_CONFDIR=\"/usr/local/etc/\" -D_PATH_STATEDIR=\"/var/netatalk/\" -D_PATH_AFPD=\"/usr/local/sbin/afpd\" -D_PATH_CNID_METAD=\"/usr/local/sbin/cnid_metad\" -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong -o .libs/netatalk netatalk-netatalk.o netatalk-afp_avahi.o netatalk-afp_mdns.o netatalk-afp_zeroconf.o -L/usr/local/lib -levent -lavahi-common -lavahi-client ../../libatalk/.libs/libatalk.so -pthread -Wl,-rpath -Wl,/usr/local/lib gmake[4]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc/netatalk' Making all in uams gmake[4]: Entering directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc/uams' depbase=`echo uams_guest.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_guest.lo -MD -MP -MF $depbase.Tpo -c -o uams_guest.lo uams_guest.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_guest.lo -MD -MP -MF .deps/uams_guest.Tpo -c uams_guest.c -fPIC -DPIC -o .libs/uams_guest.o cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_guest.lo -MD -MP -MF .deps/uams_guest.Tpo -c uams_guest.c -o uams_guest.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -module -avoid-version -fstack-protector-strong -o uams_guest.la -rpath /usr/local/libexec/netatalk-uams uams_guest.lo libtool: link: cc -shared -fPIC -DPIC .libs/uams_guest.o -L/usr/local/lib -O2 -fstack-protector-strong -fstack-protector-strong -Wl,-soname -Wl,uams_guest.so -o .libs/uams_guest.so libtool: link: ar cr .libs/uams_guest.a uams_guest.o libtool: link: ranlib .libs/uams_guest.a libtool: link: ( cd ".libs" && rm -f "uams_guest.la" && ln -s "../uams_guest.la" "uams_guest.la" ) depbase=`echo uams_passwd.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_passwd.lo -MD -MP -MF $depbase.Tpo -c -o uams_passwd.lo uams_passwd.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_passwd.lo -MD -MP -MF .deps/uams_passwd.Tpo -c uams_passwd.c -fPIC -DPIC -o .libs/uams_passwd.o cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_passwd.lo -MD -MP -MF .deps/uams_passwd.Tpo -c uams_passwd.c -o uams_passwd.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -module -avoid-version -lcrypt -fstack-protector-strong -o uams_passwd.la -rpath /usr/local/libexec/netatalk-uams uams_passwd.lo libtool: link: cc -shared -fPIC -DPIC .libs/uams_passwd.o -L/usr/local/lib -lcrypt -O2 -fstack-protector-strong -fstack-protector-strong -Wl,-soname -Wl,uams_passwd.so -o .libs/uams_passwd.so libtool: link: ar cr .libs/uams_passwd.a uams_passwd.o libtool: link: ranlib .libs/uams_passwd.a libtool: link: ( cd ".libs" && rm -f "uams_passwd.la" && ln -s "../uams_passwd.la" "uams_passwd.la" ) /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_pam_la-uams_pam.lo -MD -MP -MF .deps/uams_pam_la-uams_pam.Tpo -c -o uams_pam_la-uams_pam.lo `test -f 'uams_pam.c' || echo './'`uams_pam.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_pam_la-uams_pam.lo -MD -MP -MF .deps/uams_pam_la-uams_pam.Tpo -c uams_pam.c -fPIC -DPIC -o .libs/uams_pam_la-uams_pam.o cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_pam_la-uams_pam.lo -MD -MP -MF .deps/uams_pam_la-uams_pam.Tpo -c uams_pam.c -o uams_pam_la-uams_pam.o >/dev/null 2>&1 mv -f .deps/uams_pam_la-uams_pam.Tpo .deps/uams_pam_la-uams_pam.Plo /bin/sh ../../libtool --tag=CC --mode=link cc -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -module -avoid-version -lpam -fstack-protector-strong -o uams_pam.la -rpath /usr/local/libexec/netatalk-uams uams_pam_la-uams_pam.lo libtool: link: cc -shared -fPIC -DPIC .libs/uams_pam_la-uams_pam.o -L/usr/local/lib -lpam -O2 -fstack-protector-strong -fstack-protector-strong -Wl,-soname -Wl,uams_pam.so -o .libs/uams_pam.so libtool: link: ar cr .libs/uams_pam.a uams_pam_la-uams_pam.o libtool: link: ranlib .libs/uams_pam.a libtool: link: ( cd ".libs" && rm -f "uams_pam.la" && ln -s "../uams_pam.la" "uams_pam.la" ) depbase=`echo uams_randnum.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_randnum.lo -MD -MP -MF $depbase.Tpo -c -o uams_randnum.lo uams_randnum.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_randnum.lo -MD -MP -MF .deps/uams_randnum.Tpo -c uams_randnum.c -fPIC -DPIC -o .libs/uams_randnum.o cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] uams_randnum.c:184:7: warning: 'DES_key_sched' is deprecated [-Wdeprecated-declarations] DES_key_sched((DES_cblock *) key, &schedule); ^ /usr/include/openssl/des.h:187:1: note: 'DES_key_sched' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:190:2: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt((DES_cblock *) passwd, (DES_cblock *) passwd, &schedule, ^ /usr/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:194:2: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt((DES_cblock *) p, (DES_cblock *) p, &schedule, DES_DECRYPT); ^ /usr/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:343:3: warning: 'DES_key_sched' is deprecated [-Wdeprecated-declarations] DES_key_sched((DES_cblock *) seskey, &seskeysched); ^ /usr/include/openssl/des.h:187:1: note: 'DES_key_sched' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:345:3: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt((DES_cblock *) randbuf, (DES_cblock *) randbuf, ^ /usr/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:387:3: warning: 'DES_key_sched' is deprecated [-Wdeprecated-declarations] DES_key_sched((DES_cblock *) seskey, &seskeysched); ^ /usr/include/openssl/des.h:187:1: note: 'DES_key_sched' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:389:3: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt( (DES_cblock *) randbuf, (DES_cblock *) randbuf, ^ /usr/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:402:3: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt( (DES_cblock *) ibuf, (DES_cblock *) rbuf, ^ /usr/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:438:5: warning: 'DES_key_sched' is deprecated [-Wdeprecated-declarations] DES_key_sched((DES_cblock *) seskey, &seskeysched); ^ /usr/include/openssl/des.h:187:1: note: 'DES_key_sched' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:441:5: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt( (DES_cblock *) ibuf, (DES_cblock *) ibuf, &seskeysched, DES_DECRYPT); ^ /usr/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:444:5: warning: 'DES_key_sched' is deprecated [-Wdeprecated-declarations] DES_key_sched((DES_cblock *) ibuf, &seskeysched); ^ /usr/include/openssl/des.h:187:1: note: 'DES_key_sched' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_randnum.c:446:5: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt((DES_cblock *) ibuf, (DES_cblock *) ibuf, &seskeysched, DES_DECRYPT); ^ /usr/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ 12 warnings generated. libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_randnum.lo -MD -MP -MF .deps/uams_randnum.Tpo -c uams_randnum.c -o uams_randnum.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -module -avoid-version -lcrypto -fstack-protector-strong -o uams_randnum.la -rpath /usr/local/libexec/netatalk-uams uams_randnum.lo libtool: link: cc -shared -fPIC -DPIC .libs/uams_randnum.o -L/usr/local/lib -lcrypto -O2 -fstack-protector-strong -fstack-protector-strong -Wl,-soname -Wl,uams_randnum.so -o .libs/uams_randnum.so libtool: link: ar cr .libs/uams_randnum.a uams_randnum.o libtool: link: ranlib .libs/uams_randnum.a libtool: link: ( cd ".libs" && rm -f "uams_randnum.la" && ln -s "../uams_randnum.la" "uams_randnum.la" ) depbase=`echo uams_dhx_passwd.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_dhx_passwd.lo -MD -MP -MF $depbase.Tpo -c -o uams_dhx_passwd.lo uams_dhx_passwd.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_dhx_passwd.lo -MD -MP -MF .deps/uams_dhx_passwd.Tpo -c uams_dhx_passwd.c -fPIC -DPIC -o .libs/uams_dhx_passwd.o cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] uams_dhx_passwd.c:137:16: warning: 'DH_new' is deprecated [-Wdeprecated-declarations] if (!(dh = DH_new())) { ^ /usr/include/openssl/dh.h:203:1: note: 'DH_new' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:144:10: warning: 'DH_set0_pqg' is deprecated [-Wdeprecated-declarations] if (!DH_set0_pqg(dh, pbn, NULL, gbn)) { ^ /usr/include/openssl/dh.h:259:1: note: 'DH_set0_pqg' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:151:10: warning: 'DH_generate_key' is deprecated [-Wdeprecated-declarations] if (!DH_generate_key(dh)) { ^ /usr/include/openssl/dh.h:227:1: note: 'DH_generate_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:154:5: warning: 'DH_get0_key' is deprecated [-Wdeprecated-declarations] DH_get0_key(dh, &pub_key, NULL); ^ /usr/include/openssl/dh.h:260:1: note: 'DH_get0_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:160:9: warning: 'DH_compute_key' is deprecated [-Wdeprecated-declarations] i = DH_compute_key((unsigned char *)rbuf, bn, dh); ^ /usr/include/openssl/dh.h:228:1: note: 'DH_compute_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key, ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:163:5: warning: 'CAST_set_key' is deprecated [-Wdeprecated-declarations] CAST_set_key(&castkey, i, (unsigned char *)rbuf); ^ /usr/include/openssl/cast.h:43:1: note: 'CAST_set_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:198:5: warning: 'CAST_cbc_encrypt' is deprecated [-Wdeprecated-declarations] CAST_cbc_encrypt((unsigned char *)rbuf, (unsigned char *)rbuf, CRYPTBUFLEN, &castkey, iv, CAST_ENCRYPT); ^ /usr/include/openssl/cast.h:52:1: note: 'CAST_cbc_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:201:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(dh); ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:206:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(dh); ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_passwd.c:301:5: warning: 'CAST_cbc_encrypt' is deprecated [-Wdeprecated-declarations] CAST_cbc_encrypt((unsigned char *)ibuf, (unsigned char *)rbuf, CRYPT2BUFLEN, &castkey, ^ /usr/include/openssl/cast.h:52:1: note: 'CAST_cbc_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ 10 warnings generated. libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -I/usr/local/include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_dhx_passwd.lo -MD -MP -MF .deps/uams_dhx_passwd.Tpo -c uams_dhx_passwd.c -o uams_dhx_passwd.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/include/openssl -I/usr/local/include -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -module -avoid-version -lcrypt -lcrypto -fstack-protector-strong -o uams_dhx_passwd.la -rpath /usr/local/libexec/netatalk-uams uams_dhx_passwd.lo libtool: link: cc -shared -fPIC -DPIC .libs/uams_dhx_passwd.o -L/usr/local/lib -lcrypt -lcrypto -O2 -fstack-protector-strong -fstack-protector-strong -Wl,-soname -Wl,uams_dhx_passwd.so -o .libs/uams_dhx_passwd.so libtool: link: ar cr .libs/uams_dhx_passwd.a uams_dhx_passwd.o libtool: link: ranlib .libs/uams_dhx_passwd.a libtool: link: ( cd ".libs" && rm -f "uams_dhx_passwd.la" && ln -s "../uams_dhx_passwd.la" "uams_dhx_passwd.la" ) /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl -D_U_="__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_dhx_pam_la-uams_dhx_pam.lo -MD -MP -MF .deps/uams_dhx_pam_la-uams_dhx_pam.Tpo -c -o uams_dhx_pam_la-uams_dhx_pam.lo `test -f 'uams_dhx_pam.c' || echo './'`uams_dhx_pam.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../.. -DLIBICONV_PLUG -I/usr/include/openssl "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -L/usr/local/lib -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT uams_dhx_pam_la-uams_dhx_pam.lo -MD -MP -MF .deps/uams_dhx_pam_la-uams_dhx_pam.Tpo -c uams_dhx_pam.c -fPIC -DPIC -o .libs/uams_dhx_pam_la-uams_dhx_pam.o cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] uams_dhx_pam.c:186:3: error: incompatible function pointer types initializing 'int (*)(int, const struct pam_message **, struct pam_response **, void *)' with an expression of type 'int (*)(int, struct pam_message **, struct pam_response **, void *)' [-Wincompatible-function-pointer-types] &PAM_conv, ^~~~~~~~~ uams_dhx_pam.c:230:16: warning: 'DH_new' is deprecated [-Wdeprecated-declarations] if (!(dh = DH_new())) { ^ /usr/include/openssl/dh.h:203:1: note: 'DH_new' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:241:10: warning: 'DH_set0_pqg' is deprecated [-Wdeprecated-declarations] if (!DH_set0_pqg(dh, pbn, NULL, gbn)) { ^ /usr/include/openssl/dh.h:259:1: note: 'DH_set0_pqg' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:251:9: warning: 'DH_generate_key' is deprecated [-Wdeprecated-declarations] if (DH_generate_key(dh) == 0) { ^ /usr/include/openssl/dh.h:227:1: note: 'DH_generate_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:264:2: warning: 'DH_get0_key' is deprecated [-Wdeprecated-declarations] DH_get0_key(dh, &pub_key, NULL); ^ /usr/include/openssl/dh.h:260:1: note: 'DH_get0_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:271:9: warning: 'DH_compute_key' is deprecated [-Wdeprecated-declarations] i = DH_compute_key((unsigned char *)rbuf, bn, dh); ^ /usr/include/openssl/dh.h:228:1: note: 'DH_compute_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key, ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:274:5: warning: 'CAST_set_key' is deprecated [-Wdeprecated-declarations] CAST_set_key(&castkey, i, (unsigned char *)rbuf); ^ /usr/include/openssl/cast.h:43:1: note: 'CAST_set_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:317:5: warning: 'CAST_cbc_encrypt' is deprecated [-Wdeprecated-declarations] CAST_cbc_encrypt((unsigned char *)rbuf, (unsigned char *)rbuf, CRYPTBUFLEN, &castkey, msg2_iv, ^ /usr/include/openssl/cast.h:52:1: note: 'CAST_cbc_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:321:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(dh); ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:326:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(dh); ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:452:5: warning: 'CAST_cbc_encrypt' is deprecated [-Wdeprecated-declarations] CAST_cbc_encrypt((unsigned char *)ibuf, (unsigned char *)rbuf, CRYPT2BUFLEN, &castkey, ^ /usr/include/openssl/cast.h:52:1: note: 'CAST_cbc_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ uams_dhx_pam.c:629:5: warning: 'CAST_cbc_encrypt' is deprecated [-Wdeprecated-declarations] CAST_cbc_encrypt((unsigned char *)ibuf, (unsigned char *)ibuf, CHANGEPWBUFLEN, &castkey, ^ /usr/include/openssl/cast.h:52:1: note: 'CAST_cbc_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ 11 warnings and 1 error generated. gmake[4]: *** [Makefile:781: uams_dhx_pam_la-uams_dhx_pam.lo] Error 1 gmake[4]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc/uams' gmake[3]: *** [Makefile:476: all-recursive] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18/etc' gmake[2]: *** [Makefile:533: all-recursive] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18' gmake[1]: *** [Makefile:465: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/netatalk3/work/netatalk-3.1.18' *** Error code 1 Stop. make: stopped in /usr/ports/net/netatalk3 =>> Cleaning up wrkdir ===> Cleaning for netatalk3-3.1.18,1 build of net/netatalk3 | netatalk3-3.1.18,1 ended at Wed Nov 22 16:14:27 CET 2023 build time: 00:01:05 !!! build failure encountered !!!
(In reply to Palle Girgensohn from comment #3) sorry, too much information in one comment... Here's the new culprit, same pattern really: uams_dhx_pam.c:186:3: error: incompatible function pointer types initializing 'int (*)(int, const struct pam_message **, struct pam_response **, void *)' with an expression of type 'int (*)(int, struct pam_message **, struct pam_response **, void *)' [-Wincompatible-function-pointer-types] &PAM_conv,
Grrr. I think this should do it.
Created attachment 246493 [details] Fix all PAM builds
sorry... didn't help, weirdly: uams_dhx_pam.c:186:3: error: incompatible function pointer types initializing 'int (*)(int, const struct pam_message **, struct pam_response **, void *)' with an expression of type 'int (*)(int, struct pam_message **, struct pam_response **, void *)' [-Wincompatible-function-pointer-types] &PAM_conv, ^~~~~~~~~
I combined the patches into one file, which was not a good idea. Stick these three files in netatalk3/files, and that should do it.
Created attachment 246495 [details] Patch 1
Created attachment 246496 [details] Patch 2
Created attachment 246497 [details] Patch 3
the original single patch file did the same job. The problem is that sys/param.h is note included in the uams_dhx_pam.c file. The (soon) uploaded patch makes netatalk build. It does complain about Error: /usr/local/libexec/netatalk-uams/uams_dhx2_pam.so is linked to /usr/local/lib/libgpg-error.so.0 from security/libgpg-error but it is not declared as a dependency Error: /usr/local/lib/libatalk.so.0.0.0 is linked to /usr/local/lib/libiconv.so.2 from converters/libiconv but it is not declared as a dependency so I think those need to be added as LIB_DEPENDS?
Created attachment 246499 [details] patch-etc_uams__uams_xxx_pam.c
Thanks. I'll get this committed.
(In reply to Palle Girgensohn from comment #12) In terms of dependencies, iconv is there as part of USES and gpg-error is there as part of a KERBEROS_LIB_DEPENDS. Not sure how poudriere is validating these, but "make package-depends-list" does show the right thing.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f1b8980a5ab4c0b987d38acca809030e9a88adc commit 4f1b8980a5ab4c0b987d38acca809030e9a88adc Author: Joe Marcus Clarke <marcus@FreeBSD.org> AuthorDate: 2023-11-22 16:10:44 +0000 Commit: Joe Marcus Clarke <marcus@FreeBSD.org> CommitDate: 2023-11-22 16:10:44 +0000 net/netatalk3: Fix build on 14.X PR: 275261 With a little help from: girgen .../files/patch-etc_uams_uams__dhx2__pam.c (new) | 11 +++++++++++ .../files/patch-etc_uams_uams__dhx__pam.c (new) | 19 +++++++++++++++++++ net/netatalk3/files/patch-etc_uams_uams__pam.c (new) | 11 +++++++++++ 3 files changed, 41 insertions(+)
Patches committed. Thanks for the assist!