=>> Building net/ss5 build started at Fri Mar 13 01:27:40 EDT 2026 port directory: /usr/ports/net/ss5 package name: ss5-3.8.9.8_4 building for: FreeBSD pkg.DaveG.ca 14.4-RELEASE FreeBSD 14.4-RELEASE 1404000 amd64 maintained by: raffaele.delorenzo@libero.it Makefile datestamp: -rw-r--r-- 1 root wheel 1337 Oct 16 2024 /usr/ports/net/ss5/Makefile Ports top last git commit: 26b198eb3ee3 Ports top unclean checkout: no Port dir last git commit: 4485bd8221c2 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500068 Jail OSVERSION: 1404000 Job Id: 13 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1404000 UNAME_v=FreeBSD 14.4-RELEASE 1404000 UNAME_r=14.4-RELEASE 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.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_14_4_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_14_4_x64-HEAD-ALL/13/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_14_4_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_14_4_x64-HEAD-ALL/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 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=/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 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 OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/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=/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 -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing " 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=14.4 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--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 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 #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---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 pipebuf (-y) 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-2.6.2.pkg [pkg.DaveG.ca] Installing pkg-2.6.2... [pkg.DaveG.ca] Extracting pkg-2.6.2: .......... 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/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> ss5-3.8.9.8_4 depends on file: /usr/local/bin/ccache - 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.12.pkg [pkg.DaveG.ca] Installing openldap26-client-2.6.12... [pkg.DaveG.ca] `-- Installing cyrus-sasl-2.1.28_5... *** Added group `cyrus' (id 60) *** Added user `cyrus' (id 60) [pkg.DaveG.ca] `-- Extracting cyrus-sasl-2.1.28_5: .......... done [pkg.DaveG.ca] Extracting openldap26-client-2.6.12: .......... done ===== Message from cyrus-sasl-2.1.28_5: -- 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.12: -- 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 --- common --- --- modules --- --- src --- --- modules --- --- all --- --- common --- --- SS5OpenLdap.o --- --- SS5Radius.o --- --- SS5MySql.o --- --- SS5OpenLdap.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -fPIC -c SS5OpenLdap.c -o SS5OpenLdap.o --- SS5Radius.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -fPIC -c SS5Radius.c -o SS5Radius.o --- SS5MySql.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -fPIC -c SS5MySql.c -o SS5MySql.o --- modules --- --- SS5Mod_socks4.o --- --- ../../common/SS5OpenLdap.o --- --- SS5Mod_socks4.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- ../../common/SS5OpenLdap.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../../include -shared -fPIC -c ../../common/SS5OpenLdap.c -o ../../common/SS5OpenLdap.o --- src --- --- SS5Main.o --- --- SS5Core.o --- --- SS5Server.o --- --- SS5Utils.o --- --- SS5Thread.o --- --- SS5Debug.o --- --- SS5GSSApi.o --- --- SS5Modules.o --- --- SS5Srv.o --- --- SS5Main.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Main.c -o SS5Main.o --- SS5Core.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Core.c -o SS5Core.o --- SS5Server.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Server.c -o SS5Server.o --- SS5Thread.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Thread.c -o SS5Thread.o --- SS5Utils.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Utils.c -o SS5Utils.o --- SS5Debug.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Debug.c -o SS5Debug.o --- SS5GSSApi.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5GSSApi.c -o SS5GSSApi.o --- SS5Srv.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Srv.c -o SS5Srv.o --- SS5Modules.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -DLDAP_DEPRECATED -fstack-protector-strong -fno-strict-aliasing -DFREEBSD -pthread -I/usr/local/include -I . -I ../include -c SS5Modules.c -o SS5Modules.o --- common --- --- src --- --- SS5GSSApi.o --- --- SS5Thread.o --- SS5Thread.c:94:71: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 94 | if( pthread_create(&s5thread,&s5thread_attribute,(void *)S5Core,(void *)clientSocket) < 0 ) { | ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. --- SS5Debug.o --- --- SS5Server.o --- --- SS5Main.o --- --- SS5Modules.o --- --- common --- --- 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] 55 | pid = (UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. --- modules --- cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] ../../common/SS5OpenLdap.c:55:11: warning: cast to smaller integer type 'UINT' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] 55 | pid = (UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. --- common --- --- SS5Radius.o --- SS5Radius.c:86:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] 86 | MD5_Init(&md5); | ^ /usr/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:88:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 88 | MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:89:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 89 | MD5_Update(&md5, radiusPacket + OFF_VECTOR, VECTOR_LEN); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:91:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] 91 | MD5_Final(&md5digest[0], &md5); | ^ /usr/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:203:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] 203 | MD5_Init(&md5); | ^ /usr/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:205:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 205 | MD5_Update(&md5, radiusPacket, 4); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:206:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 206 | MD5_Update(&md5, radiusReqVector, VECTOR_LEN); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:275:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 275 | MD5_Update(&md5, radiusPacket+20, packetLen - 20); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:276:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 276 | MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:278:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] 278 | MD5_Final(&md5digest[0], &md5); | ^ /usr/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # 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] 234 | sscanf((char *)radiusAttrib,"%32s %16s",trash,buf); | ^ SS5Radius.c:476:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] 476 | MD5_Init(&md5); | ^ /usr/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:478:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 478 | MD5_Update(&md5, radiusPacket + OFF_CODE,4 ); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:480:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 480 | MD5_Update(&md5, radiusZeroVector,VECTOR_LEN ); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:481:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 481 | MD5_Update(&md5, radiusPacket + HEADER_LEN,packetLen - HEADER_LEN ); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:483:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 483 | MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:485:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] 485 | MD5_Final(&md5digest[0], &md5); | ^ /usr/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:595:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] 595 | MD5_Init(&md5); | ^ /usr/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:597:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 597 | MD5_Update(&md5, radiusPacket, 4); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:598:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 598 | MD5_Update(&md5, radiusReqVector, VECTOR_LEN); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:600:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 600 | MD5_Update(&md5, radiusPacket + HEADER_LEN, packetLen - HEADER_LEN); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:601:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] 601 | MD5_Update(&md5, S5Radius.Secret,strlen(S5Radius.Secret) ); | ^ /usr/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Radius.c:603:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] 603 | MD5_Final(&md5digest[0], &md5); | ^ /usr/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ 23 warnings generated. --- modules --- --- 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] 53 | 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] 181 | 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] 337 | 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] 485 | 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] 703 | 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] 823 | 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] 838 | while( fscanf(groupFile,"%64s",userName) != EOF ) { | ^ 7 warnings generated. --- mod_socks4.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_socks5.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- src --- --- 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] 560 | 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] 825 | if( fscanf(S5ConfFile,"%32s\n",S5Radius.Secret) < 1 ) { | ^ SS5Utils.c:1568:37: warning: relational comparison result unused [-Wunused-comparison] 1568 | for (ptr = buf,index=0; ptr < buf + ifc.ifc_len,index++; ) { | ~~~~^~~~~~~~~~~~~~~~~~~ 3 warnings generated. --- SS5Srv.o --- SS5Srv.c:231:3: warning: 'snprintf' will always be truncated; specified size is 96, but format string expands to at least 97 [-Wformat-truncation] 231 | snprintf(buf,sizeof(buf),"ADD /dump=%64s\n%16s\n%1s\n%1s\n",da,dp,dc,dm); | ^ SS5Srv.c:268:3: warning: 'snprintf' will always be truncated; specified size is 94, but format string expands to at least 95 [-Wformat-truncation] 268 | snprintf(buf,sizeof(buf),"DEL /dump=%64s\n%16s\n%1s\n",da,dp,dm); | ^ SS5Srv.c:517:3: warning: 'snprintf' will always be truncated; specified size is 132, but format string expands to at least 133 [-Wformat-truncation] 517 | snprintf(buf,sizeof(buf),"ADD /bandwidth=\n%64s\n%16s\n%16s\n%16s\n",user,lncon,lband,stime); | ^ SS5Srv.c:552:3: warning: 'snprintf' will always be truncated; specified size is 132, but format string expands to at least 133 [-Wformat-truncation] 552 | snprintf(buf,sizeof(buf),"DEL /bandwidth=\n%64s\n%16s\n%16s\n%16s\n",user,lncon,lband,stime); | ^ 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] 614 | 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] 689 | 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] 742 | 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] 742 | 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] 803 | &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] 804 | &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] 908 | 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] 908 | 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] 1556 | 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] 1556 | sscanf(resp,"%64s\n%64s\n",option,value); | ^ 14 warnings generated. --- ss5srv --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- 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] 152 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Core.c:1491:5: warning: 'snprintf' will always be truncated; specified size is 17, but format string expands to at least 18 [-Wformat-truncation] 1491 | snprintf(buf,sizeof(buf),"%16s\n",SS5Peer[index].IP); | ^ SS5Core.c:1507:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1507 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_ROLE_SLAVE","0" ); | ^ SS5Core.c:1514:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1514 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_DNSORDER","0" ); | ^ SS5Core.c:1521:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1521 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_CONSOLE","0" ); | ^ SS5Core.c:1528:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1528 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SRV","0" ); | ^ SS5Core.c:1535:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1535 | snprintf(buf,sizeof(buf),"%64s\n%64d\n","SS5_LDAP_TIMEOUT",SS5SocksOpt.LdapTimeout ); | ^ SS5Core.c:1542:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1542 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_LDAP_BASE","LDAP_BASE" ); | ^ SS5Core.c:1549:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1549 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_LDAP_BASE","LDAP_FILTER" ); | ^ SS5Core.c:1556:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1556 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_NETBIOS_DOMAIN","0" ); | ^ SS5Core.c:1563:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1563 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_PAM_AUTH","0" ); | ^ SS5Core.c:1570:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1570 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_RADIUS_AUTH","0" ); | ^ SS5Core.c:1577:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1577 | snprintf(buf,sizeof(buf),"%64s\n%64ld\n","SS5_RADIUS_INTERIM_INT",SS5SocksOpt.RadIntUpdInterval ); | ^ SS5Core.c:1584:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1584 | snprintf(buf,sizeof(buf),"%64s\n%64d\n","SS5_RADIUS_INTERIM_TIMEOUT",SS5SocksOpt.RadInterimTimeout ); | ^ SS5Core.c:1591:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1591 | snprintf(buf,sizeof(buf),"%64s\n%64d\n","SS5_AUTHCACHEAGE",SS5SocksOpt.AuthCacheAge ); | ^ SS5Core.c:1598:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1598 | snprintf(buf,sizeof(buf),"%64s\n%64d\n","SS5_AUTHOCACHEAGE",SS5SocksOpt.AuthoCacheAge ); | ^ SS5Core.c:1605:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1605 | snprintf(buf,sizeof(buf),"%64s\n%64d\n","SS5_STICKYAGE",SS5SocksOpt.StickyAge ); | ^ SS5Core.c:1612:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1612 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_STICKY_SESSION","0" ); | ^ SS5Core.c:1619:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1619 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_VERBOSE","0" ); | ^ SS5Core.c:1626:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1626 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_DEBUG","0" ); | ^ SS5Core.c:1633:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1633 | snprintf(buf,sizeof(buf),"%64s\n%64ld\n","SS5_STIMEOUT",SS5SocksOpt.SessionIdleTimeout ); | ^ SS5Core.c:1640:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1640 | snprintf(buf,sizeof(buf),"%64s\n%64d\n","SS5_ATIMEOUT",SS5SocksOpt.AcceptTimeout ); | ^ SS5Core.c:1647:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1647 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SUPAKEY",SS5SocksOpt.SupaKey ); | ^ SS5Core.c:1654:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1654 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_ICACHESERVER",SS5SocksOpt.ICacheServer ); | ^ SS5Core.c:1670:5: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1670 | snprintf(buf,sizeof(buf),"%64s\n%64d\n","SS5_PROCESSLIFE",SS5SocksOpt.PreforkProcessLife ); | ^ SS5Core.c:1679:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1679 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_FACILITY","LOG_LOCAL0" ); | ^ SS5Core.c:1681:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1681 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_FACILITY","LOG_LOCAL1" ); | ^ SS5Core.c:1683:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1683 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_FACILITY","LOG_LOCAL2" ); | ^ SS5Core.c:1685:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1685 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_FACILITY","LOG_LOCAL3" ); | ^ SS5Core.c:1687:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1687 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_FACILITY","LOG_LOCAL4" ); | ^ SS5Core.c:1689:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1689 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_FACILITY","LOG_LOCAL5" ); | ^ SS5Core.c:1691:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1691 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_FACILITY","LOG_LOCAL7" ); | ^ SS5Core.c:1701:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1701 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_LEVEL","LOG_EMERG" ); | ^ SS5Core.c:1703:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1703 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_LEVEL","LOG_ALERT" ); | ^ SS5Core.c:1705:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1705 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_LEVEL","LOG_CRIT" ); | ^ SS5Core.c:1707:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1707 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_LEVEL","LOG_WARNING" ); | ^ SS5Core.c:1709:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1709 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_LEVEL","LOG_NOTICE" ); | ^ SS5Core.c:1711:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1711 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_LEVEL","LOG_INFO" ); | ^ SS5Core.c:1713:7: warning: 'snprintf' will always be truncated; specified size is 130, but format string expands to at least 131 [-Wformat-truncation] 1713 | snprintf(buf,sizeof(buf),"%64s\n%64s\n","SS5_SYSLOG_LEVEL","LOG_DEBUG" ); | ^ 39 warnings generated. --- ss5 --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- modules --- cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] SS5Mod_socks5.c:71:11: warning: 'snprintf' will always be truncated; specified size is 106, but format string expands to at least 107 [-Wformat-truncation] 71 | snprintf(buf,sizeof(buf),"%16lu\n%2u\n%16lu\n%64s\n%3u\n",lnode->SrcAddr,lnode->Mask,lnode->SrcIf,lnode->Group,lnode->sd); | ^ SS5Mod_socks5.c:128:11: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 81 [-Wformat-truncation] 128 | snprintf(buf,sizeof(buf),"%16lu\n%2u\n%16lu\n%5u\n%5u\n%16lu\n%5u\n%3u\n%3u\n",lnode->DstAddr,lnode->Mask,lnode->DstPort, | ^ 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] 179 | 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] 190 | 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] 190 | 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] 190 | 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] 232 | 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] 232 | 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] 232 | 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] 273 | 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] 273 | 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] 273 | 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] 304 | 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] 304 | 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] 304 | 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] 335 | 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] 335 | 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] 335 | 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] 335 | 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] 376 | 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] 376 | 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] 376 | 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] 376 | 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] 417 | 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] 417 | 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] 417 | 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] 417 | 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] 459 | 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] 459 | 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] 459 | 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] 459 | 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] 525 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:581:34: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 581 | 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 581 | 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 581 | 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] 618 | 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] 684 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ 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] 913 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Mod_socks5.c:1011:20: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1011 | if( (ri->Cmd == CONNECT) ) { | ~~~~~~~~^~~~~~~~~~ SS5Mod_socks5.c:1011:20: note: remove extraneous parentheses around the comparison to silence this warning 1011 | if( (ri->Cmd == CONNECT) ) { | ~ ^ ~ SS5Mod_socks5.c:1011:20: note: use '=' to turn this equality comparison into an assignment 1011 | 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] 1183 | 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] 1358 | 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] 1604 | 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] 1761 | 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] 1823 | 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] 1827 | 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] 1867 | 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] 1929 | 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] 2048 | 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] 2063 | while( fscanf(groupFile,"%64s",userName) != EOF ) { | ^ SS5Mod_socks5.c:2116:19: warning: call to undeclared function 'MySqlCheck'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2116 | err=MySqlCheck(node->Group,uname); | ^ 48 warnings generated. --- mod_socks5.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_authentication.o --- --- SS5Basic.o --- --- SS5ExternalProgram.o --- --- SS5Pam.o --- --- SS5Supa.o --- --- SS5Mod_authentication.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Basic.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5ExternalProgram.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Pam.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Supa.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Basic.o --- cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] --- 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] 60 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Pam.c:173:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] 173 | realloc(reply, sizeof(struct pam_response)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. --- SS5ExternalProgram.o --- cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] --- 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] 68 | 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] 76 | 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] 84 | 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] 105 | 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] 112 | 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] 136 | 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] 142 | 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] 164 | 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] 189 | DH * ss = DH_new(); | ^ /usr/include/openssl/dh.h:203:1: note: 'DH_new' has been explicitly marked deprecated here 203 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # 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] 207 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:212:3: warning: 'DH_set0_pqg' is deprecated [-Wdeprecated-declarations] 212 | DH_set0_pqg(ss, p, NULL, g); | ^ /usr/include/openssl/dh.h:259:1: note: 'DH_set0_pqg' has been explicitly marked deprecated here 259 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:226:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] 226 | DH_free(ss); | ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:231:9: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] 231 | if (DH_get0_pub_key(ss)) { | ^ /usr/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here 267 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:232:15: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] 232 | BN_free(DH_get0_pub_key(ss)); | ^ /usr/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here 267 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # 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] 232 | BN_free(DH_get0_pub_key(ss)); | ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/bn.h:299:22: note: passing argument to parameter 'a' here 299 | void BN_free(BIGNUM *a); | ^ SS5Supa.c:233:15: warning: 'DH_get0_priv_key' is deprecated [-Wdeprecated-declarations] 233 | BN_free(DH_get0_priv_key(ss)); | ^ /usr/include/openssl/dh.h:266:1: note: 'DH_get0_priv_key' has been explicitly marked deprecated here 266 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_priv_key(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # 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] 233 | BN_free(DH_get0_priv_key(ss)); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/bn.h:299:22: note: passing argument to parameter 'a' here 299 | void BN_free(BIGNUM *a); | ^ SS5Supa.c:240:10: warning: 'DH_generate_key' is deprecated [-Wdeprecated-declarations] 240 | if ( DH_generate_key(ss) == 0){ | ^ /usr/include/openssl/dh.h:227:1: note: 'DH_generate_key' has been explicitly marked deprecated here 227 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:248:7: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] 248 | DH_free(ss); | ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:252:27: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] 252 | } while (BN_is_negative(DH_get0_pub_key(ss))); | ^ /usr/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here 267 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:254:26: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] 254 | len_key = BN_num_bytes(DH_get0_pub_key(ss)); | ^ /usr/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here 267 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:269:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] 269 | DH_free(ss); | ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:274:14: warning: 'DH_get0_pub_key' is deprecated [-Wdeprecated-declarations] 274 | BN_bn2bin (DH_get0_pub_key(ss), public_key); | ^ /usr/include/openssl/dh.h:267:1: note: 'DH_get0_pub_key' has been explicitly marked deprecated here 267 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:288:25: warning: 'DH_size' is deprecated [-Wdeprecated-declarations] 288 | session_key = malloc (DH_size (ss)); | ^ /usr/include/openssl/dh.h:207:1: note: 'DH_size' has been explicitly marked deprecated here 207 | OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:297:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] 297 | DH_free(ss); | ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:300:22: warning: 'DH_size' is deprecated [-Wdeprecated-declarations] 300 | bzero(session_key, DH_size (ss)); | ^ /usr/include/openssl/dh.h:207:1: note: 'DH_size' has been explicitly marked deprecated here 207 | OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:301:3: warning: 'DH_compute_key' is deprecated [-Wdeprecated-declarations] 301 | DH_compute_key(session_key, a, ss); | ^ /usr/include/openssl/dh.h:228:1: note: 'DH_compute_key' has been explicitly marked deprecated here 228 | OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key, | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:304:23: warning: 'DH_size' is deprecated [-Wdeprecated-declarations] 304 | for (len = 0; len < DH_size (ss); len++) | ^ /usr/include/openssl/dh.h:207:1: note: 'DH_size' has been explicitly marked deprecated here 207 | OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:311:3: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] 311 | DH_free(ss); | ^ /usr/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # 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] 220 | 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] 242 | 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] 263 | 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] 291 | 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] 322 | 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] 324 | 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] 337 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Supa.c:365:3: warning: 'DES_set_odd_parity' is deprecated [-Wdeprecated-declarations] 365 | DES_set_odd_parity ((DES_cblock *) &sk1); | ^ /usr/include/openssl/des.h:176:1: note: 'DES_set_odd_parity' has been explicitly marked deprecated here 176 | OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:366:3: warning: 'DES_set_odd_parity' is deprecated [-Wdeprecated-declarations] 366 | DES_set_odd_parity ((DES_cblock *) &sk2); | ^ /usr/include/openssl/des.h:176:1: note: 'DES_set_odd_parity' has been explicitly marked deprecated here 176 | OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key); | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:367:8: warning: 'DES_set_key_checked' is deprecated [-Wdeprecated-declarations] 367 | if ( DES_set_key_checked ((DES_cblock *) &sk1, &schedule1) != 0){ | ^ /usr/include/openssl/des.h:189:1: note: 'DES_set_key_checked' has been explicitly marked deprecated here 189 | OSSL_DEPRECATEDIN_3_0 | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:375:8: warning: 'DES_set_key_checked' is deprecated [-Wdeprecated-declarations] 375 | if ( DES_set_key_checked ((DES_cblock *) &sk2, &schedule2) != 0){ | ^ /usr/include/openssl/des.h:189:1: note: 'DES_set_key_checked' has been explicitly marked deprecated here 189 | OSSL_DEPRECATEDIN_3_0 | ^ /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' 182 | # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) | ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' 62 | # define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ SS5Supa.c:385:3: warning: call to undeclared function 'DES_ede3_cbcm_encrypt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 385 | 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] 402 | bcopy (pippo_crypt, &(ci->Request[2]), strlen (pippo_crypt)); | ^~~~~~~~~~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | 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] 403 | bcopy (pippo_crypt2, &(ci->Request[3 + l]), strlen (pippo_crypt2)); | ^~~~~~~~~~~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | 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] 404 | bzero(pippo_crypt, strlen(pippo_crypt)); | ^~~~~~~~~~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | 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] 405 | bzero(pippo_crypt2, strlen(pippo_crypt2)); | ^~~~~~~~~~~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | 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] 342 | 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] 350 | 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] 369 | 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] 377 | 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] 395 | 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] 427 | 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] 436 | strncpy(host_key,SS5SocksOpt.SupaKey,16); | ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:112:57: note: passing argument to parameter here 112 | 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] 441 | 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] 450 | 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] 459 | 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] 467 | 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] 474 | bzero(session_key, sizeof(session_key)); | ~~~~~~~~~~~ ^~~~~~~~~~~ SS5Supa.c:474:37: note: did you mean to provide an explicit length? 474 | 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] 481 | bzero(session_key, sizeof(session_key)); | ~~~~~~~~~~~ ^~~~~~~~~~~ SS5Supa.c:481:37: note: did you mean to provide an explicit length? 481 | 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] 487 | bzero(session_key, sizeof(session_key)); | ~~~~~~~~~~~ ^~~~~~~~~~~ SS5Supa.c:487:29: note: did you mean to provide an explicit length? 487 | bzero(session_key, sizeof(session_key)); | ^~~~~~~~~~~ 59 warnings generated. --- 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] 63 | pid = (UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Mod_authentication.c:335:11: warning: 'snprintf' will always be truncated; specified size is 147, but format string expands to at least 148 [-Wformat-truncation] 335 | snprintf(buf,sizeof(buf),"%64s\n%64s\n%16lu\n",lnode->Usr,"XXXXXXXX",lnode->ttl); | ^ 2 warnings generated. --- mod_authentication.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_authorization.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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] 70 | pid = (UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Mod_authorization.c:253:11: warning: 'snprintf' will always be truncated; specified size is 230, but format string expands to at least 231 [-Wformat-truncation] 253 | snprintf(buf,sizeof(buf),"%64s\n%5u\n%64s\n%5u\n%64s\n%16lu\n%5u\n",lnode->Sa,lnode->Sp,lnode->Da,lnode->Dp,lnode->Us,lnode->ttl,lnode->Flg); | ^ 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] 292 | 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] 292 | 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] 292 | 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] 292 | 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] 292 | 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] 292 | 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] 292 | 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] 292 | 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] 292 | 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] 296 | 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] 296 | 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] 296 | 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] 296 | 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] 296 | 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] 296 | 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] 296 | 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] 296 | 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] 296 | 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] 368 | 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] 368 | 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] 368 | 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] 368 | 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] 368 | 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] 368 | 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] 368 | 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] 368 | 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] 368 | 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] 372 | 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] 372 | 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] 372 | 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] 372 | 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] 372 | 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] 372 | 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] 372 | 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] 372 | 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] 372 | 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] 464 | 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] 479 | 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] 504 | 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 504 | strncat(ps," 00:00:00",sizeof(ps)); | ^~~~~~~~~~ | sizeof(ps) - strlen(ps) - 1 41 warnings generated. --- mod_authorization.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_proxy.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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] 64 | 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] 220 | 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] 283 | 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] 288 | 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] 302 | 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] 395 | 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] 400 | 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] 432 | 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] 497 | 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] 501 | snprintf(logString,256 - 1,"[%u] [DEBU] [PROXY DATA] UDP request sent to %s on port %d.",pid,ri->udpDstAddr,ri->udpDstPort); | ^ 10 warnings generated. --- mod_proxy.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_log.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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] --- mod_log.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_balance.o --- --- balamgr.o --- --- SS5Mod_balance.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- balamgr.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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] --- balamgr.cgi --- cc -o balamgr.cgi balamgr.o -lpthread -lpam -lcrypto -lldap -lc -L /usr/local/lib -Wl,-export-dynamic --- 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] 71 | pid = (UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ SS5Mod_balance.c:153:7: warning: 'snprintf' will always be truncated; specified size is 29, but format string expands to at least 30 [-Wformat-truncation] 153 | snprintf(buf,sizeof(buf),"%16s\n%5u\n%5u\n",S5ConnectionTable.S5ConnectionEntry[count]->Real, | ^ SS5Mod_balance.c:191:11: warning: 'snprintf' will always be truncated; specified size is 74, but format string expands to at least 75 [-Wformat-truncation] 191 | snprintf(buf,sizeof(buf), "%16s\n%5u\n%16s\n%16lu\n%16lu\n",sa,lnode->vid,da,lnode->ttl,currentAge); | ^ SS5Mod_balance.c:490:9: warning: 'snprintf' will always be truncated; specified size is 74, but format string expands to at least 75 [-Wformat-truncation] 490 | snprintf(buf,74, "%16s\n%5u\n%16s\n%16lu\n%16lu\n",sa,node->vid,da,node->ttl,currentAge); | ^ 4 warnings generated. --- mod_balance.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_filter.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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] 249 | 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] 393 | memset(pd->Send,0,sizeof(pd->Send)); | ~~~~~~~~ ~~~~^~~~ SS5Mod_filter.c:393:42: note: did you mean to provide an explicit length? 393 | 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] 480 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ 3 warnings generated. --- mod_filter.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_statistics.o --- --- statmgr.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_statistics.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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] 27 | m->Statistics = Statistics; | ^ ~~~~~~~~~~ 1 warning generated. --- mod_statistics.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- statmgr.o --- cc: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] --- statmgr.cgi --- cc -o statmgr.cgi statmgr.o -lpthread -lpam -lcrypto -lldap -lc -L /usr/local/lib -Wl,-export-dynamic --- SS5Mod_bandwidth.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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] 101 | 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] 127 | 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] 101 | 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] 101 | 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] 101 | 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] 101 | 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] 127 | 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] 127 | 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] 127 | 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] 461 | snprintf(buf,133,"%64s\n%16u\n%16lu\n%16u\n%16u\n",lnode->Usr,lnode->LNCon,lnode->LBand,lnode->NCon,lnode->STime); | ~~~~ ^~~~~~~~~~~~ | %16lu SS5Mod_bandwidth.c:461:7: warning: 'snprintf' will always be truncated; specified size is 133, but format string expands to at least 134 [-Wformat-truncation] 461 | snprintf(buf,133,"%64s\n%16u\n%16lu\n%16u\n%16u\n",lnode->Usr,lnode->LNCon,lnode->LBand,lnode->NCon,lnode->STime); | ^ 11 warnings generated. --- mod_bandwidth.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 --- SS5Mod_dump.o --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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:54:11: warning: 'snprintf' will always be truncated; specified size is 53, but format string expands to at least 54 [-Wformat-truncation] 54 | snprintf(buf,sizeof(buf),"%16lu\n%2u\n%16lu\n%5u\n%5u\n%1u\n%1u\n", lnode->DstAddr,lnode->Mask,lnode->DstPort, | ^ 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] 82 | 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] 82 | 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] 82 | 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] 82 | 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] 126 | 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] 126 | 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] 126 | 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] 216 | pid=(UINT)pthread_self(); | ^~~~~~~~~~~~~~~~~~~~ 9 warnings generated. --- mod_dump.so --- cc -O2 -pipe -fcommon -Wno-error=incompatible-function-pointer-types -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 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== 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=2026-03-13T05:27:40+0000' 'PKG_NOTE_ports_top_git_hash=26b198eb3ee3' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=4485bd8221c2' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' 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 Fri Mar 13 01:29:14 EDT 2026 build time: 00:01:38