Skip Menu |

This queue is for tickets about the Term-Gnuplot CPAN distribution.

Report information
The Basics
Id: 59672
Status: open
Priority: 0/
Queue: Term-Gnuplot

People
Owner: Nobody in particular
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: term-gnuplot doesn't compile against perl 5.12
$ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor ...Looking for libs, expect some warnings... Note (probably harmless): No library found for -lsocket Note (probably harmless): No library found for -llinuxvga Note (probably harmless): No library found for -ljmgraph Note (probably harmless): No library found for -lvesa Note (probably harmless): No library found for -lpdf ...Found libs: '-lX11 -lvga -lgd -lpng -ljpeg -lfreetype -lz' ...Found detected_PNGversion89 png_create_write_struct png_read_image (out of png_read_image detected_PNGversion89 png_create_write_struct) in png.h, keeping -lpng. trygd.h:1:16: error: gd.h: No such file or directory close pipe from `x86_64-mandriva-linux-gnu-gcc -E -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include trygd.h': at Makefile.PL line 65. ...Could not find gdImageCreate gdImageGif gdImageJpeg gdImageStringFT gdImageStringTTF gdImagePng in gd.h, removing -lgd. Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lsocket Note (probably harmless): No library found for -llinuxvga Note (probably harmless): No library found for -ljmgraph Note (probably harmless): No library found for -lvesa Note (probably harmless): No library found for -lpdf Writing Makefile for Term::Gnuplot::gnuterm Warning: Guessing NAME [pm_exec] from current directory name. Note (probably harmless): No library found for -lsocket Note (probably harmless): No library found for -llinuxvga Note (probably harmless): No library found for -ljmgraph Note (probably harmless): No library found for -lvesa Note (probably harmless): No library found for -lpdf Writing Makefile for Term::Gnuplot::plotx Writing Makefile for Term::Gnuplot $ make -j2 /usr/bin/perl5.12.0 /usr/lib/perl5/5.12.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.12.0/ExtUtils/typemap Gnuplot.xs > Gnuplot.xsc && mv Gnuplot.xsc Gnuplot.c cp GnuplotTerminals.pod blib/lib/Term/GnuplotTerminals.pod cp Gnuplot.pm blib/lib/Term/Gnuplot.pm Running Mkbootstrap for Term::Gnuplot () chmod 644 Gnuplot.bs cd ./gnuterm; make libgnuterm.a LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4" PREFIX="/usr" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/home/mandrake/rpm/BUILD/Term-Gnuplot-0.90380905/gnuterm' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. x86_64-mandriva-linux-gnu-gcc -c -I. -Iterm -Igd -I.. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.12.0/x86_64-linux-thread-multi/CORE" -DPM3D -DUSE_ULIG_FILLEDBOXES -DUSE_ACTIVE_EVENTS -DHAVE_LIBPNG -DRETSIGTYPE=void -DGPLT_X11_MODE -DPIPES -DX11 -DX11_DRIVER_DIR=\".\" -DEXENAME_X11=gnuplot_x11b -DEXENAME_PM=gplpmdrb -DCANT_ACCEPT_COMMANDS -DX11_FORCED_PATH -DHAVE_UNISTD_H -DHAVE_FLOAT_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_MATH_H -DHAVE_MALLOC_H -DHAVE_STDLIB_H -DHAVE_UNISTD_H -DHAVE_STRING_H -DHAVE_TERMIOS_H -DHAVE_VALUES_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_STAT_H -DHAVE_SYS_PARAM_H -DHAVE_TIME_H -DHAVE_MEMCPY -DHAVE_MEMSET -DHAVE_STRCHR -DHAVE_STRSTR -DHAVE_STRERROR -DANSI_C -DHAVE_STRNCASECMP -DHAVE_DIRENT_H term.c Please specify prototyping behavior for Gnuplot.xs (see perlxs manual) cp Gnuplot.bs blib/arch/auto/Term/Gnuplot/Gnuplot.bs chmod 644 blib/arch/auto/Term/Gnuplot/Gnuplot.bs x86_64-mandriva-linux-gnu-gcc -c -I./gnuterm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -DVERSION=\"0.90380905\" -DXS_VERSION=\"0.90380905\" -fPIC "-I/usr/lib/perl5/5.12.0/x86_64-linux-thread-multi/CORE" -DPM3D -DUSE_ULIG_FILLEDBOXES -DUSE_ACTIVE_EVENTS -DHAVE_LIBPNG Gnuplot.c In file included from term_api.h:43, from term.c:77: stdfn.h:89:1: warning: "strcspn" redefined In file included from /usr/include/string.h:635, from stdfn.h:53, from term_api.h:43, from term.c:77: /usr/include/bits/string2.h:935:1: warning: this is the location of the previous definition In file included from term.h:271, from term.c:1002: term/cgm.trm: In function 'CGM_write_char_record': term/cgm.trm:1059: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm:1061: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm:1066: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm:1072: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm: In function 'CGM_write_byte_record': term/cgm.trm:1085: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm:1087: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm: In function 'CGM_write_mixed_record': term/cgm.trm:1126: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm:1128: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm:1131: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm:1133: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/cgm.trm: In function 'CGM_write_int': term/cgm.trm:1186: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result In file included from term.h:288, from term.c:1002: term/emf.trm: In function 'EMF_write_byte': term/emf.trm:347: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/emf.trm: In function 'EMF_write_short': term/emf.trm:360: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/emf.trm: In function 'EMF_write_long': term/emf.trm:374: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/emf.trm: In function 'EMF_write_float': term/emf.trm:397: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result In file included from term.h:288, from term.c:1002: term/emf.trm: In function 'EMF_put_text': term/emf.trm:775: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result term/emf.trm:776: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result Gnuplot.xs: In function 'set_tokens': Gnuplot.xs:40: warning: format '%d' expects type 'int', but argument 4 has type 'long int' Gnuplot.xs:53: warning: format '%d' expects type 'int', but argument 3 has type 'IV' In file included from term.h:358, from term.c:1002: term/post.trm: In function 'PS_graphics': term/post.trm:1565: error: format not a string literal and no format arguments make[1]: *** [term.o] Error 1 make[1]: Leaving directory `/home/mandrake/rpm/BUILD/Term-Gnuplot-0.90380905/gnuterm' make: *** [gnuterm/libgnuterm.a] Error 2
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #59672] term-gnuplot doesn't compile against perl 5.12
Date: Sat, 24 Jul 2010 15:44:52 -0700
To: Jerome Quelin via RT <bug-Term-Gnuplot [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Sat, Jul 24, 2010 at 09:03:12AM -0400, Jerome Quelin via RT wrote: Show quoted text
> x86_64-mandriva-linux-gnu-gcc -c -I./gnuterm -D_REENTRANT -D_GNU_SOURCE > -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector > --param=ssp-buffer-size=4 -DVERSION=\"0.90380905\" > -DXS_VERSION=\"0.90380905\" -fPIC > "-I/usr/lib/perl5/5.12.0/x86_64-linux-thread-multi/CORE" -DPM3D > -DUSE_ULIG_FILLEDBOXES -DUSE_ACTIVE_EVENTS -DHAVE_LIBPNG Gnuplot.c
Show quoted text
> In file included from term.h:358, > from term.c:1002: > term/post.trm: In function 'PS_graphics': > term/post.trm:1565: error: format not a string literal and no format > arguments
Looks like a compiler bug. What I see is static char GPFAR psg1[] = "0 setgray\nnewpath\n"; ... fprintf(gpoutfile, psg1); with GPFAR which should be empty. Hope this helps, Ilya