* Package: mail-filter/gld-1.7-r4:0 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_glibc kernel_linux postgres * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking gld-1.7.tgz to /var/tmp/portage/mail-filter/gld-1.7-r4/work >>> Source unpacked in /var/tmp/portage/mail-filter/gld-1.7-r4/work >>> Preparing source in /var/tmp/portage/mail-filter/gld-1.7-r4/work/gld-1.7 ... * Applying gld-1.7-configure-strict-prototypes.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/mail-filter/gld-1.7-r4/work/gld-1.7 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-pgsql creating cache ./config.cache checking for gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler (x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0) works... yes checking whether the C compiler (x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0) is a cross-compiler... no checking whether we are using GNU C... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for sys/time.h... yes checking for syslog.h... yes checking for netdb.h... yes checking for working const... yes checking whether time.h and sys/time.h may both be included... yes checking for select... yes checking for socket... yes checking for inet_addr... yes checking for strstr... yes checking for fork... yes checking for accept... yes checking for wait... yes checking for shutdown... yes checking for gethostbyname... yes checking for bzero... yes checking for bcopy... yes checking for connect... yes checking for bind... yes checking for sendto... yes checking for gethostbyaddr... yes checking for getpeername... yes checking for setsockopt... yes checking for waitpid... yes checking for sscanf... yes checking for inet_aton... yes updating cache ./config.cache creating ./config.status creating Makefile >>> Source configured. >>> Compiling source in /var/tmp/portage/mail-filter/gld-1.7-r4/work/gld-1.7 ... make -j4 x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fno-diagnostics-color -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_NETDB_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SELECT=1 -DHAVE_STRSTR=1 -DHAVE_FORK=1 -DHAVE_ACCEPT=1 -DHAVE_WAIT=1 -DHAVE_SHUTDOWN=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_BZERO=1 -DHAVE_BCOPY=1 -DHAVE_CONNECT=1 -DHAVE_BIND=1 -DHAVE_SENDTO=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_GETPEERNAME=1 -DHAVE_SETSOCKOPT=1 -DHAVE_WAITPID=1 -DHAVE_SSCANF=1 -Wall -c cnf.c x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fno-diagnostics-color -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_NETDB_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SELECT=1 -DHAVE_STRSTR=1 -DHAVE_FORK=1 -DHAVE_ACCEPT=1 -DHAVE_WAIT=1 -DHAVE_SHUTDOWN=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_BZERO=1 -DHAVE_BCOPY=1 -DHAVE_CONNECT=1 -DHAVE_BIND=1 -DHAVE_SENDTO=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_GETPEERNAME=1 -DHAVE_SETSOCKOPT=1 -DHAVE_WAITPID=1 -DHAVE_SSCANF=1 -Wall -c server.c x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fno-diagnostics-color -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_NETDB_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SELECT=1 -DHAVE_STRSTR=1 -DHAVE_FORK=1 -DHAVE_ACCEPT=1 -DHAVE_WAIT=1 -DHAVE_SHUTDOWN=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_BZERO=1 -DHAVE_BCOPY=1 -DHAVE_CONNECT=1 -DHAVE_BIND=1 -DHAVE_SENDTO=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_GETPEERNAME=1 -DHAVE_SETSOCKOPT=1 -DHAVE_WAITPID=1 -DHAVE_SSCANF=1 -g -Wall -I/usr/local/include -I/usr/local/include/postgresql -D_DB_PGSQL_ -Wall -c sql.c x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fno-diagnostics-color -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_NETDB_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SELECT=1 -DHAVE_STRSTR=1 -DHAVE_FORK=1 -DHAVE_ACCEPT=1 -DHAVE_WAIT=1 -DHAVE_SHUTDOWN=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_BZERO=1 -DHAVE_BCOPY=1 -DHAVE_CONNECT=1 -DHAVE_BIND=1 -DHAVE_SENDTO=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_GETPEERNAME=1 -DHAVE_SETSOCKOPT=1 -DHAVE_WAITPID=1 -DHAVE_SSCANF=1 -Wall -c sockets.c sockets.c: In function ‘ReadSocket’: sockets.c:141:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 141 | if(s<0) return(S_SOCK_ERR); | ^~ sockets.c:143:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 143 | timeout.tv_sec=tout; | ^~~~~~~ sockets.c: In function ‘ReadUdpData’: sockets.c:494:68: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness [-Wpointer-sign] 494 | nbytes=recvfrom(s,buffer,maxsize,0,(struct sockaddr *)0,(int *)0); | ^~~~~~~~ | | | int * In file included from /usr/include/sys/socket.h:343, from sockets.h:17, from sockets.c:31: /usr/include/bits/socket2.h:62:56: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ sockets.c: In function ‘CloseSocket’: sockets.c:518:30: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare] 518 | if ( (s && close(s)) < 0 ) return(S_CLOS_ERR); | ^ sockets.c: In function ‘GetPeerIp’: sockets.c:643:48: error: passing argument 3 of ‘getpeername’ from incompatible pointer type [-Wincompatible-pointer-types] 643 | if (getpeername(sock,(struct sockaddr *)&from, &foo) == 0) | ^~~~ | | | size_t * {aka long unsigned int *} /usr/include/sys/socket.h:131:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsigned int *’} 131 | socklen_t *__restrict __len) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ server.c: In function ‘HandleChild’: server.c:197:6: warning: variable ‘ts’ set but not used [-Wunused-but-set-variable] 197 | long ts; | ^~ sockets.c: In function ‘WaitTcpServer’: sockets.c:726:54: error: passing argument 3 of ‘accept’ from incompatible pointer type [-Wincompatible-pointer-types] 726 | return(accept(serv.sd,(struct sockaddr *)&(serv.sin),&foo)); | ^~~~ | | | size_t * {aka long unsigned int *} /usr/include/sys/socket.h:307:42: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsigned int *’} 307 | socklen_t *__restrict __addr_len); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ server.c: In function ‘MyDaemon’: server.c:391:20: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 391 | if(!nochdir) (void)chdir("/"); | ^~~~~~~~~~ make: *** [Makefile:8: sockets.o] Error 1 make: *** Waiting for unfinished jobs.... server.c: In function ‘HandleChild’: server.c:224:84: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 2010 [-Wformat-truncation=] 224 | f(buff,sizeof(buff)-1,"Rejected New incoming connexion from %s (%s)\n",buff,ip); | ^~ ~~~~ In file included from /usr/include/stdio.h:964, from gld.h:1, from server.c:1: In function ‘snprintf’, inlined from ‘HandleChild’ at server.c:224:3: /usr/include/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output 42 or more bytes (assuming 2089) into a destination of size 2047 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ /usr/include/bits/stdio2.h:54:10: warning: ‘__builtin___snprintf_chk’ argument 6 overlaps destination object ‘buff’ [-Wrestrict] server.c: In function ‘HandleChild’: server.c:191:6: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here 191 | char buff[BLEN]; | ^~~~ * ERROR: mail-filter/gld-1.7-r4::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=mail-filter/gld-1.7-r4::gentoo'`, * the complete build log and the output of `emerge -pqv '=mail-filter/gld-1.7-r4::gentoo'`. * The complete build log is located at '/var/log/portage/mail-filter:gld-1.7-r4:20231204-152837.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/mail-filter/gld-1.7-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/mail-filter/gld-1.7-r4/temp/environment'. * Working directory: '/var/tmp/portage/mail-filter/gld-1.7-r4/work/gld-1.7' * S: '/var/tmp/portage/mail-filter/gld-1.7-r4/work/gld-1.7'