Ticket #119 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

RRD 1.2.23 / AIX 5.3 / GCC 4.0

Reported by: human Owned by: oetiker
Priority: major Milestone:
Component: misc Version: 1.2.23
Keywords: compile aix Cc:

Description

Hi,

I'm getting this error below during the "make". I've research pngsize.c and looked at line 23. Changes are included which was previously reported as addressing this problem.

Please let me know if you need additinoal info.

Thanks - Scott

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.23/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2023 -D_THREAD_SAFE -I/usr/include/libart-2.0 -I/usr/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -DPIC -MT pngsize.lo -MD -MP -MF .deps/pngsize.Tpo -c pngsize.c -DPIC -o .libs/pngsize.o pngsize.c: In function 'PngSize?': pngsize.c:33: error: 'struct png_struct_def' has no member named 'jmpbuf' make: 1254-004 The error code from the last command is 1.

Stop. make: 1254-004 The error code from the last command is 1.

Stop. make: 1254-004 The error code from the last command is 2.

Stop.

Change History

comment:1 Changed 4 years ago by oetiker

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

Hi Reporter,

I have notes here that aix redefines the word jmpbuf ... within pngsize.c we try to counter that, but it may be that things work better if we don't depending on whether the redefinition is active for the png header file or not ... try removing

#ifdef jmpbuf
#undef jmpbuf
#endif

from pngsize.c

cheers tobi

comment:2 Changed 4 years ago by human

  • Status changed from closed to reopened
  • Resolution fixed deleted

After this suggestion, it still has issues. I'll keep checking this ticket for addtional suggestions

Thanks in advance - Scott

# make

make all-recursive

Making all in src

if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/rrdtool-1.2.23/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2023 -D_THREAD_SAFE -I/usr/include/libart-2.0 -I/usr/include/freetype2 -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -DPIC -MT pngsize.lo -MD -MP -MF ".deps/pngsize.Tpo" -c -o pngsize.lo pngsize.c; then mv -f ".deps/pngsize.Tpo" ".deps/pngsize.Plo"; else rm -f ".deps/pngsize.Tpo"; exit 1; fi

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

pngsize.c: In function 'PngSize?': pngsize.c:29: error: 'struct png_struct_def' has no member named 'jmpbuf' make: 1254-004 The error code from the last command is 1.

Stop. make: 1254-004 The error code from the last command is 1.

Stop. make: 1254-004 The error code from the last command is 2.

Stop.

comment:3 Changed 4 years ago by human

Hi Scott See http://oss.oetiker.ch/rrdtool-trac/ticket/122 for a solution. According to Tobi the fix will be in v1.2.25

hth Hajo

comment:4 Changed 4 years ago by oetiker

  • Status changed from reopened to closed
  • Resolution set to fixed
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.