=>> Building net/ss5 build started at Sat Apr 6 00:22:31 BST 2024 port directory: /usr/ports/net/ss5 package name: ss5-3.8.9.8_4 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: raffaele.delorenzo@libero.it Makefile datestamp: -rw-r--r-- 1 root wheel 1424 Jan 25 05:29 /usr/ports/net/ss5/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: c509e26eb3 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 06 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/06/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for ss5-3.8.9.8_4: DOCS=on: Build and/or install documentation EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- raffaele.delorenzo@libero.it --End MAINTAINER-- --CONFIGURE_ARGS-- --with-binpathbase=/usr/local/sbin --with-docpathbase=/usr/local/share/doc --with-confpathbase=/usr/local/etc --with-libpath=/usr/local/lib --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/ss5/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/ss5/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/ss5/work/.cache HOME=/wrkdirs/usr/ports/net/ss5/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/ss5/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/ss5/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288 --End CONFIGURE_ENV-- --MAKE_ENV-- DATADIR=/usr/local/share/ss5 EXAMPLESDIR=/usr/local/share/examples/ss5 OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/wrkdirs/usr/ports/net/ss5/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/ss5/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/ss5/work/.cache HOME=/wrkdirs/usr/ports/net/ss5/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/ss5/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/ss5/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -Wl,-rpath,/usr/local/lib -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" PORTEXAMPLES="" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/ss5" EXAMPLESDIR="share/examples/ss5" DATADIR="share/ss5" WWWDIR="www/ss5" ETCDIR="etc/ss5" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/ss5 DOCSDIR=/usr/local/share/doc/ss5 EXAMPLESDIR=/usr/local/share/examples/ss5 WWWDIR=/usr/local/www/ss5 ETCDIR=/usr/local/etc/ss5 --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ss5-3.8.9.8_4 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> ss5-3.8.9.8_4 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of ss5-3.8.9.8_4 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by ss5-3.8.9.8_4 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by ss5-3.8.9.8_4 for building => SHA256 Checksum OK for ss5-3.8.9-8.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by ss5-3.8.9.8_4 for building ===> Extracting for ss5-3.8.9.8_4 => SHA256 Checksum OK for ss5-3.8.9-8.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for ss5-3.8.9.8_4 ===> Applying FreeBSD patches for ss5-3.8.9.8_4 from /usr/ports/net/ss5/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ss5-3.8.9.8_4 depends on file: /usr/local/lib/libcrypto.so.12 - not found ===> Installing existing package /packages/All/openssl-3.0.13_1,1.pkg [pkg-builder.dan.net.uk] Installing openssl-3.0.13_1,1... [pkg-builder.dan.net.uk] Extracting openssl-3.0.13_1,1: .......... done ===> ss5-3.8.9.8_4 depends on file: /usr/local/lib/libcrypto.so.12 - found ===> Returning to build of ss5-3.8.9.8_4 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ss5-3.8.9.8_4 depends on shared library: libldap.so.2 - not found ===> Installing existing package /packages/All/openldap26-client-2.6.7.pkg [pkg-builder.dan.net.uk] Installing openldap26-client-2.6.7... [pkg-builder.dan.net.uk] `-- Installing cyrus-sasl-2.1.28_4... *** Added group `cyrus' (id 60) *** Added user `cyrus' (id 60) [pkg-builder.dan.net.uk] `-- Extracting cyrus-sasl-2.1.28_4: .......... done [pkg-builder.dan.net.uk] Extracting openldap26-client-2.6.7: .......... done ===== Message from cyrus-sasl-2.1.28_4: -- You can use sasldb2 for authentication, to add users use: saslpasswd2 -c username If you want to enable SMTP AUTH with the system Sendmail, read Sendmail.README NOTE: This port has been compiled with a default pwcheck_method of auxprop. If you want to authenticate your user by /etc/passwd, PAM or LDAP, install ports/security/cyrus-sasl2-saslauthd and set sasl_pwcheck_method to saslauthd after installing the Cyrus-IMAPd 2.X port. You should also check the /usr/local/lib/sasl2/*.conf files for the correct pwcheck_method. If you want to use GSSAPI mechanism, install ports/security/cyrus-sasl2-gssapi. If you want to use SRP mechanism, install ports/security/cyrus-sasl2-srp. If you want to use LDAP auxprop plugin, install ports/security/cyrus-sasl2-ldapdb. ===== Message from openldap26-client-2.6.7: -- The OpenLDAP client package has been successfully installed. Edit /usr/local/etc/openldap/ldap.conf to change the system-wide client defaults. Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at http://www.OpenLDAP.org/faq/index.cgi?file=3 for more information. ===> ss5-3.8.9.8_4 depends on shared library: libldap.so.2 - found (/usr/local/lib/libldap.so.2) ===> Returning to build of ss5-3.8.9.8_4 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for ss5-3.8.9.8_4 configure: loading site script /usr/ports/Templates/config.site checking for gcc... cc checking for C compiler default output file name... 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 ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for main in -ldl... yes checking for main in -lldap... no checking for main in -lpam... yes checking for main in -lpam_misc... no checking for main in -lpthread... yes checking for main in -lssl... yes checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for arpa/inet.h... (cached) yes checking for fcntl.h... (cached) yes checking for netdb.h... (cached) yes checking for netinet/in.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/ioctl.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/time.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for pid_t... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking for vfork.h... (cached) no checking for fork... (cached) yes checking for vfork... (cached) yes checking for working fork... yes checking for working vfork... (cached) yes checking whether cc needs -traditional... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for sys/select.h... (cached) yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking for strftime... (cached) yes checking for bzero... (cached) yes checking for gethostbyname... (cached) yes checking for gettimeofday... (cached) yes checking for inet_ntoa... (cached) yes checking for memset... (cached) yes checking for select... (cached) yes checking for socket... yes checking for strdup... (cached) yes checking for strtol... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating modules/Makefile config.status: creating modules/mod_authen/Makefile config.status: creating modules/mod_author/Makefile config.status: creating modules/mod_balance/Makefile config.status: creating modules/mod_bandwidth/Makefile config.status: creating modules/mod_dump/Makefile config.status: creating modules/mod_filter/Makefile config.status: creating modules/mod_log/Makefile config.status: creating modules/mod_proxy/Makefile config.status: creating modules/mod_socks4/Makefile config.status: creating modules/mod_socks5/Makefile config.status: creating modules/mod_statistics/Makefile config.status: creating common/Makefile config.status: creating src/Makefile config.status: creating include/config.h =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for ss5-3.8.9.8_4 cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -fPIC -c SS5OpenLdap.c -o SS5OpenLdap.o SS5OpenLdap.c:55:11: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid = (UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -fPIC -c SS5Radius.c -o SS5Radius.o SS5Radius.c:86:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] MD5_Init(&md5); ^ /usr/local/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:88:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:89:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusPacket + OFF_VECTOR, VECTOR_LEN); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:91:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] MD5_Final(&md5digest[0], &md5); ^ /usr/local/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:203:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] MD5_Init(&md5); ^ /usr/local/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:205:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusPacket, 4); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:206:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusReqVector, VECTOR_LEN); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:275:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusPacket+20, packetLen - 20); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:276:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:278:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] MD5_Final(&md5digest[0], &md5); ^ /usr/local/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:234:51: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 32, but the corresponding specifier may require size 33 [-Wfortify-source] sscanf((char *)radiusAttrib,"%32s %16s",trash,buf); ^ SS5Radius.c:476:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] MD5_Init(&md5); ^ /usr/local/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:478:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusPacket + OFF_CODE,4 ); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:480:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusZeroVector,VECTOR_LEN ); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:481:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusPacket + HEADER_LEN,packetLen - HEADER_LEN ); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:483:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:485:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] MD5_Final(&md5digest[0], &md5); ^ /usr/local/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:595:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] MD5_Init(&md5); ^ /usr/local/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:597:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusPacket, 4); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:598:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusReqVector, VECTOR_LEN); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:600:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, radiusPacket + HEADER_LEN, packetLen - HEADER_LEN); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:601:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Radius.c:603:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] MD5_Final(&md5digest[0], &md5); ^ /usr/local/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ 23 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -fPIC -c SS5MySql.c -o SS5MySql.o cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_socks4.c -o SS5Mod_socks4.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_socks4.c:53:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks4.c:181:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks4.c:337:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks4.c:485:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks4.c:703:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks4.c:823:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks4.c:838:36: warning: 'fscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] while( fscanf(groupFile,"%64s",userName) != EOF ) { ^ 7 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_socks4.so SS5Mod_socks4.o ../../common/SS5OpenLdap.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_socks5.c -o SS5Mod_socks5.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_socks5.c:179:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:190:67: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /method=%20s\n%16s\n%1s%1s\n",sa,sp,me,me2); ^ SS5Mod_socks5.c:190:70: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /method=%20s\n%16s\n%1s%1s\n",sa,sp,me,me2); ^ SS5Mod_socks5.c:190:73: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /method=%20s\n%16s\n%1s%1s\n",sa,sp,me,me2); ^ SS5Mod_socks5.c:232:67: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /method=%20s\n%16s\n%1s%1s\n",sa,sp,me,me2); ^ SS5Mod_socks5.c:232:70: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /method=%20s\n%16s\n%1s%1s\n",sa,sp,me,me2); ^ SS5Mod_socks5.c:232:73: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /method=%20s\n%16s\n%1s%1s\n",sa,sp,me,me2); ^ SS5Mod_socks5.c:273:69: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /route=%20s\n%16s\n%64s\n%1s\n",sa,si,grp,dir); ^ SS5Mod_socks5.c:273:72: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /route=%20s\n%16s\n%64s\n%1s\n",sa,si,grp,dir); ^ SS5Mod_socks5.c:273:76: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /route=%20s\n%16s\n%64s\n%1s\n",sa,si,grp,dir); ^ SS5Mod_socks5.c:304:69: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /route=%20s\n%16s\n%64s\n%1s\n",sa,si,grp,dir); ^ SS5Mod_socks5.c:304:72: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /route=%20s\n%16s\n%64s\n%1s\n",sa,si,grp,dir); ^ SS5Mod_socks5.c:304:76: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /route=%20s\n%16s\n%64s\n%1s\n",sa,si,grp,dir); ^ SS5Mod_socks5.c:335:74: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:335:77: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:335:80: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 5, but the corresponding specifier may require size 6 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:335:83: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:376:76: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:376:79: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:376:82: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 5, but the corresponding specifier may require size 6 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:376:85: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:417:74: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:417:77: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:417:80: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 5, but the corresponding specifier may require size 6 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:417:83: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /proxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:459:76: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:459:79: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:459:82: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 5, but the corresponding specifier may require size 6 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:459:85: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /noproxy=%20s\n%16s\n%16s\n%5s\n%1s\n",da,dp,pa,pp,sv); ^ SS5Mod_socks5.c:525:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:581:34: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if( sd->MethodBytesReceived=recv(ci->Socket,(void *)sd->MethodRequest,ci->NMeth,0) <= 0 ) { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:581:34: note: place parentheses around the assignment to silence this warning if( sd->MethodBytesReceived=recv(ci->Socket,(void *)sd->MethodRequest,ci->NMeth,0) <= 0 ) { ^ ( ) SS5Mod_socks5.c:581:34: note: use '==' to turn this assignment into an equality comparison if( sd->MethodBytesReceived=recv(ci->Socket,(void *)sd->MethodRequest,ci->NMeth,0) <= 0 ) { ^ == SS5Mod_socks5.c:618:35: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] sd->MethodResponse[1] = NOMETHOD; ci->Method = NOMETHOD; ~ ^~~~~~~~ SS5Mod_socks5.c:684:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:769:126: warning: format specifies type 'unsigned short' but the argument has type 'UINT' (aka 'unsigned int') [-Wformat] snprintf(logString,sizeof(logString) - 1,"[%u] [DEBU] [S5 REQUEST PACKET] Receiving request protocol version: %hu",pid,ri->Ver); ~~~ ^~~~~~~ %u SS5Mod_socks5.c:781:126: warning: format specifies type 'unsigned short' but the argument has type 'UINT' (aka 'unsigned int') [-Wformat] snprintf(logString,sizeof(logString) - 1,"[%u] [DEBU] [S5 REQUEST PACKET] Receiving request protocol command: %hu",pid,ri->Cmd); ~~~ ^~~~~~~ %u SS5Mod_socks5.c:805:131: warning: format specifies type 'unsigned short' but the argument has type 'UINT' (aka 'unsigned int') [-Wformat] snprintf(logString,sizeof(logString) - 1,"[%u] [DEBU] [S5 REQUEST PACKET] Receiving request protocol address type: %hu",pid,ri->ATyp); ~~~ ^~~~~~~~ %u SS5Mod_socks5.c:913:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:1011:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if( (ri->Cmd == CONNECT) ) { ~~~~~~~~^~~~~~~~~~ SS5Mod_socks5.c:1011:20: note: remove extraneous parentheses around the comparison to silence this warning if( (ri->Cmd == CONNECT) ) { ~ ^ ~ SS5Mod_socks5.c:1011:20: note: use '=' to turn this equality comparison into an assignment if( (ri->Cmd == CONNECT) ) { ^~ = SS5Mod_socks5.c:1183:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:1358:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:1604:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:1761:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:1823:5: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] Sending UDP SOCKS response to client.",pid); ^ SS5Mod_socks5.c:1827:5: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [DEBU] [UDP RELAY] UDP SOCKS response sent to %s on port %d.",pid,ci->udpSrcAddr,ci->udpSrcPort); ^ SS5Mod_socks5.c:1867:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:1929:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:2048:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:2063:36: warning: 'fscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] while( fscanf(groupFile,"%64s",userName) != EOF ) { ^ SS5Mod_socks5.c:2116:19: warning: implicit declaration of function 'MySqlCheck' is invalid in C99 [-Wimplicit-function-declaration] err=MySqlCheck(node->Group,uname); ^ 49 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_socks5.so SS5Mod_socks5.o ../../common/SS5OpenLdap.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_authentication.c -o SS5Mod_authentication.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_authentication.c:63:11: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid = (UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Basic.c -o SS5Basic.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5ExternalProgram.c -o SS5ExternalProgram.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Pam.c -o SS5Pam.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Pam.c:60:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Pam.c:173:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] realloc(reply, sizeof(struct pam_response)); ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Supa.c -o SS5Supa.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Supa.c:68:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:76:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_validate_hk_req - STAT field is not valid %d",pid,buf->stat); ^ SS5Supa.c:84:5: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_validate_hk_req - Host Key request validate OK!!",pid); ^ SS5Supa.c:105:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:112:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_send_hk_req - When send Host Key",pid); ^ SS5Supa.c:136:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:142:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_validate_dh_req - When receive DH Data",pid); ^ SS5Supa.c:164:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_validate_dh_req - Len data received mismatch or bad request",pid); ^ SS5Supa.c:189:13: warning: 'DH_new' is deprecated [-Wdeprecated-declarations] DH * ss = DH_new(); ^ /usr/local/include/openssl/dh.h:203:1: note: 'DH_new' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:207:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:212:3: warning: 'DH_set0_pqg' is deprecated [-Wdeprecated-declarations] DH_set0_pqg(ss, p, NULL, g); ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:226:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(ss); ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:231:9: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] if (DH_get0_pub_key(ss)) { ^ /usr/local/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:232:15: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] BN_free(DH_get0_pub_key(ss)); ^ /usr/local/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:232:15: warning: passing 'const BIGNUM *' (aka 'const struct bignum_st *') to parameter of type 'BIGNUM *' (aka 'struct bignum_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] BN_free(DH_get0_pub_key(ss)); ^~~~~~~~~~~~~~~~~~~ /usr/local/include/openssl/bn.h:299:22: note: passing argument to parameter 'a' here void BN_free(BIGNUM *a); ^ SS5Supa.c:233:15: warning: 'DH_get0_priv_key' is deprecated [-Wdeprecated-declarations] BN_free(DH_get0_priv_key(ss)); ^ /usr/local/include/openssl/dh.h:266:1: note: 'DH_get0_priv_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_priv_key(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:233:15: warning: passing 'const BIGNUM *' (aka 'const struct bignum_st *') to parameter of type 'BIGNUM *' (aka 'struct bignum_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] BN_free(DH_get0_priv_key(ss)); ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/openssl/bn.h:299:22: note: passing argument to parameter 'a' here void BN_free(BIGNUM *a); ^ SS5Supa.c:240:10: warning: 'DH_generate_key' is deprecated [-Wdeprecated-declarations] if ( DH_generate_key(ss) == 0){ ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:248:7: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(ss); ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:252:27: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] } while (BN_is_negative(DH_get0_pub_key(ss))); ^ /usr/local/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:254:26: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] len_key = BN_num_bytes(DH_get0_pub_key(ss)); ^ /usr/local/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:269:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(ss); ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:274:14: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] BN_bn2bin (DH_get0_pub_key(ss), public_key); ^ /usr/local/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:288:25: warning: 'DH_size' is deprecated [-Wdeprecated-declarations] session_key = malloc (DH_size (ss)); ^ /usr/local/include/openssl/dh.h:207:1: note: 'DH_size' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:297:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(ss); ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:300:22: warning: 'DH_size' is deprecated [-Wdeprecated-declarations] bzero(session_key, DH_size (ss)); ^ /usr/local/include/openssl/dh.h:207:1: note: 'DH_size' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:301:3: warning: 'DH_compute_key' is deprecated [-Wdeprecated-declarations] DH_compute_key(session_key, a, ss); ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:304:23: warning: 'DH_size' is deprecated [-Wdeprecated-declarations] for (len = 0; len < DH_size (ss); len++) ^ /usr/local/include/openssl/dh.h:207:1: note: 'DH_size' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:311:3: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] DH_free(ss); ^ /usr/local/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/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:220:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_compute_key - Error when compute a, p, g",pid); ^ SS5Supa.c:242:9: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_compute_key - Error when compute the keys",pid); ^ SS5Supa.c:263:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_compute_key - malloc error",pid); ^ SS5Supa.c:291:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_compute_key - malloc error",pid); ^ SS5Supa.c:322:19: warning: initializing 'unsigned char *' with an expression of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] unsigned char * pippo = &(ci->Request[2]); ^ ~~~~~~~~~~~~~~~~~ SS5Supa.c:324:19: warning: initializing 'unsigned char *' with an expression of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] unsigned char * pippo2 = &(ci->Request[3 + l]); ^ ~~~~~~~~~~~~~~~~~~~~~ SS5Supa.c:337:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:365:3: warning: 'DES_set_odd_parity' is deprecated [-Wdeprecated-declarations] DES_set_odd_parity ((DES_cblock *) &sk1); ^ /usr/local/include/openssl/des.h:176:1: note: 'DES_set_odd_parity' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:366:3: warning: 'DES_set_odd_parity' is deprecated [-Wdeprecated-declarations] DES_set_odd_parity ((DES_cblock *) &sk2); ^ /usr/local/include/openssl/des.h:176:1: note: 'DES_set_odd_parity' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:367:8: warning: 'DES_set_key_checked' is deprecated [-Wdeprecated-declarations] if ( DES_set_key_checked ((DES_cblock *) &sk1, &schedule1) != 0){ ^ /usr/local/include/openssl/des.h:189:1: note: 'DES_set_key_checked' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:375:8: warning: 'DES_set_key_checked' is deprecated [-Wdeprecated-declarations] if ( DES_set_key_checked ((DES_cblock *) &sk2, &schedule2) != 0){ ^ /usr/local/include/openssl/des.h:189:1: note: 'DES_set_key_checked' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ SS5Supa.c:385:3: warning: implicit declaration of function 'DES_ede3_cbcm_encrypt' is invalid in C99 [-Wimplicit-function-declaration] DES_ede3_cbcm_encrypt (pippo, pippo_crypt, l, &schedule1, &schedule2, &schedule1, &iv, &iv2, DES_DECRYPT); ^ SS5Supa.c:402:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bcopy (pippo_crypt, &(ci->Request[2]), strlen (pippo_crypt)); ^~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ SS5Supa.c:403:55: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bcopy (pippo_crypt2, &(ci->Request[3 + l]), strlen (pippo_crypt2)); ^~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ SS5Supa.c:404:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bzero(pippo_crypt, strlen(pippo_crypt)); ^~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ SS5Supa.c:405:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bzero(pippo_crypt2, strlen(pippo_crypt2)); ^~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ SS5Supa.c:342:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_decrypt_key - In malloc!!",pid); ^ SS5Supa.c:350:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_decrypt_key - In malloc!!",pid); ^ SS5Supa.c:369:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_decrypt_key - compute first key!",pid); ^ SS5Supa.c:377:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_dh_decrypt_key - compute second key!",pid); ^ SS5Supa.c:395:5: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [DEBUG] END socks5_3des-cbc_crypt Username: %s ---- Password: XXXX ---- exiting" ^ SS5Supa.c:427:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:436:22: warning: passing 'unsigned char[32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(host_key,SS5SocksOpt.SupaKey,16); ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ SS5Supa.c:441:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_auth - Error when Validate request",pid); ^ SS5Supa.c:450:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_auth - Error when send Host Key Request request",pid); ^ SS5Supa.c:459:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_auth - Error when Receive/Validate request",pid); ^ SS5Supa.c:467:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] ss5_secure_auth - Error when Compute the session Key",pid); ^ SS5Supa.c:474:37: warning: 'bzero' call operates on objects of type 'unsigned char' while the size is based on a different type 'unsigned char *' [-Wsizeof-pointer-memaccess] bzero(session_key, sizeof(session_key)); ~~~~~~~~~~~ ^~~~~~~~~~~ SS5Supa.c:474:37: note: did you mean to provide an explicit length? bzero(session_key, sizeof(session_key)); ^~~~~~~~~~~ SS5Supa.c:481:37: warning: 'bzero' call operates on objects of type 'unsigned char' while the size is based on a different type 'unsigned char *' [-Wsizeof-pointer-memaccess] bzero(session_key, sizeof(session_key)); ~~~~~~~~~~~ ^~~~~~~~~~~ SS5Supa.c:481:37: note: did you mean to provide an explicit length? bzero(session_key, sizeof(session_key)); ^~~~~~~~~~~ SS5Supa.c:487:29: warning: 'bzero' call operates on objects of type 'unsigned char' while the size is based on a different type 'unsigned char *' [-Wsizeof-pointer-memaccess] bzero(session_key, sizeof(session_key)); ~~~~~~~~~~~ ^~~~~~~~~~~ SS5Supa.c:487:29: note: did you mean to provide an explicit length? bzero(session_key, sizeof(session_key)); ^~~~~~~~~~~ 59 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_authentication.so SS5Mod_authentication.o SS5Basic.o SS5ExternalProgram.o SS5Pam.o ../../common/SS5Radius.o SS5Supa.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_authorization.c -o SS5Mod_authorization.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_authorization.c:70:11: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid = (UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_authorization.c:292:100: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:103: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:106: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:109: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:112: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:115: warning: 'sscanf' may overflow; destination buffer in argument 8 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:118: warning: 'sscanf' may overflow; destination buffer in argument 9 has size 256, but the corresponding specifier may require size 257 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:122: warning: 'sscanf' may overflow; destination buffer in argument 10 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:292:125: warning: 'sscanf' may overflow; destination buffer in argument 11 has size 10, but the corresponding specifier may require size 11 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:98: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:101: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:104: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:107: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:110: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:113: warning: 'sscanf' may overflow; destination buffer in argument 8 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:116: warning: 'sscanf' may overflow; destination buffer in argument 9 has size 256, but the corresponding specifier may require size 257 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:120: warning: 'sscanf' may overflow; destination buffer in argument 10 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:296:123: warning: 'sscanf' may overflow; destination buffer in argument 11 has size 10, but the corresponding specifier may require size 11 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:100: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:103: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:106: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:109: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:112: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:115: warning: 'sscanf' may overflow; destination buffer in argument 8 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:118: warning: 'sscanf' may overflow; destination buffer in argument 9 has size 256, but the corresponding specifier may require size 257 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:122: warning: 'sscanf' may overflow; destination buffer in argument 10 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:368:125: warning: 'sscanf' may overflow; destination buffer in argument 11 has size 10, but the corresponding specifier may require size 11 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /permit=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:98: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:101: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:104: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:107: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:110: warning: 'sscanf' may overflow; destination buffer in argument 7 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:113: warning: 'sscanf' may overflow; destination buffer in argument 8 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:116: warning: 'sscanf' may overflow; destination buffer in argument 9 has size 256, but the corresponding specifier may require size 257 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:120: warning: 'sscanf' may overflow; destination buffer in argument 10 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:372:123: warning: 'sscanf' may overflow; destination buffer in argument 11 has size 10, but the corresponding specifier may require size 11 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /deny=%1s\n%64s\n%16s\n%64s\n%16s\n%16s\n%256s\n%16s\n%10s\n",me,sa,sp,da,dp,fu,grp,ba,ed); ^ SS5Mod_authorization.c:464:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_authorization.c:479:36: warning: 'fscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] while( fscanf(groupFile,"%64s",userName) != EOF ) { ^ SS5Mod_authorization.c:504:26: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] strncat(ps," 00:00:00",sizeof(ps)); ^~~~~~~~~~ SS5Mod_authorization.c:504:26: note: change the argument to be the free space in the destination buffer minus the terminating null byte strncat(ps," 00:00:00",sizeof(ps)); ^~~~~~~~~~ sizeof(ps) - strlen(ps) - 1 40 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_authorization.so SS5Mod_authorization.o ../../common/SS5OpenLdap.o ../../common/SS5MySql.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_proxy.c -o SS5Mod_proxy.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_proxy.c:64:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_proxy.c:220:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_proxy.c:283:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] Receiving UDP response from destination address.",pid); ^ SS5Mod_proxy.c:288:7: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [DEBU] [PROXY DATA] UDP request received from %s and port %d.",pid,inet_ntoa(in),ntohs(clientBindSsin.sin_port)); ^ SS5Mod_proxy.c:302:10: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] UDP fragmentation bit set.",pid); ^ SS5Mod_proxy.c:395:10: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [DEBU] FQDN destination address is: %s.",pid,ri->udpDstAddr); ^ SS5Mod_proxy.c:400:12: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] Failed resolving FQDN destination address.",pid); ^ SS5Mod_proxy.c:432:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_proxy.c:497:5: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [VERB] Sending UDP request to destination address.",pid); ^ SS5Mod_proxy.c:501:5: warning: 'snprintf' size argument is too large; destination buffer has size 128, but size argument is 255 [-Wfortify-source] snprintf(logString,256 - 1,"[%u] [DEBU] [PROXY DATA] UDP request sent to %s on port %d.",pid,ri->udpDstAddr,ri->udpDstPort); ^ 10 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_proxy.so SS5Mod_proxy.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_log.c -o SS5Mod_log.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_log.so SS5Mod_log.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_balance.c -o SS5Mod_balance.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_balance.c:71:11: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid = (UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_balance.so SS5Mod_balance.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c balamgr.c -o balamgr.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] cc -o balamgr.cgi balamgr.o -lpthread -lpam -lcrypto -lldap -lc -L /usr/local/lib -Wl,-export-dynamic cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_filter.c -o SS5Mod_filter.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_filter.c:249:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ SS5Mod_filter.c:393:42: warning: 'memset' call operates on objects of type 'char' while the size is based on a different type 'char *' [-Wsizeof-pointer-memaccess] memset(pd->Send,0,sizeof(pd->Send)); ~~~~~~~~ ~~~~^~~~ SS5Mod_filter.c:393:42: note: did you mean to provide an explicit length? memset(pd->Send,0,sizeof(pd->Send)); ~~~~^~~~ SS5Mod_filter.c:480:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ 3 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_filter.so SS5Mod_filter.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_statistics.c -o SS5Mod_statistics.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_statistics.c:27:17: warning: incompatible function pointer types assigning to 'UINT (*)(struct _SS5ClientInfo *, struct _SS5Socks5Data *)' (aka 'unsigned int (*)(struct _SS5ClientInfo *, struct _SS5Socks5Data *)') from 'INT (struct _SS5ClientInfo *, struct _SS5Socks5Data *)' (aka 'int (struct _SS5ClientInfo *, struct _SS5Socks5Data *)') [-Wincompatible-function-pointer-types] m->Statistics = Statistics; ^ ~~~~~~~~~~ 1 warning generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_statistics.so SS5Mod_statistics.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c statmgr.c -o statmgr.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] cc -o statmgr.cgi statmgr.o -lpthread -lpam -lcrypto -lldap -lc -L /usr/local/lib -Wl,-export-dynamic cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_bandwidth.c -o SS5Mod_bandwidth.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_bandwidth.c:101:69: warning: format string contains '\0' within the string body [-Wformat] sscanf(sd->MethodRequest,"DD /bandwidth=%64s\n%16s\n%16s\n%16s\n\0",usr,lncon,lband,stime); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ SS5Mod_bandwidth.c:127:63: warning: format string contains '\0' within the string body [-Wformat] sscanf(sd->MethodRequest,"EL /bandwidth=%64s\n%16s\n%16s\n\0",usr,lncon,lband); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ SS5Mod_bandwidth.c:101:73: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /bandwidth=%64s\n%16s\n%16s\n%16s\n\0",usr,lncon,lband,stime); ^ SS5Mod_bandwidth.c:101:77: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /bandwidth=%64s\n%16s\n%16s\n%16s\n\0",usr,lncon,lband,stime); ^ SS5Mod_bandwidth.c:101:83: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /bandwidth=%64s\n%16s\n%16s\n%16s\n\0",usr,lncon,lband,stime); ^ SS5Mod_bandwidth.c:101:89: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /bandwidth=%64s\n%16s\n%16s\n%16s\n\0",usr,lncon,lband,stime); ^ SS5Mod_bandwidth.c:127:67: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /bandwidth=%64s\n%16s\n%16s\n\0",usr,lncon,lband); ^ SS5Mod_bandwidth.c:127:71: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /bandwidth=%64s\n%16s\n%16s\n\0",usr,lncon,lband); ^ SS5Mod_bandwidth.c:127:77: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"EL /bandwidth=%64s\n%16s\n%16s\n\0",usr,lncon,lband); ^ SS5Mod_bandwidth.c:461:107: warning: format specifies type 'unsigned int' but the argument has type 'ULINT' (aka 'unsigned long') [-Wformat] snprintf(buf,133,"%64s\n%16u\n%16lu\n%16u\n%16u\n",lnode->Usr,lnode->LNCon,lnode->LBand,lnode->NCon,lnode->STime); ~~~~ ^~~~~~~~~~~~ %16lu 10 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_bandwidth.so SS5Mod_bandwidth.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c SS5Mod_dump.c -o SS5Mod_dump.o cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_dump.c:82:64: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /dump=%64s\n%16s\n%1s\n%1s\n",da,dp,dc,dm); ^ SS5Mod_dump.c:82:67: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /dump=%64s\n%16s\n%1s\n%1s\n",da,dp,dc,dm); ^ SS5Mod_dump.c:82:70: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /dump=%64s\n%16s\n%1s\n%1s\n",da,dp,dc,dm); ^ SS5Mod_dump.c:82:73: warning: 'sscanf' may overflow; destination buffer in argument 6 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DD /dump=%64s\n%16s\n%1s\n%1s\n",da,dp,dc,dm); ^ SS5Mod_dump.c:126:60: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(sd->MethodRequest,"DEL /dump=%64s\n%16s\n%1s\n",da,dp,dm); ^ SS5Mod_dump.c:126:63: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(sd->MethodRequest,"DEL /dump=%64s\n%16s\n%1s\n",da,dp,dm); ^ SS5Mod_dump.c:126:66: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 1, but the corresponding specifier may require size 2 [-Wfortify-source] sscanf(sd->MethodRequest,"DEL /dump=%64s\n%16s\n%1s\n",da,dp,dm); ^ SS5Mod_dump.c:216:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ 8 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -o mod_dump.so SS5Mod_dump.o -lpthread cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Main.c -o SS5Main.o cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Core.c -o SS5Core.o SS5Core.c:152:9: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] pid=(UINT)pthread_self(); ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Server.c -o SS5Server.o cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Utils.c -o SS5Utils.o SS5Utils.c:560:88: warning: 'fscanf' may overflow; destination buffer in argument 6 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] if( fscanf(S5ConfFile,"%128s %6s %16s %16s\n",pcf.group,pcf.lCon,pcf.bandwidth,pcf.sessTimeout) < 4 ) { ^ SS5Utils.c:825:38: warning: 'fscanf' may overflow; destination buffer in argument 3 has size 32, but the corresponding specifier may require size 33 [-Wfortify-source] if( fscanf(S5ConfFile,"%32s\n",S5Radius.Secret) < 1 ) { ^ SS5Utils.c:1568:37: warning: relational comparison result unused [-Wunused-comparison] for (ptr = buf,index=0; ptr < buf + ifc.ifc_len,index++; ) { ~~~~^~~~~~~~~~~~~~~~~~~ 3 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Thread.c -o SS5Thread.o SS5Thread.c:94:71: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] if( pthread_create(&s5thread,&s5thread_attribute,(void *)S5Core,(void *)clientSocket) < 0 ) { ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Debug.c -o SS5Debug.o cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5GSSApi.c -o SS5GSSApi.o cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Modules.c -o SS5Modules.o cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -o ss5 SS5Main.o SS5Core.o SS5Server.o SS5Utils.o SS5Thread.o SS5Debug.o SS5GSSApi.o SS5Modules.o ../common/SS5OpenLdap.o ../common/SS5Radius.o ../common/SS5MySql.o -lpthread -lpam -lcrypto -lldap -lc -L /usr/local/lib -Wl,-export-dynamic cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Srv.c -o SS5Srv.o SS5Srv.c:614:52: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(resp,"%64s\n%16u\n%16u\n%16u\n%16u\n",usr,&lncon,&lband,&ncon,&stime); ^ SS5Srv.c:689:38: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(resp,"%16s\n%5u\n%5u\n",real,&vid,&con); ^ SS5Srv.c:742:53: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(resp,"%16s\n%5u\n%16s\n%16ld\n%16ld\n",sa,&vid,da,&ttl,&cage); ^ SS5Srv.c:742:61: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 16, but the corresponding specifier may require size 17 [-Wfortify-source] sscanf(resp,"%16s\n%5u\n%16s\n%16ld\n%16ld\n",sa,&vid,da,&ttl,&cage); ^ SS5Srv.c:803:43: warning: 'sscanf' may overflow; destination buffer in argument 5 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] &lnode.Method,&lnode.SrcAddr,sfqdn,&lnode.SrcMask,&lnode.SrcPort,&lnode.SrcRangeMin,&lnode.SrcRangeMax, ^ SS5Srv.c:804:29: warning: 'sscanf' may overflow; destination buffer in argument 11 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] &lnode.DstAddr,dfqdn,&lnode.DstMask,&lnode.DstPort,&lnode.DstRangeMin,&lnode.DstRangeMax,lnode.Fixup, ^ SS5Srv.c:908:41: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(resp,"%64s\n%64s\n%16ld\n",usr,pwd,&ttl); ^ SS5Srv.c:908:45: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(resp,"%64s\n%64s\n%16ld\n",usr,pwd,&ttl); ^ SS5Srv.c:1556:34: warning: 'sscanf' may overflow; destination buffer in argument 3 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(resp,"%64s\n%64s\n",option,value); ^ SS5Srv.c:1556:41: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 64, but the corresponding specifier may require size 65 [-Wfortify-source] sscanf(resp,"%64s\n%64s\n",option,value); ^ 10 warnings generated. cc -O2 -pipe -fcommon -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -o ss5srv SS5Srv.o -lpthread -lpam -lcrypto -lldap -lc -L /usr/local/lib -Wl,-export-dynamic =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ss5-3.8.9.8_4 depends on file: /usr/local/lib/libcrypto.so.12 - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for ss5-3.8.9.8_4 ===> Generating temporary packing list cp src/ss5 /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/sbin/ cp src/ss5srv /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/sbin/ find modules -name *.so -exec cp {} /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/lib/ss5/ \; if [ FreeBSD = "FreeBSD" ]; then cp modules/mod_statistics/statmgr.cgi /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/ss5/ ; cp modules/mod_balance/balamgr.cgi /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/ss5/ ; cp modules/mod_statistics/SS5Logo.jpg /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/ss5/ ; cp modules/mod_balance/SS5Logo.jpg /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/ss5/ ; fi cp License /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/doc/ss5 cp -r doc/ldap/README.ldap /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/doc/ss5 cp -r doc/pam/README.pam /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/doc/ss5 cp modules/mod_statistics/README.statmgr /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/doc/ss5 cp modules/mod_balance/README.balamgr /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/doc/ss5 if [ FreeBSD = "FreeBSD" ]; then cp man/FreeBSD/ss5.1* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man1/; cp man/FreeBSD/ss5srv.1* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man1/; cp man/FreeBSD/ss5.passwd.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man5/; cp man/FreeBSD/ss5.ha.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man5/; cp man/FreeBSD/ss5.pam.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man5/; cp man/FreeBSD/ss5.conf.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man5/; cp man/FreeBSD/ss5_gss.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man5/; cp man/FreeBSD/ss5_supa.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/man/man5/; else cp man/FreeBSD/ss5.1* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man1/; cp man/FreeBSD/ss5srv.1* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man1/; cp man/FreeBSD/ss5.passwd.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man5/; cp man/FreeBSD/ss5.ha.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man5/; cp man/FreeBSD/ss5.pam.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man5/; cp man/FreeBSD/ss5.conf.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man5/; cp man/FreeBSD/ss5_gss.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man5/; cp man/FreeBSD/ss5_supa.5* /wrkdirs/usr/ports/net/ss5/work/stage/usr/share/man/man5/; fi if [ ! -d /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc ]; then mkdir -p /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc; fi if [ ! -d /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5 ]; then mkdir -p /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5; fi if [ ! -f /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5/ss5.conf ]; then cp conf/ss5.conf /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5; fi if [ ! -f /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5/ss5.ha ]; then cp conf/ss5.ha /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5; fi if [ ! -f /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5/ss5.passwd ]; then cp conf/ss5.passwd /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5; fi if [ FreeBSD = "FreeBSD" ]; then mkdir -p /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/examples/ss5; cp doc/ldap/examples/* doc/pam/examples/ss5.pam /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/share/examples/ss5; fi /bin/mkdir -p /wrkdirs/usr/ports/net/ss5/work/stage/var/log/ss5 /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5 install -m 0644 /wrkdirs/usr/ports/net/ss5/work/ss5-3.8.9/conf/ss5.conf /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5/ss5.conf.sample install -m 0644 /wrkdirs/usr/ports/net/ss5/work/ss5-3.8.9/conf/ss5.ha /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5/ss5.ha.sample install -m 0644 /wrkdirs/usr/ports/net/ss5/work/ss5-3.8.9/conf/ss5.passwd /wrkdirs/usr/ports/net/ss5/work/stage/usr/local/etc/ss5/ss5.passwd.sample ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-05T23:22:31+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=c509e26eb3' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for ss5-3.8.9.8_4 ===> Building ss5-3.8.9.8_4 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for ss5-3.8.9.8_4 build of net/ss5 | ss5-3.8.9.8_4 ended at Sat Apr 6 00:25:50 BST 2024 build time: 00:03:19