Bug#623634: libnet-rawip-perl: miscalculates header checksums

Christoph Pleger Christoph.Pleger at cs.tu-dortmund.de
Wed Mar 26 08:07:40 UTC 2014


Hello,

> Besides that I see the following warning in the build log for -2:
>
> RawIP.xs: In function 'XS_Net__RawIP_timem':
> RawIP.xs:614:9: warning: format '%u' expects argument of type 'unsigned
> int', but argument 2 has type '__time_t' [-Wformat=]
>          RETVAL = newSVpvf("%u.%06u",tv.tv_sec,tv.tv_usec);
>          ^
> RawIP.xs:614:9: warning: format '%u' expects argument of type 'unsigned
> int', but argument 3 has type '__suseconds_t' [-Wformat=]

On my search in the web, if there was already some solution for 'my'
libnet-rawip-perl problem, I found two patches; these are attached. The
patch Net-RawIP-0.23-format.patch (from Redhat/Fedora) removes that format
problem; the patch nonreturn-in-nonvoid.patch (from OpenSuse) adds a
missing default:-part in a switch-statement.

Additionally, I attached a patch cc.patch for setting gcc-4.6 as compiler.
Of course, gcc-4.6 must be added to Build-Depends.

> BTW: I'm confused which package version built under which environment
> works or fails under which environment :)

libnet-rawip-perl_0.25-1+b2_amd64.deb works for me on a wheezy system. It
also works on a jessie system after downgrading some other packages.
libnet-rawip-perl_0.25-2_amd64.deb fails on a jessie system. Version
0.25-1+b2, rebuilt from package sources on a jessie system, also fails
there. But version 0.25-2, rebuilt from sources after adding the attached
patches and a Build-Depend on gcc-4.6, works.

Regards
  Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nonreturn-in-nonvoid.patch
Type: text/x-patch
Size: 280 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140326/f75245ba/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Net-RawIP-0.23-format.patch
Type: text/x-patch
Size: 436 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140326/f75245ba/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cc.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140326/f75245ba/attachment-0005.bin>


More information about the pkg-perl-maintainers mailing list