pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43076: net/nload does not compile



>Number:         43076
>Category:       pkg
>Synopsis:       net/nload does not compile
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 30 02:45:00 +0000 2010
>Originator:     Stefan
>Release:        none
>Organization:
>Environment:
Linux vaio 2.6.29.6 #2 Mon Dec 7 17:31:46 CST 2009 i686 Intel(R) Pentium(R) 4 
CPU 2.80GHz GenuineIntel GNU/Linux
>Description:
net/nload from pkgsrc-2009Q4 (with cvs update) does not compile on slackware 
13.0.

Don't know if it compiles on NetBSD.
>How-To-Repeat:
bmake
>Fix:
Problem #1:

g++ -DHAVE_CONFIG_H -I. -I..    -I/usr/include/ncurses  -Wno-error -O2 
-march=pentium4 -I/usr/include/ncurses -O2 -march=pentium4 -Wall -MT device.o 
-MD -MP -MF .deps/device.Tpo -c -o device.o device.cpp
device.cpp: In member function 'long long int Device::fixOverflow(long long 
int, long long int)':
device.cpp:156: error: 'UINT_MAX' was not declared in this scope
device.cpp:159: error: 'UINT_MAX' was not declared in this scope
device.cpp:164: error: 'UINT_MAX' was not declared in this scope


fix: add to device.cpp

--- snip ----------------------------------------------------------------------
#include <limits.h>
--- snip ----------------------------------------------------------------------


Problem #2 (after problem 1 is fixed):

main.cpp: In function 'int main(int, char**)':
main.cpp:128: error: 'strcmp' was not declared in this scope

fix: add to device.cpp

--- snip ----------------------------------------------------------------------
#include <string.h>
--- snip ----------------------------------------------------------------------


should #include surounded by #ifdef HAVE_STRING_H and #ifdef HAVE_LIMITS_H, 
respectively?



Home | Main Index | Thread Index | Old Index