Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 876945 Details for
Bug 919203
mail-filter/gld-1.7-r4 - sockets.c: error: passing argument 3 of getpeername from incompatible pointer type [-Wincompatible-pointer-types]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
mail-filter:gld-1.7-r4:20231204-152837.log
mail-filter:gld-1.7-r4:20231204-152837.log (text/plain), 9.80 KB, created by
Toralf Förster
on 2023-12-04 20:08:33 UTC
(
hide
)
Description:
mail-filter:gld-1.7-r4:20231204-152837.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2023-12-04 20:08:33 UTC
Size:
9.80 KB
patch
obsolete
> * 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' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 919203
:
876939
|
876940
|
876941
|
876942
|
876943
|
876944
| 876945 |
876946
|
876947