Ticket #133 (closed defect: worksforme)

Opened 4 years ago

Last modified 2 years ago

Applying r1242 and still got errors

Reported by: human Owned by: oetiker
Priority: major Milestone:
Component: misc Version:
Keywords: solaris 10 Cc:

Description

Trying compiling 1.2.26 on Solaris 10 shows errors. Found using r1242 to solve the problem but other problems apears:

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_tool.lo -MD -MP -MF ".deps/rrd_tool.Tpo" -c -o rrd_tool.lo rrd_tool.c; \

then mv -f ".deps/rrd_tool.Tpo" ".deps/rrd_tool.Plo"; else rm -f ".deps/rrd_tool.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_tool.lo -MD -MP -MF .deps/rrd_tool.Tpo -c rrd_tool.c -fPIC -DPIC -o .libs/rrd_tool.o

In file included from rrd_tool.h:15,

from rrd_tool.c:7:

../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_tool.c:7:

/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_tool.c: In function `main': rrd_tool.c:364: error: storage size of 'myusage' isn't known rrd_tool.c:375: warning: implicit declaration of function `getuid' rrd_tool.c:375: warning: nested extern declaration of `getuid' rrd_tool.c:382: warning: implicit declaration of function `chroot' rrd_tool.c:382: warning: nested extern declaration of `chroot' rrd_tool.c:400: warning: implicit declaration of function `chdir' rrd_tool.c:400: warning: nested extern declaration of `chdir' rrd_tool.c:425: warning: implicit declaration of function `getrusage' rrd_tool.c:425: warning: nested extern declaration of `getrusage' rrd_tool.c:425: error: `RUSAGE_SELF' undeclared (first use in this function) rrd_tool.c:425: error: (Each undeclared identifier is reported only once rrd_tool.c:425: error: for each function it appears in.) rrd_tool.c:364: warning: unused variable `myusage' rrd_tool.c: In function `HandleInputLine?': rrd_tool.c:499: warning: nested extern declaration of `chdir'

Don't really understand what close tickets 127 and 128 about trunk fixing the problem means, is it posible to explained in a simple way? Thnks.

Change History

comment:1 Changed 4 years ago by oetiker

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

Hi the errors you get would indicate that your gcc is probably not really in good shape. Try compiling with a recent gcc or the official sun compiler (Forte).

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.