Bug#749821: ncview: Conflicting declarations of function SciPlotSetXUserScale to cause undefined behaviour

Michael Tautschnig mt at debian.org
Thu May 29 23:11:04 UTC 2014


Package: ncview
Version: 1.93g-1
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error. Please note that we
use our research compiler tool-chain (using tools from the cbmc package), which
permits extended reporting on type inconsistencies at link time.

[...]
gcc  -DINC_PPM -o ncview ncview.o file.o util.o do_buttons.o file_netcdf.o  view.o do_print.o epic_time.o interface/interface.o interface/x_interface.o interface/dataedit.o interface/display_info.o interface/plot_xy.o interface/utils.o interface/range.o interface/printer_options.o overlay.o interface/filesel.o interface/set_options.o interface/plot_range.o udu.o SciPlot.o interface/RadioWidget.o interface/cbar.o   -L.   \
   -lnetcdf  -lXaw -lXmu \
  -lnetpbm \
   -lSM -lICE -lXt -lXext -lX11  -lm


error: conflicting function declarations "SciPlotSetXUserScale"
old definition in module plot_xy file interface/../SciPlot.h line 150
void (struct _WidgetRec *, double, double)
new definition in module SciPlot file SciPlot.c line 3316
void (struct _WidgetRec *wi, float min, float max)

Makefile:118: recipe for target 'ncview' failed
make[1]: *** [ncview] Error 64
make[1]: Leaving directory '/srv/jenkins-slave/workspace/sid-goto-cc-ncview/ncview-1.93g'
debian/rules:34: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2

As float and double will generally have a very different bit-level
representation, values passed to SciPlotSetXUserScale will end up heavily
garbled. The declaration in SciPlot.h should be fixed to use the same types as
the definition.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20140530/525e95f5/attachment.sig>


More information about the Pkg-grass-devel mailing list