Re: [pmacct-discussion] Errors in compilation
Hi Slava, On Mon, Jul 16, 2012 at 10:13:30PM +0300, Viacheslav Dubrovskyi wrote: I still can not upgrade a package due to this error. The error occurs when enable --enable-ipv6. I do not want to disable ipv6. Maybe help me find the problem? Reproduced on various versions of the compiler. I can give you access to reproduce the problem. Sure, contact me privately. Cheers, Paolo ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
Re: [pmacct-discussion] Errors in compilation
24.04.2012 20:47, Paolo Lucente пишет: Hi Slava, I tried to compile myself on a few systems with different gcc releases and your rather long commandline did work for me. Looking more closely i see that your compiler seems to be over-peaky failing on this: In function 'memcpy', inlined from 'bgp_srcdst_lookup' at bgp.c:2121:21: /usr/include/bits/string3.h:52:3: error: call to __builtin___memcpy_chk will always overflow destination buffer Well it's not true: copying 16 bytes (the length of an IPv6 address in a sin6_addr structure (which is meant to hold IPv6 addresses) will not overflow anything. I still can not upgrade a package due to this error. The error occurs when enable --enable-ipv6. I do not want to disable ipv6. Maybe help me find the problem? Reproduced on various versions of the compiler. I can give you access to reproduce the problem. -- WBR, Viacheslav Dubrovskyi smime.p7s Description: Криптографическая подпись S/MIME ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
[pmacct-discussion] Errors in compilation
Hi. Have the problem with compilation. ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext --with-pgsql-includes=/usr/include/pgsql --enable-64bit --enable-threads --enable-ulog --enable-ipv6 --enable-v4-mapped --enable-mysql --disable-pgsql --disable-sqlite3 ...skip... PLATFORM . : i686 OS ... : Linux 2.6.32-ovz-el-alt60 (localhost.localdomain) COMPILER . : gcc CFLAGS ... : -O2 -pipe -Wall -g -O2 -march=i586 -mtune=i686 -DENABLE_ULOG LIBS . : -lmysqlclient -lpcap -ldl -lm -lz -lpthread -lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin -Lsfprobe_plugin/ -lbgp -Lbgp/ -ltee_plugin -Ltee_plugin/ -lisis -Lisis/ LDFLAGS .. : -Wl,--export-dynamic ...skip... gmake[2]: Entering directory `/usr/src/RPM/BUILD/pmacct-0.14.0/src/bgp' gcc -DPACKAGE=\pmacctd\ -DVERSION=\0.14.0\ -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_LIBMYSQLCLIENT=1 -DWITH_MYSQL=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DHAVE_64BIT_COUNTERS=1 -DENABLE_THREADS=1 -DRETSIGTYPE=void -DHAVE_STRLCPY=1 -DHAVE_VSNPRINTF=1 -I. -I.. -O2 -pipe -Wall -g -O2 -march=i586 -mtune=i686 -DENABLE_ULOG-c -o bgp.o bgp.c bgp.c: In function 'skinny_bgp_daemon': bgp.c:113:5: warning: implicit declaration of function 'addr_to_sa' bgp.c:165:5: warning: implicit declaration of function 'sa_to_addr' bgp.c:166:5: warning: implicit declaration of function 'addr_to_str' bgp.c:224:28: warning: pointer targets in passing argument 3 of 'accept' differ in signedness /usr/include/sys/socket.h:214:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' bgp.c:228:39: warning: pointer targets in passing argument 3 of 'accept' differ in signedness /usr/include/sys/socket.h:214:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' bgp.c:401:41: warning: unused variable 'cap_type' bgp.c:62:20: warning: unused variable 'multi_req6' bgp.c: In function 'bgp_update_msg': bgp.c:701:16: warning: pointer targets in assignment differ in signedness bgp.c:726:14: warning: pointer targets in assignment differ in signedness bgp.c:665:20: warning: unused variable 'endp' bgp.c:665:11: warning: unused variable 'startp' bgp.c: In function 'bgp_attr_parse_ecommunity': bgp.c:908:35: warning: pointer targets in passing argument 1 of 'ecommunity_parse' differ in signedness bgp_ecommunity.h:82:24: note: expected 'u_int8_t *' but argument is of type 'char *' bgp.c: In function 'bgp_attr_parse_mp_reach': bgp.c:1002:19: warning: pointer targets in assignment differ in signedness bgp.c: In function 'bgp_attr_parse_mp_unreach': bgp.c:1027:21: warning: pointer targets in assignment differ in signedness bgp.c: In function 'bgp_nlri_parse': bgp.c:1091:4: warning: suggest parentheses around '' within '||' bgp.c:1134:4: warning: pointer targets in passing argument 7 of 'bgp_process_update' differ in signedness bgp.h:159:9: note: expected 'char *' but argument is of type 'u_char *' bgp.c:1136:4: warning: pointer targets in passing argument 7 of 'bgp_process_withdraw' differ in signedness bgp.h:160:9: note: expected 'char *' but argument is of type 'u_char *' bgp.c: In function 'bgp_process_update': bgp.c:1254:2: warning: pointer targets in passing argument 1 of 'bgp_rd2str' differ in signedness bgp.h:162:9: note: expected 'char *' but argument is of type 'u_char *' bgp.c:1233:20: warning: unused variable 'rda4' bgp.c:1232:20: warning: unused variable 'rda' bgp.c:1231:20: warning: unused variable 'rdi' bgp.c: In function 'bgp_process_withdraw': bgp.c:1304:6: warning: pointer targets in passing argument 1 of 'bgp_rd2str' differ in signedness bgp.h:162:9: note: expected 'char *' but argument is of type 'u_char *' bgp.c: In function 'bgp_str2rd': bgp.c:1368:13: warning: unused variable 'tmp16' bgp.c: In function 'attrhash_init': bgp.c:1598:22: warning: passing argument 2 of 'hash_create' from incompatible pointer type bgp_hash.h:68:18: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(void *, void *)' bgp.c: In function 'bgp_peer_init': bgp.c:1680:10: warning: unused variable 'safi' bgp.c:1679:9: warning: unused variable 'afi' bgp.c: In function 'bgp_peer_close': bgp.c:1692:10: warning: unused variable 'safi' bgp.c:1691:9: warning: unused variable 'afi' bgp.c: In function 'bgp_srcdst_lookup': bgp.c:1920:5: warning: implicit declaration of function 'sa_addr_cmp' bgp.c: In function