* Package: net-analyzer/tptest-3.1.7-r2 * Repository: gentoo * Maintainer: netmon@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking tptest-3.1.7.tar.gz to /var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work >>> Source unpacked in /var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work >>> Preparing source in /var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7 ... * Applying tptest-3.1.7-getstatsfromlinevuln.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7 ... make -j1 -C apps/unix/client CC=x86_64-gentoo-linux-musl-gcc 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' make: Entering directory '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7/apps/unix/client' cp -f ../../../os-dep/unix/tpio_unix.c . x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o tpio_unix.o tpio_unix.c tpio_unix.c: In function ‘ConsumeUDPData’: tpio_unix.c:228:30: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness [-Wpointer-sign] 228 | 0, (SOCKADDR *)&fromAdr, &fromLen); | ^~~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:395:84: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 395 | void *__restrict, size_t, int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:320:29: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness [-Wpointer-sign] 320 | 0, (SOCKADDR *)&fromAdr, &fromLen); | ^~~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:395:84: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 395 | void *__restrict, size_t, int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:180:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 180 | int ret; | ^~~ tpio_unix.c: In function ‘AcceptClient’: tpio_unix.c:497:54: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] 497 | s = accept(s, (SOCKADDR *)&clientSa, &saLen); | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:386:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 386 | int accept (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:532:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 532 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:538:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 538 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c: In function ‘SendCtrlData’: tpio_unix.c:758:9: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] 758 | char * p; | ^ tpio_unix.c: In function ‘InitUDP’: tpio_unix.c:970:64: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 970 | if( getsockname( w->udpRecvSock, (struct sockaddr *)(&rcvSa), &saLen ) != 0 ) { | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:992:64: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 992 | if( getsockname( w->udpSendSock, (struct sockaddr *)(&rcvSa), &saLen ) != 0 ) { | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1010:29: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1010 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1018:29: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1018 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c: In function ‘InitTCPSock’: tpio_unix.c:1103:57: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 1103 | if (getsockname(w->tcpCtrlSock, (SOCKADDR *)(&locSa), &saLen) == SOCKET_ERROR) | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1127:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1127 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1133:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1133 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1182:63: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 1182 | if (getsockname(w->tcpServerCtrlSock, (SOCKADDR *)(&locSa), &saLen) == SOCKET_ERROR) | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1221:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1221 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1227:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1227 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1243:63: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 1243 | ret = getsockname(w->tcpServerDataSock, (SOCKADDR *)&locSa, &saLen); | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1057:16: warning: variable ‘ling’ set but not used [-Wunused-but-set-variable] 1057 | struct linger ling; | ^~~~ tpio_unix.c: In function ‘ConsumeCtrlData’: tpio_unix.c:826:4: warning: ‘strncpy’ output may be truncated copying 511 bytes from a string of length 4095 [-Wstringop-truncation] 826 | strncpy(engp->ctrlMessage, w->replyBuf, REPLYBUFSIZE-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cp -f ../../../engine/tpengine.c . x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o tpengine.o tpengine.c tpengine.c: In function ‘DoServerUDPSend’: tpengine.c:1073:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] 1073 | int res; | ^~~ tpengine.c: In function ‘DoServerUDPRecv’: tpengine.c:1254:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] 1254 | int res; | ^~~ tpengine.c: In function ‘AddServerToList.part.0’: tpengine.c:1784:3: warning: ‘strncpy’ output may be truncated copying 40 bytes from a string of length 79 [-Wstringop-truncation] 1784 | strncpy(engp->serverInfoList[engp->numServers], tBuf, MAX_SERVER_INFO); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cp -f ../../../engine/tpcommon.c . x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o tpcommon.o tpcommon.c x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o client.o client.c client.c: In function ‘main’: client.c:113:10: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 113 | double tmp; | ^~~ client.c:426:5: warning: ‘selectedMode’ may be used uninitialized in this function [-Wmaybe-uninitialized] 426 | ReportResults(selectedMode, engp, &starttime, &stoptime); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cp -f ../../../engine/tpclient.c . x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o tpclient.o tpclient.c tpclient.c: In function ‘AdvanceTest’: tpclient.c:456:48: warning: ‘msRecv’ may be used uninitialized in this function [-Wmaybe-uninitialized] 456 | ((float)(engp->tcpBytes) * (20000.0 / (float)msRecv)) | ^~~~~~~~~~~~~ tpclient.c:489:31: warning: ‘BytesPerSecondRecv’ may be used uninitialized in this function [-Wmaybe-uninitialized] 489 | LastBytesPerSecondRecv = BytesPerSecondRecv; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o getopt.o getopt.c x86_64-gentoo-linux-musl-gcc -Wl,-O1 -Wl,--as-needed -o tptestclient tpio_unix.o tpengine.o tpcommon.o client.o tpclient.o getopt.o make: Leaving directory '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7/apps/unix/client' make -j1 -C apps/unix/server CC=x86_64-gentoo-linux-musl-gcc 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' make: Entering directory '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7/apps/unix/server' cp -f ../../../os-dep/unix/tpio_unix.c . x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o tpio_unix.o tpio_unix.c tpio_unix.c: In function ‘ConsumeUDPData’: tpio_unix.c:228:30: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness [-Wpointer-sign] 228 | 0, (SOCKADDR *)&fromAdr, &fromLen); | ^~~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:395:84: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 395 | void *__restrict, size_t, int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:320:29: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness [-Wpointer-sign] 320 | 0, (SOCKADDR *)&fromAdr, &fromLen); | ^~~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:395:84: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 395 | void *__restrict, size_t, int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:180:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 180 | int ret; | ^~~ tpio_unix.c: In function ‘AcceptClient’: tpio_unix.c:497:54: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] 497 | s = accept(s, (SOCKADDR *)&clientSa, &saLen); | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:386:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 386 | int accept (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:532:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 532 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:538:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 538 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c: In function ‘SendCtrlData’: tpio_unix.c:758:9: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] 758 | char * p; | ^ tpio_unix.c: In function ‘InitUDP’: tpio_unix.c:970:64: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 970 | if( getsockname( w->udpRecvSock, (struct sockaddr *)(&rcvSa), &saLen ) != 0 ) { | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:992:64: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 992 | if( getsockname( w->udpSendSock, (struct sockaddr *)(&rcvSa), &saLen ) != 0 ) { | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1010:29: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1010 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1018:29: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1018 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c: In function ‘InitTCPSock’: tpio_unix.c:1103:57: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 1103 | if (getsockname(w->tcpCtrlSock, (SOCKADDR *)(&locSa), &saLen) == SOCKET_ERROR) | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1127:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1127 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1133:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1133 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1182:63: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 1182 | if (getsockname(w->tcpServerCtrlSock, (SOCKADDR *)(&locSa), &saLen) == SOCKET_ERROR) | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1221:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1221 | &engp->cur_socket_sndbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1227:30: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 1227 | &engp->cur_socket_rcvbuf, &optlen); | ^~~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:399:50: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 399 | int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1243:63: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 1243 | ret = getsockname(w->tcpServerDataSock, (SOCKADDR *)&locSa, &saLen); | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from tpio_unix.c:40: /usr/include/sys/socket.h:389:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 389 | int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ tpio_unix.c:1057:16: warning: variable ‘ling’ set but not used [-Wunused-but-set-variable] 1057 | struct linger ling; | ^~~~ tpio_unix.c: In function ‘ConsumeCtrlData’: tpio_unix.c:826:4: warning: ‘strncpy’ output may be truncated copying 511 bytes from a string of length 4095 [-Wstringop-truncation] 826 | strncpy(engp->ctrlMessage, w->replyBuf, REPLYBUFSIZE-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cp -f ../../../engine/tpengine.c . x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o tpengine.o tpengine.c tpengine.c: In function ‘DoServerUDPSend’: tpengine.c:1073:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] 1073 | int res; | ^~~ tpengine.c: In function ‘DoServerUDPRecv’: tpengine.c:1254:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] 1254 | int res; | ^~~ tpengine.c: In function ‘AddServerToList.part.0’: tpengine.c:1784:3: warning: ‘strncpy’ output may be truncated copying 40 bytes from a string of length 79 [-Wstringop-truncation] 1784 | strncpy(engp->serverInfoList[engp->numServers], tBuf, MAX_SERVER_INFO); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cp -f ../../../engine/tpcommon.c . x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o tpcommon.o tpcommon.c x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -g -DUNIX -DLINUX -I ../../../os-dep/unix -I ../../../engine -Wall -c -o server.o server.c server.c: In function ‘DoSession’: server.c:246:59: warning: pointer targets in passing argument 3 of ‘getpeername’ differ in signedness [-Wpointer-sign] 246 | if( getpeername( CtrlSock, (struct sockaddr *)(&LocSa), &SaLen ) != 0 ) { | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from server.c:63: /usr/include/sys/socket.h:390:52: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 390 | int getpeername (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ server.c:231:14: warning: variable ‘state’ set but not used [-Wunused-but-set-variable] 231 | int SaLen, state; | ^~~~~ server.c: In function ‘ServerMode’: server.c:496:7: warning: implicit declaration of function ‘open’; did you mean ‘popen’? [-Wimplicit-function-declaration] 496 | i = open( "/dev/tty", O_RDWR ); | ^~~~ | popen server.c:496:25: error: ‘O_RDWR’ undeclared (first use in this function) 496 | i = open( "/dev/tty", O_RDWR ); | ^~~~~~ server.c:496:25: note: each undeclared identifier is reported only once for each function it appears in server.c:522:63: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] 522 | NewSock = accept( CtrlSock, (struct sockaddr *)(&CtrlSa), &SaLen ); | ^~~~~~ | | | int * In file included from ../../../engine/tpengine.h:68, from server.c:63: /usr/include/sys/socket.h:386:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 386 | int accept (int, struct sockaddr *__restrict, socklen_t *__restrict); | ^ make: *** [: server.o] Error 1 make: Leaving directory '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7/apps/unix/server' * ERROR: net-analyzer/tptest-3.1.7-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/tptest-3.1.7-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/tptest-3.1.7-r2::gentoo'`. * The complete build log is located at '/var/log/portage/net-analyzer:tptest-3.1.7-r2:20200322-035651.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7' * S: '/var/tmp/portage/net-analyzer/tptest-3.1.7-r2/work/tptest-3.1.7'