Ticket #124 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

rrd_update.c build error 1.2.24,1.2.25,1.2.26

Reported by: human Owned by: oetiker
Priority: minor Milestone:
Component: rrd_update Version:
Keywords: rrd_update.c build error Cc:

Description

Note: 1.2.23 builds okay.

solaris10:/usr/local/rrdtool-1.2.24# make make all-recursive make[1]: Entering directory `/usr/local/rrdtool-1.2.24' Making all in src make[2]: Entering directory `/usr/local/rrdtool-1.2.24/src' if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.24/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2024 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -I/usr/include/freetype2 -I/usr/sfw/include -I/usr/sfw/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -MT rrd_update.lo -MD -MP -MF ".deps/rrd_update.Tpo" -c -o rrd_update.lo rrd_update.c; \ then mv -f ".deps/rrd_update.Tpo" ".deps/rrd_update.Plo"; else rm -f ".deps/rrd_update.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.24/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2024 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -I/usr/include/freetype2 -I/usr/sfw/include -I/usr/sfw/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -MT rrd_update.lo -MD -MP -MF .deps/rrd_update.Tpo -c rrd_update.c -fPIC -DPIC -o .libs/rrd_update.o

In file included from rrd_tool.h:15,

from rrd_update.c:9:

../rrd_config.h:312:1: warning: "isnan" redefined In file included from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/math.h:27,

from ../rrd_config.h:288, from rrd_tool.h:15, from rrd_update.c:9:

/usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/iso/math_c99.h:70:1: warning: this is the location of the previous definition rrd_update.c: In function `_rrd_update': rrd_update.c:433: error: `POSIX_MADV_RANDOM' undeclared (first use in this function) rrd_update.c:433: error: (Each undeclared identifier is reported only once rrd_update.c:433: error: for each function it appears in.) make[2]: * [rrd_update.lo] Error 1 make[2]: Leaving directory `/usr/local/rrdtool-1.2.24/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/rrdtool-1.2.24' make: * [all] Error 2

solaris10:/usr/local/rrdtool-1.2.24# make make all-recursive make[1]: Entering directory `/usr/local/rrdtool-1.2.24' Making all in src make[2]: Entering directory `/usr/local/rrdtool-1.2.24/src' if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.24/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2024 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -I/usr/include/freetype2 -I/usr/sfw/include -I/usr/sfw/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -MT rrd_update.lo -MD -MP -MF ".deps/rrd_update.Tpo" -c -o rrd_update.lo rrd_update.c; \ then mv -f ".deps/rrd_update.Tpo" ".deps/rrd_update.Plo"; else rm -f ".deps/rrd_update.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.24/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2024 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -I/usr/include/freetype2 -I/usr/sfw/include -I/usr/sfw/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -MT rrd_update.lo -MD -MP -MF .deps/rrd_update.Tpo -c rrd_update.c -fPIC -DPIC -o .libs/rrd_update.o

In file included from rrd_tool.h:15,

from rrd_update.c:9:

../rrd_config.h:312:1: warning: "isnan" redefined In file included from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/math.h:27,

from ../rrd_config.h:288, from rrd_tool.h:15, from rrd_update.c:9:

/usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/iso/math_c99.h:70:1: warning: this is the location of the previous definition rrd_update.c: In function `_rrd_update': rrd_update.c:433: error: `POSIX_MADV_RANDOM' undeclared (first use in this function) rrd_update.c:433: error: (Each undeclared identifier is reported only once rrd_update.c:433: error: for each function it appears in.) make[2]: * [rrd_update.lo] Error 1 make[2]: Leaving directory `/usr/local/rrdtool-1.2.24/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/rrdtool-1.2.24' make: * [all] Error 2

solaris10:/usr/local/rrdtool-1.2.26# make make all-recursive make[1]: Entering directory `/usr/local/rrdtool-1.2.26' Making all in src make[2]: Entering directory `/usr/local/rrdtool-1.2.26/src' if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.26/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2026 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -I/usr/include/freetype2 -I/usr/sfw/include -I/usr/sfw/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -MT rrd_update.lo -MD -MP -MF ".deps/rrd_update.Tpo" -c -o rrd_update.lo rrd_update.c; \ then mv -f ".deps/rrd_update.Tpo" ".deps/rrd_update.Plo"; else rm -f ".deps/rrd_update.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.26/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2026 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -I/usr/include/freetype2 -I/usr/sfw/include -I/usr/sfw/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -MT rrd_update.lo -MD -MP -MF .deps/rrd_update.Tpo -c rrd_update.c -fPIC -DPIC -o .libs/rrd_update.o

In file included from rrd_tool.h:15,

from rrd_update.c:9:

../rrd_config.h:312:1: warning: "isnan" redefined In file included from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/math.h:27,

from ../rrd_config.h:288, from rrd_tool.h:15, from rrd_update.c:9:

/usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/iso/math_c99.h:70:1: warning: this is the location of the previous definition rrd_update.c: In function `_rrd_update': rrd_update.c:433: error: `POSIX_MADV_RANDOM' undeclared (first use in this function) rrd_update.c:433: error: (Each undeclared identifier is reported only once rrd_update.c:433: error: for each function it appears in.) make[2]: * [rrd_update.lo] Error 1 make[2]: Leaving directory `/usr/local/rrdtool-1.2.26/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/rrdtool-1.2.26' make: * [all] Error 2

Change History

comment:1 Changed 4 years ago by oetiker

  • Status changed from new to closed
  • Resolution set to fixed

Please try patch r1242 cheers tobi

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.