Applied the proposed fix to upstream CVS (untested). On Wed, Apr 29, 2009 at 11:02:18PM +0200, Martin Michlmayr wrote: > Package: nethogs > Version: 0.7.0-1 > User: debian-...@lists.debian.org > Usertags: ftbfs-gcc-4.4 > Tags: patch > > Your package fails to build with GCC 4.4, which has cleaned up some more > C++ headers. You always have to #include headers directly and cannot > rely for things to be included indirectly. > > You can reproduce this problem with gcc-snapshot from unstable or > gcc-4.4 from experimental. > > > Automatic build of nethogs_0.7.0-1 on em64t by sbuild/amd64 0.53 > ... > > g++ -g -O2 -g -Wall -O2 -c inode2prog.cpp > > g++ -g -O2 -g -Wall -O2 -c conninode.cpp > > conninode.cpp: In function 'void addtoconninode(char*)': > > conninode.cpp:44: error: 'sscanf' was not declared in this scope > > conninode.cpp:47: error: 'stderr' was not declared in this scope > > conninode.cpp:47: error: 'fprintf' was not declared in this scope > > conninode.cpp:103: error: 'snprintf' was not declared in this scope > > conninode.cpp: In function 'int addprocinfo(const char*)': > > conninode.cpp:130: error: 'fopen' was not declared in this scope > > conninode.cpp:137: error: 'fgets' was not declared in this scope > > conninode.cpp:143: error: 'feof' was not declared in this scope > > conninode.cpp:145: error: 'fclose' was not declared in this scope > > make[1]: *** [conninode.o] Error 1 > > make[1]: Leaving directory `/build/tbm/nethogs-0.7.0' > > --- conninode.cpp~ 2009-04-29 21:00:19.000000000 +0000 > +++ conninode.cpp 2009-04-29 21:00:25.000000000 +0000 > @@ -1,5 +1,6 @@ > #include <netinet/in.h> > #include <map> > +#include <stdio.h> > #include <stdlib.h> > > #include "nethogs.h" > > -- > Martin Michlmayr > http://www.cyrius.com/ > > >
-- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org