[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with Qwt and PyQt-Qwt, C++ symbols



Gudjon I. Gudjonsson <gudjon@gudjon.org> writes:

>> > I THINK your virtual-function updates don't break the ABI, although
>> > I can't be certain. The update in src/qwt_picker_machine.h
>> > definitely DOES break the ABI however.
>
> I found out that this part was unnecessary. Just disabling the default
> copy constructor fixed the problem and I have removed the patch to
> qwt_picker_machine.h. But I haven't found any way around the
> instantiation problems.

Hi Gudjon.

I ran the abi-compliance-checker tool. Short version: these updates
break the ABI.

Longer version: C++ has a very brittle ABI, and it takes very little to
break it. I did this:

1. apt source qwt

2. in debian/rules, added "-Og" to the definitions of
   CFLAGS,CXXFLAGS,CPPFLAGS

3. dpkg-buildpackage -us -uc -b

4. abi-dumper debian/tmp/usr/lib/libqwt.so(:A) -o /tmp/unpatched.dump -lver 0

5. cp -r debian debian.unpatched

6. < /tmp/06_python_compat.patch patch -p1

7. dpkg-buildpackage -us -uc -b

8. abi-dumper debian/tmp/usr/lib/libqwt.so(:A) -o /tmp/patched.dump -lver 1

9. abi-compliance-checker -l qwt -old /tmp/unpatched.dump -new /tmp/patched.dump

This generates the attached report. I guess the proposed patch changes
the layout of the vtable, so calls to virtual functions past the vtable
changes would break.

I can't tell what problem you're trying to solve since I can't tell how
you're trying to build PyQt-Qwt. What build errors are you seeing? How
can I see them? Can PyQt-Qwt be updated to live with the unpatched qwt?

Title: qwt: 0 to 1 compatibility report

API compatibility report for the libqwt.so object between 0 and 1 versions on x86_64


Binary
Compatibility
Source
Compatibility

Test Info


Module Nameqwt
Version #10
Version #21
Archx86_64
SubjectBinary Compatibility

Test Results


Total Header Files155
Total Source Files123
Total Objects1
Total Symbols / Types2584 / 402
Compatibility 99.2%

Problem Summary


SeverityCount
Added Symbols-37
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium8
Low0
Problems with
Symbols
High0
Medium0
Low0
Problems with
Constants
Low0
Other Changes
in Data Types
-15

Added Symbols  37 


qwt_series_data.h, libqwt.so.6.1.2.abi1
QwtArraySeriesData<QPointF>::~QwtArraySeriesData [D0] ( )
QwtArraySeriesData<QPointF>::~QwtArraySeriesData [D1] ( )
QwtArraySeriesData<QPointF>::~QwtArraySeriesData [D2] ( )
QwtArraySeriesData<QwtIntervalSample>::~QwtArraySeriesData [D0] ( )
QwtArraySeriesData<QwtIntervalSample>::~QwtArraySeriesData [D1] ( )
QwtArraySeriesData<QwtIntervalSample>::~QwtArraySeriesData [D2] ( )
QwtArraySeriesData<QwtOHLCSample>::~QwtArraySeriesData [D0] ( )
QwtArraySeriesData<QwtOHLCSample>::~QwtArraySeriesData [D1] ( )
QwtArraySeriesData<QwtOHLCSample>::~QwtArraySeriesData [D2] ( )
QwtArraySeriesData<QwtPoint3D>::~QwtArraySeriesData [D0] ( )
QwtArraySeriesData<QwtPoint3D>::~QwtArraySeriesData [D1] ( )
QwtArraySeriesData<QwtPoint3D>::~QwtArraySeriesData [D2] ( )
QwtArraySeriesData<QwtSetSample>::~QwtArraySeriesData [D0] ( )
QwtArraySeriesData<QwtSetSample>::~QwtArraySeriesData [D1] ( )
QwtArraySeriesData<QwtSetSample>::~QwtArraySeriesData [D2] ( )
QwtSeriesData<QPointF>::boundingRect ( ) const
QwtSeriesData<QPointF>::sample ( size_t i ) const
QwtSeriesData<QPointF>::size ( ) const
QwtSeriesData<QwtIntervalSample>::boundingRect ( ) const
QwtSeriesData<QwtIntervalSample>::sample ( size_t i ) const
QwtSeriesData<QwtIntervalSample>::size ( ) const
QwtSeriesData<QwtOHLCSample>::boundingRect ( ) const
QwtSeriesData<QwtOHLCSample>::sample ( size_t i ) const
QwtSeriesData<QwtOHLCSample>::size ( ) const
QwtSeriesData<QwtPoint3D>::boundingRect ( ) const
QwtSeriesData<QwtPoint3D>::sample ( size_t i ) const
QwtSeriesData<QwtPoint3D>::size ( ) const
QwtSeriesData<QwtSetSample>::boundingRect ( ) const
QwtSeriesData<QwtSetSample>::sample ( size_t i ) const
QwtSeriesData<QwtSetSample>::size ( ) const

qwt_series_store.h, libqwt.so.6.1.2.abi1
QwtAbstractSeriesStore::dataChanged ( )
QwtAbstractSeriesStore::dataRect ( ) const
QwtAbstractSeriesStore::dataSize ( ) const
QwtAbstractSeriesStore::setRectOfInterest ( QRectF const& p1 )
QwtAbstractSeriesStore::~QwtAbstractSeriesStore [D0] ( )
QwtAbstractSeriesStore::~QwtAbstractSeriesStore [D1] ( )
QwtAbstractSeriesStore::~QwtAbstractSeriesStore [D2] ( )

to the top

Problems with Data Types, Medium Severity  8 


qwt_plot_abstract_barchart.h
[+] class QwtPlotAbstractBarChart  1 

qwt_plot_seriesitem.h
[+] class QwtPlotSeriesItem  1 

qwt_series_data.h
[+] class QwtArraySeriesData<QPointF>  1 
[+] class QwtArraySeriesData<QwtIntervalSample>  1 
[+] class QwtArraySeriesData<QwtOHLCSample>  1 
[+] class QwtArraySeriesData<QwtPoint3D>  1 
[+] class QwtArraySeriesData<QwtSetSample>  1 

qwt_series_store.h
[+] class QwtAbstractSeriesStore  1 

to the top

Other Changes in Data Types  15 


qwt_series_data.h
[+] class QwtSeriesData<QPointF>  3 
[+] class QwtSeriesData<QwtIntervalSample>  3 
[+] class QwtSeriesData<QwtOHLCSample>  3 
[+] class QwtSeriesData<QwtPoint3D>  3 
[+] class QwtSeriesData<QwtSetSample>  3 

to the top

Header Files  155 


qabstracttextdocumentlayout.h
qalgorithms.h
qatomic.h
qbasicatomic.h
qbitarray.h
qbitmap.h
qbrush.h
qbytearray.h
qcolor.h
qcursor.h
qdatetime.h
qdebug.h
qelapsedtimer.h
qfont.h
qfontmetrics.h
qframe.h
qfuture.h
qfutureinterface.h
qglobal.h
qicon.h
qlayoutitem.h
qline.h
qlist.h
qmap.h
qmatrix.h
qmetatype.h
qnamespace.h
qobjectdefs.h
qpaintdevice.h
qpaintengine.h
qpainter.h
qpainterpath.h
qpair.h
qpalette.h
qpen.h
qpoint.h
qpointer.h
qpolygon.h
qrect.h
qregion.h
qrgb.h
qrunnable.h
qscopedpointer.h
qshareddata.h
qsize.h
qstack.h
qstring.h
qstyle.h
qstyleoption.h
qtconcurrentrun.h
qtconcurrentrunbase.h
qtconcurrentstoredfunctioncall.h
qtextcursor.h
qtextformat.h
qtransform.h
qvariant.h
qvector.h
qwindowdefs.h
qwt_abstract_legend.h
qwt_abstract_scale.h
qwt_abstract_scale_draw.h
qwt_abstract_slider.h
qwt_analog_clock.h
qwt_arrow_button.h
qwt_clipper.h
qwt_color_map.h
qwt_column_symbol.h
qwt_compass.h
qwt_compass_rose.h
qwt_counter.h
qwt_curve_fitter.h
qwt_date.h
qwt_date_scale_draw.h
qwt_date_scale_engine.h
qwt_dial.h
qwt_dial_needle.h
qwt_dyngrid_layout.h
qwt_event_pattern.h
qwt_graphic.h
qwt_interval.h
qwt_interval_symbol.h
qwt_knob.h
qwt_legend.h
qwt_legend_data.h
qwt_legend_label.h
qwt_magnifier.h
qwt_math.h
qwt_matrix_raster_data.h
qwt_null_paintdevice.h
qwt_painter.h
qwt_painter_command.h
qwt_panner.h
qwt_picker.h
qwt_picker_machine.h
qwt_pixel_matrix.h
qwt_plot.h
qwt_plot_abstract_barchart.h
qwt_plot_barchart.h
qwt_plot_canvas.h
qwt_plot_curve.h
qwt_plot_dict.h
qwt_plot_directpainter.h
qwt_plot_glcanvas.h
qwt_plot_grid.h
qwt_plot_histogram.h
qwt_plot_intervalcurve.h
qwt_plot_item.h
qwt_plot_layout.h
qwt_plot_legenditem.h
qwt_plot_magnifier.h
qwt_plot_marker.h
qwt_plot_multi_barchart.h
qwt_plot_panner.h
qwt_plot_picker.h
qwt_plot_rasteritem.h
qwt_plot_renderer.h
qwt_plot_rescaler.h
qwt_plot_scaleitem.h
qwt_plot_seriesitem.h
qwt_plot_shapeitem.h
qwt_plot_spectrocurve.h
qwt_plot_spectrogram.h
qwt_plot_svgitem.h
qwt_plot_textlabel.h
qwt_plot_tradingcurve.h
qwt_plot_zoneitem.h
qwt_plot_zoomer.h
qwt_point_3d.h
qwt_point_data.h
qwt_point_mapper.h
qwt_point_polar.h
qwt_raster_data.h
qwt_round_scale_draw.h
qwt_samples.h
qwt_sampling_thread.h
qwt_scale_div.h
qwt_scale_draw.h
qwt_scale_engine.h
qwt_scale_map.h
qwt_scale_widget.h
qwt_series_data.h
qwt_series_store.h
qwt_slider.h
qwt_spline.h
qwt_symbol.h
qwt_system_clock.h
qwt_text.h
qwt_text_engine.h
qwt_text_label.h
qwt_thermo.h
qwt_transform.h
qwt_wheel.h
qwt_widget_overlay.h
stddef.h
types.h

to the top

Source Files  123 


moc_qwt_abstract_legend.cpp
moc_qwt_abstract_scale.cpp
moc_qwt_abstract_slider.cpp
moc_qwt_analog_clock.cpp
moc_qwt_compass.cpp
moc_qwt_counter.cpp
moc_qwt_dial.cpp
moc_qwt_dyngrid_layout.cpp
moc_qwt_knob.cpp
moc_qwt_legend.cpp
moc_qwt_legend_label.cpp
moc_qwt_magnifier.cpp
moc_qwt_panner.cpp
moc_qwt_picker.cpp
moc_qwt_plot.cpp
moc_qwt_plot_canvas.cpp
moc_qwt_plot_glcanvas.cpp
moc_qwt_plot_magnifier.cpp
moc_qwt_plot_panner.cpp
moc_qwt_plot_picker.cpp
moc_qwt_plot_renderer.cpp
moc_qwt_plot_zoomer.cpp
moc_qwt_sampling_thread.cpp
moc_qwt_scale_widget.cpp
moc_qwt_slider.cpp
moc_qwt_text_label.cpp
moc_qwt_thermo.cpp
moc_qwt_wheel.cpp
qwt_abstract_legend.cpp
qwt_abstract_scale.cpp
qwt_abstract_scale_draw.cpp
qwt_abstract_slider.cpp
qwt_analog_clock.cpp
qwt_arrow_button.cpp
qwt_clipper.cpp
qwt_color_map.cpp
qwt_column_symbol.cpp
qwt_compass.cpp
qwt_compass_rose.cpp
qwt_counter.cpp
qwt_curve_fitter.cpp
qwt_date.cpp
qwt_date_scale_draw.cpp
qwt_date_scale_engine.cpp
qwt_dial.cpp
qwt_dial_needle.cpp
qwt_dyngrid_layout.cpp
qwt_event_pattern.cpp
qwt_graphic.cpp
qwt_interval.cpp
qwt_interval_symbol.cpp
qwt_knob.cpp
qwt_legend.cpp
qwt_legend_data.cpp
qwt_legend_label.cpp
qwt_magnifier.cpp
qwt_math.cpp
qwt_matrix_raster_data.cpp
qwt_null_paintdevice.cpp
qwt_painter.cpp
qwt_painter_command.cpp
qwt_panner.cpp
qwt_picker.cpp
qwt_picker_machine.cpp
qwt_pixel_matrix.cpp
qwt_plot.cpp
qwt_plot_abstract_barchart.cpp
qwt_plot_axis.cpp
qwt_plot_barchart.cpp
qwt_plot_canvas.cpp
qwt_plot_curve.cpp
qwt_plot_dict.cpp
qwt_plot_directpainter.cpp
qwt_plot_glcanvas.cpp
qwt_plot_grid.cpp
qwt_plot_histogram.cpp
qwt_plot_intervalcurve.cpp
qwt_plot_item.cpp
qwt_plot_layout.cpp
qwt_plot_legenditem.cpp
qwt_plot_magnifier.cpp
qwt_plot_marker.cpp
qwt_plot_multi_barchart.cpp
qwt_plot_panner.cpp
qwt_plot_picker.cpp
qwt_plot_rasteritem.cpp
qwt_plot_renderer.cpp
qwt_plot_rescaler.cpp
qwt_plot_scaleitem.cpp
qwt_plot_seriesitem.cpp
qwt_plot_shapeitem.cpp
qwt_plot_spectrocurve.cpp
qwt_plot_spectrogram.cpp
qwt_plot_svgitem.cpp
qwt_plot_textlabel.cpp
qwt_plot_tradingcurve.cpp
qwt_plot_xml.cpp
qwt_plot_zoneitem.cpp
qwt_plot_zoomer.cpp
qwt_point_3d.cpp
qwt_point_data.cpp
qwt_point_mapper.cpp
qwt_point_polar.cpp
qwt_raster_data.cpp
qwt_round_scale_draw.cpp
qwt_sampling_thread.cpp
qwt_scale_div.cpp
qwt_scale_draw.cpp
qwt_scale_engine.cpp
qwt_scale_map.cpp
qwt_scale_widget.cpp
qwt_series_data.cpp
qwt_slider.cpp
qwt_spline.cpp
qwt_symbol.cpp
qwt_system_clock.cpp
qwt_text.cpp
qwt_text_engine.cpp
qwt_text_label.cpp
qwt_thermo.cpp
qwt_transform.cpp
qwt_wheel.cpp
qwt_widget_overlay.cpp

to the top

Objects  1 


libqwt.so.6.1.2.abi1

to the top



Test Info


Module Nameqwt
Version #10
Version #21
Archx86_64
SubjectSource Compatibility

Test Results


Total Header Files155
Total Source Files123
Total Objects1
Total Symbols / Types3445 / 539
Compatibility 100%

Problem Summary


SeverityCount
Added Symbols-0
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium0
Low0
Problems with
Symbols
High0
Medium0
Low0
Problems with
Constants
Low0
Other Changes
in Data Types
-19

Other Changes in Data Types  19 


qwt_series_data.h
[+] class QwtSeriesData<QPointF>  3 
[+] class QwtSeriesData<QwtIntervalSample>  3 
[+] class QwtSeriesData<QwtOHLCSample>  3 
[+] class QwtSeriesData<QwtPoint3D>  3 
[+] class QwtSeriesData<QwtSetSample>  3 

qwt_series_store.h
[+] class QwtAbstractSeriesStore  4 

to the top

Header Files  155 


qabstracttextdocumentlayout.h
qalgorithms.h
qatomic.h
qbasicatomic.h
qbitarray.h
qbitmap.h
qbrush.h
qbytearray.h
qcolor.h
qcursor.h
qdatetime.h
qdebug.h
qelapsedtimer.h
qfont.h
qfontmetrics.h
qframe.h
qfuture.h
qfutureinterface.h
qglobal.h
qicon.h
qlayoutitem.h
qline.h
qlist.h
qmap.h
qmatrix.h
qmetatype.h
qnamespace.h
qobjectdefs.h
qpaintdevice.h
qpaintengine.h
qpainter.h
qpainterpath.h
qpair.h
qpalette.h
qpen.h
qpoint.h
qpointer.h
qpolygon.h
qrect.h
qregion.h
qrgb.h
qrunnable.h
qscopedpointer.h
qshareddata.h
qsize.h
qstack.h
qstring.h
qstyle.h
qstyleoption.h
qtconcurrentrun.h
qtconcurrentrunbase.h
qtconcurrentstoredfunctioncall.h
qtextcursor.h
qtextformat.h
qtransform.h
qvariant.h
qvector.h
qwindowdefs.h
qwt_abstract_legend.h
qwt_abstract_scale.h
qwt_abstract_scale_draw.h
qwt_abstract_slider.h
qwt_analog_clock.h
qwt_arrow_button.h
qwt_clipper.h
qwt_color_map.h
qwt_column_symbol.h
qwt_compass.h
qwt_compass_rose.h
qwt_counter.h
qwt_curve_fitter.h
qwt_date.h
qwt_date_scale_draw.h
qwt_date_scale_engine.h
qwt_dial.h
qwt_dial_needle.h
qwt_dyngrid_layout.h
qwt_event_pattern.h
qwt_graphic.h
qwt_interval.h
qwt_interval_symbol.h
qwt_knob.h
qwt_legend.h
qwt_legend_data.h
qwt_legend_label.h
qwt_magnifier.h
qwt_math.h
qwt_matrix_raster_data.h
qwt_null_paintdevice.h
qwt_painter.h
qwt_painter_command.h
qwt_panner.h
qwt_picker.h
qwt_picker_machine.h
qwt_pixel_matrix.h
qwt_plot.h
qwt_plot_abstract_barchart.h
qwt_plot_barchart.h
qwt_plot_canvas.h
qwt_plot_curve.h
qwt_plot_dict.h
qwt_plot_directpainter.h
qwt_plot_glcanvas.h
qwt_plot_grid.h
qwt_plot_histogram.h
qwt_plot_intervalcurve.h
qwt_plot_item.h
qwt_plot_layout.h
qwt_plot_legenditem.h
qwt_plot_magnifier.h
qwt_plot_marker.h
qwt_plot_multi_barchart.h
qwt_plot_panner.h
qwt_plot_picker.h
qwt_plot_rasteritem.h
qwt_plot_renderer.h
qwt_plot_rescaler.h
qwt_plot_scaleitem.h
qwt_plot_seriesitem.h
qwt_plot_shapeitem.h
qwt_plot_spectrocurve.h
qwt_plot_spectrogram.h
qwt_plot_svgitem.h
qwt_plot_textlabel.h
qwt_plot_tradingcurve.h
qwt_plot_zoneitem.h
qwt_plot_zoomer.h
qwt_point_3d.h
qwt_point_data.h
qwt_point_mapper.h
qwt_point_polar.h
qwt_raster_data.h
qwt_round_scale_draw.h
qwt_samples.h
qwt_sampling_thread.h
qwt_scale_div.h
qwt_scale_draw.h
qwt_scale_engine.h
qwt_scale_map.h
qwt_scale_widget.h
qwt_series_data.h
qwt_series_store.h
qwt_slider.h
qwt_spline.h
qwt_symbol.h
qwt_system_clock.h
qwt_text.h
qwt_text_engine.h
qwt_text_label.h
qwt_thermo.h
qwt_transform.h
qwt_wheel.h
qwt_widget_overlay.h
stddef.h
types.h

to the top

Source Files  123 


moc_qwt_abstract_legend.cpp
moc_qwt_abstract_scale.cpp
moc_qwt_abstract_slider.cpp
moc_qwt_analog_clock.cpp
moc_qwt_compass.cpp
moc_qwt_counter.cpp
moc_qwt_dial.cpp
moc_qwt_dyngrid_layout.cpp
moc_qwt_knob.cpp
moc_qwt_legend.cpp
moc_qwt_legend_label.cpp
moc_qwt_magnifier.cpp
moc_qwt_panner.cpp
moc_qwt_picker.cpp
moc_qwt_plot.cpp
moc_qwt_plot_canvas.cpp
moc_qwt_plot_glcanvas.cpp
moc_qwt_plot_magnifier.cpp
moc_qwt_plot_panner.cpp
moc_qwt_plot_picker.cpp
moc_qwt_plot_renderer.cpp
moc_qwt_plot_zoomer.cpp
moc_qwt_sampling_thread.cpp
moc_qwt_scale_widget.cpp
moc_qwt_slider.cpp
moc_qwt_text_label.cpp
moc_qwt_thermo.cpp
moc_qwt_wheel.cpp
qwt_abstract_legend.cpp
qwt_abstract_scale.cpp
qwt_abstract_scale_draw.cpp
qwt_abstract_slider.cpp
qwt_analog_clock.cpp
qwt_arrow_button.cpp
qwt_clipper.cpp
qwt_color_map.cpp
qwt_column_symbol.cpp
qwt_compass.cpp
qwt_compass_rose.cpp
qwt_counter.cpp
qwt_curve_fitter.cpp
qwt_date.cpp
qwt_date_scale_draw.cpp
qwt_date_scale_engine.cpp
qwt_dial.cpp
qwt_dial_needle.cpp
qwt_dyngrid_layout.cpp
qwt_event_pattern.cpp
qwt_graphic.cpp
qwt_interval.cpp
qwt_interval_symbol.cpp
qwt_knob.cpp
qwt_legend.cpp
qwt_legend_data.cpp
qwt_legend_label.cpp
qwt_magnifier.cpp
qwt_math.cpp
qwt_matrix_raster_data.cpp
qwt_null_paintdevice.cpp
qwt_painter.cpp
qwt_painter_command.cpp
qwt_panner.cpp
qwt_picker.cpp
qwt_picker_machine.cpp
qwt_pixel_matrix.cpp
qwt_plot.cpp
qwt_plot_abstract_barchart.cpp
qwt_plot_axis.cpp
qwt_plot_barchart.cpp
qwt_plot_canvas.cpp
qwt_plot_curve.cpp
qwt_plot_dict.cpp
qwt_plot_directpainter.cpp
qwt_plot_glcanvas.cpp
qwt_plot_grid.cpp
qwt_plot_histogram.cpp
qwt_plot_intervalcurve.cpp
qwt_plot_item.cpp
qwt_plot_layout.cpp
qwt_plot_legenditem.cpp
qwt_plot_magnifier.cpp
qwt_plot_marker.cpp
qwt_plot_multi_barchart.cpp
qwt_plot_panner.cpp
qwt_plot_picker.cpp
qwt_plot_rasteritem.cpp
qwt_plot_renderer.cpp
qwt_plot_rescaler.cpp
qwt_plot_scaleitem.cpp
qwt_plot_seriesitem.cpp
qwt_plot_shapeitem.cpp
qwt_plot_spectrocurve.cpp
qwt_plot_spectrogram.cpp
qwt_plot_svgitem.cpp
qwt_plot_textlabel.cpp
qwt_plot_tradingcurve.cpp
qwt_plot_xml.cpp
qwt_plot_zoneitem.cpp
qwt_plot_zoomer.cpp
qwt_point_3d.cpp
qwt_point_data.cpp
qwt_point_mapper.cpp
qwt_point_polar.cpp
qwt_raster_data.cpp
qwt_round_scale_draw.cpp
qwt_sampling_thread.cpp
qwt_scale_div.cpp
qwt_scale_draw.cpp
qwt_scale_engine.cpp
qwt_scale_map.cpp
qwt_scale_widget.cpp
qwt_series_data.cpp
qwt_slider.cpp
qwt_spline.cpp
qwt_symbol.cpp
qwt_system_clock.cpp
qwt_text.cpp
qwt_text_engine.cpp
qwt_text_label.cpp
qwt_thermo.cpp
qwt_transform.cpp
qwt_wheel.cpp
qwt_widget_overlay.cpp

to the top

Objects  1 


libqwt.so.6.1.2.abi1

to the top






Reply to: