Skip Menu |

This queue is for tickets about the Socket-Netlink CPAN distribution.

Report information
The Basics
Id: 130049
Status: new
Priority: 0/
Queue: Socket-Netlink

People
Owner: Nobody in particular
Requestors: erez.geva.ext [...] siemens.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: warnings on build Socket-Netlink-0.05
Date: Thu, 11 Jul 2019 14:00:07 +0000
To: "bug-Socket-Netlink [...] rt.cpan.org" <bug-Socket-Netlink [...] rt.cpan.org>
From: "erez.geva.ext [...] siemens.com" <erez.geva.ext [...] siemens.com>
Hi. The warnings are on line 82 and line 196 lib/Socket/Netlink.xs:82:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] croak("Expected %d byte address", sizeof snl); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ Using Debian tool: # cpan2deb Socket::Netlink ... Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Socket-Netlink' version '0.05' dh_auto_build perl Build Building Socket-Netlink x86_64-linux-gnu-gcc -I/usr/lib/x86_64-linux-gnu/perl/5.28/CORE -DVERSION="0.05" -DXS_VERSION="0.05" -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fdebug-prefix-map=/tmp/Socket-Netlink-0.05=. -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -fdebug-prefix-map=/tmp/Socket-Netlink-0.05=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o lib/Socket/Netlink.o lib/Socket/Netlink.c lib/Socket/Netlink.xs: In function 'XS_Socket__Netlink_unpack_sockaddr_nl': lib/Socket/Netlink.xs:82:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] croak("Expected %d byte address", sizeof snl); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ lib/Socket/Netlink.xs: In function 'XS_Socket__Netlink_unpack_nlmsgerr': lib/Socket/Netlink.xs:196:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] croak("Expected %d bytes of message", sizeof(nlmsgerr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Socket/Netlink/Netlink.bs') x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-map=/tmp/Socket-Netlink-0.05=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/Socket/Netlink/Netlink.so lib/Socket/Netlink.o # cat /etc/debian_version 10.0 # perl -v This is perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi (with 61 registered patches, see perl -V for more detail) Copyright 1987-2018, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. # uname -a Linux 4eb793c47a84 4.4.0-148-generic #174~14.04.1-Ubuntu SMP Thu May 9 08:17:37 UTC 2019 x86_64 GNU/Linux # gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 8.3.0 (Debian 8.3.0-6)