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 <limits.h> 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 <pbuilder-ma...@lists.alioth.debian.org>
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 libglib2.0-0.
Unpacking libglib2.0-0 (from .../libglib2.0-0_2.18.4-2_amd64.deb) ...
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.7.3.dfsg-1_amd64.deb) ...
Selecting previously deselected package libcroco3.
Unpacking libcroco3 (from .../libcroco3_0.6.1-2_amd64.deb) ...
Selecting previously deselected package gettext-base.
Unpacking gettext-base (from .../gettext-base_0.17-6_amd64.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.17-6_amd64.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) 
...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.15_all.deb) ...
Selecting previously deselected package groff-base.
Unpacking groff-base (from .../groff-base_1.18.1.1-21_amd64.deb) ...
Selecting previously deselected package bsdmainutils.
Unpacking bsdmainutils (from .../bsdmainutils_6.1.10_amd64.deb) ...
Selecting previously deselected package man-db.
Unpacking man-db (from .../man-db_2.5.4-1_amd64.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_7.2.4_all.deb) ...
(Reading database ... 13516 files and directories currently installed.)
Removing libcwidget1 ...
Removing lzma-alone ...
Removing perl-doc ...
Removing `diversion of /usr/bin/perldoc to /usr/bin/perldoc.stub by perl-doc'
Removing ucf ...
Removing g++-4.2 ...
Removing libstdc++6-4.2-dev ...
Setting up libmagic1 (4.26-2) ...
Setting up file (4.26-2) ...
Setting up html2text (1.3.2a-13) ...
Setting up libpcre3 (7.8-2) ...
Setting up libglib2.0-0 (2.18.4-2) ...
Setting up libxml2 (2.7.3.dfsg-1) ...
Setting up libcroco3 (0.6.1-2) ...
Setting up gettext-base (0.17-6) ...
Setting up gettext (0.17-6) ...
Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.15) ...
Setting up groff-base (1.18.1.1-21) ...
Setting up bsdmainutils (6.1.10) ...
Setting up man-db (2.5.4-1) ...
Building database of manual pages ...
Setting up debhelper (7.2.4) ...
Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
 -> Finished parsing the build-deps
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  fakeroot
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/117kB of archives.
After this operation, 467kB of additional disk space will be used.
Selecting previously deselected package fakeroot.
(Reading database ... 11988 files and directories currently installed.)
Unpacking fakeroot (from .../fakeroot_1.12.2_amd64.deb) ...
Processing triggers for man-db ...
Setting up fakeroot (1.12.2) ...
Copying back the cached apt archive contents
Copying source file
    -> copying [fail/n/netsend/netsend_0.0~svnr250-1.dsc]
    -> copying [fail/n/netsend/netsend_0.0~svnr250.orig.tar.gz]
    -> copying [fail/n/netsend/netsend_0.0~svnr250-1.diff.gz]
Extracting source
gpg: new configuration file `/tmp/buildd/.gnupg/gpg.conf' created
gpg: WARNING: options in `/tmp/buildd/.gnupg/gpg.conf' are not yet active 
during this run
gpg: Signature made Mon May 12 17:58:25 2008 UTC using DSA key ID 7A786561
gpg: Can't check signature: public key not found
dpkg-source: extracting netsend in netsend-0.0~svnr250
dpkg-source: info: unpacking netsend_0.0~svnr250.orig.tar.gz
dpkg-source: info: applying netsend_0.0~svnr250-1.diff.gz
 -> Building the package
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package netsend
dpkg-buildpackage: source version 0.0~svnr250-1
dpkg-buildpackage: source changed by Martin Peylo <deb...@izac.de>
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
/usr/bin/make distclean
make[1]: Entering directory `/tmp/buildd/netsend-0.0~svnr250'
make[1]: Leaving directory `/tmp/buildd/netsend-0.0~svnr250'
dh_clean
 dpkg-source -b netsend-0.0~svnr250
dpkg-source: info: using source format `1.0'
dpkg-source: info: building netsend using existing 
netsend_0.0~svnr250.orig.tar.gz
dpkg-source: info: building netsend in netsend_0.0~svnr250-1.diff.gz
dpkg-source: info: building netsend in netsend_0.0~svnr250-1.dsc
 debian/rules build
dh_testdir
# Actually --prefix is ignored so far (svn rev 206)
./configure --prefix=/tmp/buildd/netsend-0.0~svnr250/debian/netsend/usr
*** configure-ng ***
checking for alloca... yes
checking for rdtscll... yes
checking for splice... yes
checking for TIPC support... yes


Configure picked following defaults, options and paths:
Please validate this values (at least it isn't my box ;-)

  Prefix:         /tmp/buildd/netsend-0.0~svnr250/debian/netsend/usr
  Debug:          no
  Compiler Flags: -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

dh_testdir
# This builds netsend
/usr/bin/make
make[1]: Entering directory `/tmp/buildd/netsend-0.0~svnr250'
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  
analyze.c -o analyze.o
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  
error.c -o error.o
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  file.c 
-o file.o
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  
getopt.c -o getopt.o
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  main.c 
-o main.o
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  net.c 
-o net.o
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_tipc.c -o proto_tipc.o
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_udp_recv.c -o proto_udp_recv.o
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  
receive.c -o receive.o
receive.c: In function 'tcp_set_md5sig_option':
receive.c:280: warning: comparison of distinct pointer types lacks a cast
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  
trans_common.c -o trans_common.o
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  
ns_hdr.c -o ns_hdr.o
ns_hdr.c: In function 'meta_exchange_snd':
ns_hdr.c:299: warning: 'flag_old' may be used uninitialized in this function
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  
xfuncs.c -o xfuncs.o
xfuncs.c: In function 'xgetaddrinfo':
xfuncs.c:60: warning: 'ai_socktype' may be used uninitialized in this function
xfuncs.c:60: warning: 'ai_protocol' may be used uninitialized in this function
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_tcp_trans.c -o proto_tcp_trans.o
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_udp_trans.c -o proto_udp_trans.o
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
pbuilder: Failed autobuilding of package
 -> Aborting with an error
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
 -> cleaning the build env 
    -> removing directory /build/vanilla-chroot/12585 and its subdirectories

Reply via email to