Bug#518844: netsend: FTBFS: 'LONG_MAX' undeclared

2009-07-28 Thread Chris Lamb
tags 518844 + patch
thanks

Patch attached.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org
   `-
diff -urNd netsend-0.0~svnr250.orig/proto_udplite_recv.c 
netsend-0.0~svnr250/proto_udplite_recv.c
--- netsend-0.0~svnr250.orig/proto_udplite_recv.c   2009-07-28 
14:36:49.0 +0200
+++ netsend-0.0~svnr250/proto_udplite_recv.c2009-07-28 14:38:30.0 
+0200
@@ -22,6 +22,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
diff -urNd netsend-0.0~svnr250.orig/proto_udplite_trans.c 
netsend-0.0~svnr250/proto_udplite_trans.c
--- netsend-0.0~svnr250.orig/proto_udplite_trans.c  2009-07-28 
14:36:49.0 +0200
+++ netsend-0.0~svnr250/proto_udplite_trans.c   2009-07-28 14:38:14.0 
+0200
@@ -24,6 +24,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 


signature.asc
Description: PGP signature


Bug#518844: netsend: FTBFS: 'LONG_MAX' undeclared

2009-03-09 Thread Daniel Schepler
On Monday 09 March 2009 00:35:39 Martin Peylo wrote:
> Hi Daniel,
>
> before I start hunting down the cause for that bug, please supply me
> with the output of
> cc --version
> and
> dpkg -s libc6-dev
> using the exact same configuration of when the fault occurred. Also
> the architecture of your machine could of interest (`uname -a`). What
> Debian version is used (`cat /etc/debian-version`)?
>
> 'LONG_MAX' should be defined in limits.h, for some reason it's not
> there anymore (or not available at compile time).
>
> As soon as I got the information from you, I will first try to
> reproduce the bug, then investigate the cause why LONG_MAX is not
> there anymore, then maybe try, if a new version of netsend fixed that,
> if the cause lies there - and if all that did not work, inform
> upstream.
>
> Feel free to directly send me a complete log of the configure and
> build process. Maybe I am able to extract some useful information from
> there.
>
> Thank you,
> Martin

I just reproduced it in a vanilla up-to-date pbuilder sid chroot, which has:
gcc --version is "gcc (Debian 4.3.3-5) 4.3.3"
libc6-dev is version 2.9-4
/etc/debian_version is "squeeze/sid"
uname -a is "Linux frobnitz 2.6.26-1-amd64 #1 SMP Wed Jan 14 17:02:29 UTC 2009 
x86_64 GNU/Linux"

Out of these, I think the glibc version is probably the most relevant.  Most 
likely, some system header previously included limits.h indirectly but now 
doesn't.  In a quick test, it appears that #include  does define 
LONG_MAX.

The full pbuilder build log is attached.
-- 
Daniel

W: /root/.pbuilderrc does not exist
I: using fakeroot in build.
Current time: Mon Mar  9 01:27:04 PDT 2009
pbuilder-time-stamp: 1236587224
Building the build Environment
 -> extracting base tarball [/var/cache/pbuilder/base.tgz]
 -> creating local configuration
 -> copying local configuration
 -> mounting /proc filesystem
 -> mounting /dev/pts filesystem
 -> policy-rc.d already exists
Obtaining the cached apt archive contents
Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team 
Description: Dummy package to satisfy dependencies with aptitude - created by 
pbuilder
 This package was created automatically by pbuilder and should
Depends: debhelper (>= 5), linux-libc-dev | linux-kernel-headers, perl
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in 
`/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Reading package lists...
Building dependency tree...
Reading state information...
aptitude is already the newest version.
The following packages were automatically installed and are no longer required:
  g++-4.2 libcwidget1 libstdc++6-4.2-dev ucf lzma-alone perl-doc
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Selecting previously deselected package pbuilder-satisfydepends-dummy.
(Reading database ... 12333 files and directories currently installed.)
Unpacking pbuilder-satisfydepends-dummy (from 
.../pbuilder-satisfydepends-dummy.deb) ...
dpkg: dependency problems prevent configuration of 
pbuilder-satisfydepends-dummy:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 5); however:
  Package debhelper is not installed.
dpkg: error processing pbuilder-satisfydepends-dummy (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pbuilder-satisfydepends-dummy
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
The following NEW packages will be installed:
  bsdmainutils{a} debhelper{a} file{a} gettext{a} gettext-base{a} 
  groff-base{a} html2text{a} intltool-debian{a} libcroco3{a} 
  libglib2.0-0{a} libmagic1{a} libpcre3{a} libxml2{a} man-db{a} 
  po-debconf{a} 
The following packages will be REMOVED:
  g++-4.2{u} libcwidget1{u} libstdc++6-4.2-dev{u} lzma-alone{u} perl-doc{u} 
  ucf{u} 
The following partially installed packages will be configured:
  pbuilder-satisfydepends-dummy 
0 packages upgraded, 15 newly installed, 6 to remove and 0 not upgraded.
Need to get 0B/8683kB of archives. After unpacking 6387kB will be freed.
Writing extended state information...
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously deselected package libmagic1.
(Reading database ... 12333 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_4.26-2_amd64.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../archives/file_4.26-2_amd64.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-13_amd64.deb) ...
Selecting previously deselected package libpcre3.
Unpacking libpcre3 (from .../libpcre3_7.8-2_amd64.deb) ...
Selecting previously deselected package

Bug#518844: netsend: FTBFS: 'LONG_MAX' undeclared

2009-03-09 Thread Martin Peylo
Hi Daniel,

before I start hunting down the cause for that bug, please supply me
with the output of
cc --version
and
dpkg -s libc6-dev
using the exact same configuration of when the fault occurred. Also
the architecture of your machine could of interest (`uname -a`). What
Debian version is used (`cat /etc/debian-version`)?

'LONG_MAX' should be defined in limits.h, for some reason it's not
there anymore (or not available at compile time).

As soon as I got the information from you, I will first try to
reproduce the bug, then investigate the cause why LONG_MAX is not
there anymore, then maybe try, if a new version of netsend fixed that,
if the cause lies there - and if all that did not work, inform
upstream.

Feel free to directly send me a complete log of the configure and
build process. Maybe I am able to extract some useful information from
there.

Thank you,
Martin



On Mon, Mar 9, 2009 at 1:33 AM, Daniel Schepler
 wrote:
> Package: netsend
> Version: 0.0~svnr250-1
> Severity: serious
>
> From my pbuilder build log:
>
> ...
> cc -Wall -W -Wwrite-strings -Wsign-compare -Wpointer-arith -Wcast-qual 
> -Wcast-align -Wstrict-prototypes
> -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wformat=2 -Wall -g 
> -O2 --param max-inline-
> insns-single=400 -c  proto_udplite_trans.c -o proto_udplite_trans.o
> proto_udplite_trans.c: In function 'udplite_set_socketopts':
> proto_udplite_trans.c:52: error: 'LONG_MAX' undeclared (first use in this 
> function)
> proto_udplite_trans.c:52: error: (Each undeclared identifier is reported only 
> once
> proto_udplite_trans.c:52: error: for each function it appears in.)
> make[1]: *** [proto_udplite_trans.o] Error 1
> make[1]: Leaving directory `/tmp/buildd/netsend-0.0~svnr250'
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
> --
> Daniel Schepler



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#518844: netsend: FTBFS: 'LONG_MAX' undeclared

2009-03-08 Thread Daniel Schepler
Package: netsend
Version: 0.0~svnr250-1
Severity: serious

From my pbuilder build log:

...
cc -Wall -W -Wwrite-strings -Wsign-compare -Wpointer-arith -Wcast-qual 
-Wcast-align -Wstrict-prototypes 
-Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wformat=2 -Wall -g -O2 
--param max-inline-
insns-single=400 -c  proto_udplite_trans.c -o proto_udplite_trans.o
proto_udplite_trans.c: In function 'udplite_set_socketopts':
proto_udplite_trans.c:52: error: 'LONG_MAX' undeclared (first use in this 
function)
proto_udplite_trans.c:52: error: (Each undeclared identifier is reported only 
once
proto_udplite_trans.c:52: error: for each function it appears in.)
make[1]: *** [proto_udplite_trans.o] Error 1
make[1]: Leaving directory `/tmp/buildd/netsend-0.0~svnr250'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
-- 
Daniel Schepler




--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org