Package: kbarcode Version: 2.0.7-3 Severity: important Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch
Package failed to build from source. Here is the error log. 26: /usr/share/qt3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)': /usr/share/qt3/include/qevent.h:432:33: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/share/qt3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)': /usr/share/qt3/include/qevent.h:523:46: warning: conversion to 'unsigned char' from 'uint' may alter its value /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/tbarcode2.cpp: In member function 'virtual bool TBarcode2::createPostscript(char**, long int*)': /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/tbarcode2.cpp:125:28: warning: format not a string literal and no format arguments /usr/bin/dcopidl /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/editoriface.h > editoriface.kidl || ( rm -f editoriface.kidl ; false ) /usr/bin/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub editoriface.kidl g++ -DHAVE_CONFIG_H -I. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode -I.. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./src -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c -o editoriface_skel.o editoriface_skel.cpp In file included from /usr/share/qt3/include/qwindowdefs.h:47:0, from /usr/share/qt3/include/qobject.h:46, from /usr/include/kde/dcopobject.h:26, from /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/editoriface.h:21, from editoriface_skel.cpp:9: /usr/share/qt3/include/qstring.h: In member function 'char QChar::latin1() const': /usr/share/qt3/include/qstring.h:197:58: warning: conversion to 'char' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setCell(uchar)': /usr/share/qt3/include/qstring.h:222:57: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setRow(uchar)': /usr/share/qt3/include/qstring.h:223:69: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)': /usr/share/qt3/include/qstring.h:267:61: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)': /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value In file included from /usr/share/qt3/include/qobject.h:48:0, from /usr/include/kde/dcopobject.h:26, from /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/editoriface.h:21, from editoriface_skel.cpp:9: /usr/share/qt3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)': /usr/share/qt3/include/qevent.h:432:33: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/share/qt3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)': /usr/share/qt3/include/qevent.h:523:46: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/bin/dcopidl /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/kbarcodeiface.h > kbarcodeiface.kidl || ( rm -f kbarcodeiface.kidl ; false ) /usr/bin/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub kbarcodeiface.kidl g++ -DHAVE_CONFIG_H -I. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode -I.. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./src -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c -o kbarcodeiface_skel.o kbarcodeiface_skel.cpp In file included from /usr/share/qt3/include/qwindowdefs.h:47:0, from /usr/share/qt3/include/qobject.h:46, from /usr/include/kde/dcopobject.h:26, from /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/kbarcodeiface.h:21, from kbarcodeiface_skel.cpp:9: /usr/share/qt3/include/qstring.h: In member function 'char QChar::latin1() const': /usr/share/qt3/include/qstring.h:197:58: warning: conversion to 'char' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setCell(uchar)': /usr/share/qt3/include/qstring.h:222:57: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setRow(uchar)': /usr/share/qt3/include/qstring.h:223:69: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)': /usr/share/qt3/include/qstring.h:267:61: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)': /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value In file included from /usr/share/qt3/include/qobject.h:48:0, from /usr/include/kde/dcopobject.h:26, from /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/kbarcodeiface.h:21, from kbarcodeiface_skel.cpp:9: /usr/share/qt3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)': /usr/share/qt3/include/qevent.h:432:33: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/share/qt3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)': /usr/share/qt3/include/qevent.h:523:46: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/bin/dcopidl /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/batchiface.h > batchiface.kidl || ( rm -f batchiface.kidl ; false ) /usr/bin/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub batchiface.kidl g++ -DHAVE_CONFIG_H -I. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode -I.. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./src -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c -o batchiface_skel.o batchiface_skel.cpp In file included from /usr/share/qt3/include/qwindowdefs.h:47:0, from /usr/share/qt3/include/qobject.h:46, from /usr/include/kde/dcopobject.h:26, from /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/batchiface.h:21, from batchiface_skel.cpp:9: /usr/share/qt3/include/qstring.h: In member function 'char QChar::latin1() const': /usr/share/qt3/include/qstring.h:197:58: warning: conversion to 'char' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setCell(uchar)': /usr/share/qt3/include/qstring.h:222:57: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setRow(uchar)': /usr/share/qt3/include/qstring.h:223:69: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)': /usr/share/qt3/include/qstring.h:267:61: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)': /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value In file included from /usr/share/qt3/include/qobject.h:48:0, from /usr/include/kde/dcopobject.h:26, from /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/batchiface.h:21, from batchiface_skel.cpp:9: /usr/share/qt3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)': /usr/share/qt3/include/qevent.h:432:33: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/share/qt3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)': /usr/share/qt3/include/qevent.h:523:46: warning: conversion to 'unsigned char' from 'uint' may alter its value In file included from /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/batchiface.h:23:0, from batchiface_skel.cpp:9: /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/batchprinter.h: At global scope: /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/batchprinter.h:49:65: warning: 'typedef' was ignored in this declaration /usr/share/qt3/bin/moc /home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode/encodingcombo.h -o encodingcombo.moc.cpp g++ -DHAVE_CONFIG_H -I. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./kbarcode -I.. -I/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/./src -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c -o encodingcombo.moc.o encodingcombo.moc.cpp In file included from /usr/share/qt3/include/qwindowdefs.h:47:0, from /usr/share/qt3/include/qwidget.h:45, from /usr/share/qt3/include/qframe.h:45, from /usr/share/qt3/include/qlineedit.h:50, from /usr/include/kde/kcombobox.h:25, from ../../kbarcode/encodingcombo.h:21, from encodingcombo.moc.cpp:11: /usr/share/qt3/include/qstring.h: In member function 'char QChar::latin1() const': /usr/share/qt3/include/qstring.h:197:58: warning: conversion to 'char' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setCell(uchar)': /usr/share/qt3/include/qstring.h:222:57: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In member function 'void QChar::setRow(uchar)': /usr/share/qt3/include/qstring.h:223:69: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)': /usr/share/qt3/include/qstring.h:267:61: warning: conversion to 'ushort' from 'int' may alter its value /usr/share/qt3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)': /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value /usr/share/qt3/include/qstring.h:365:94: warning: conversion to 'unsigned int:30' from 'uint' may alter its value In file included from /usr/share/qt3/include/qobject.h:48:0, from /usr/share/qt3/include/qwidget.h:46, from /usr/share/qt3/include/qframe.h:45, from /usr/share/qt3/include/qlineedit.h:50, from /usr/include/kde/kcombobox.h:25, from ../../kbarcode/encodingcombo.h:21, from encodingcombo.moc.cpp:11: /usr/share/qt3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)': /usr/share/qt3/include/qevent.h:432:33: warning: conversion to 'unsigned char' from 'uint' may alter its value /usr/share/qt3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)': /usr/share/qt3/include/qevent.h:523:46: warning: conversion to 'unsigned char' from 'uint' may alter its value /bin/bash ../libtool --tag=CXX --mode=link g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -L/usr/share/qt3/lib -L/usr/lib -Wl,-Bsymbolic-functions -o kbarcode barcodecombo.o barcodedialog.o barcodedialogs.o commands.o configdialog.o confwizard.o csvimportdlg.o databasebrowser.o definition.o definitiondialog.o dsmainwindow.o kbarcode.o label.o labeleditor.o labelutils.o main.o mimesources.o multilineeditdlg.o mycanvasitem.o mycanvasview.o mydatatable.o newlabel.o previewdialog.o printersettings.o printlabeldlg.o rectsettingsdlg.o smalldialogs.o sqltables.o tokenprovider.o xmlutils.o zplutils.o measurements.o kbarcodesettings.o batchprinter.o barcodeitem.o documentitem.o lineitem.o rectitem.o tcanvasitem.o textitem.o imageitem.o documentitemdlg. o propertywidget.o tec.o barcodeprinterdlg.o textlineitem.o textlineedit.o tokendialog.o barkode.o gnubarcode.o barkodeengine.o pixmapbarcode.o batchwizard.o csvfile.o dstextedit.o encodingcombo.o purepostscript.o tbarcode2.o editoriface_skel.o kbarcodeiface_skel.o batchiface_skel.o encodingcombo.moc.o -lkabc -lkspell -lkdeprint -lkdeui -lkjs -lpcre mkdir .libs g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -Wl,-Bsymbolic-functions -o kbarcode barcodecombo.o barcodedialog.o barcodedialogs.o commands.o configdialog.o confwizard.o csvimportdlg.o databasebrowser.o definition.o definitiondialog.o dsmainwindow.o kbarcode.o label.o labeleditor.o labelutils.o main.o mimesources.o multilineeditdlg.o mycanvasitem.o mycanvasview.o mydatatable.o newlabel.o previewdialog.o printersettings.o printlabeldlg.o rectsettingsdlg.o smalldialogs.o sqltables.o tokenprovider.o xmlutils.o zplutils.o measurements.o kbarcodesettings.o batchprinter.o barcodeitem.o documentitem.o lineitem.o rectitem.o tcanvasitem.o textitem.o imageitem.o documentitemdlg.o propertywidget.o tec.o barcodeprinterdlg.o textlineitem.o textlineedit.o tokendialog.o barkode.o gnubarcode.o barkodeengine.o pixmapbarcode.o batchwizard.o csvfile.o dstextedit.o encodingcombo.o purepostscript.o tbarcode2.o editoriface_skel.o kbarcodeiface_skel.o batchiface_skel.o encodingcombo.moc.o -L/usr/share/qt3/lib -L/usr/lib /usr/lib/libkabc.so /usr/lib/libkspell.so /usr/lib/libkdeprint.so /usr/lib/libkdeui.so /usr/lib/libkjs.so -lpcre /usr/bin/ld: labeleditor.o: undefined reference to symbol 'KFileDialog::getSaveFileName(QString const&, QString const&, QWidget*, QString const&)' /usr/bin/ld: note: 'KFileDialog::getSaveFileName(QString const&, QString const&, QWidget*, QString const&)' is defined in DSO /usr/lib/libkio.so.4 so try adding it to the linker command line /usr/lib/libkio.so.4: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[3]: *** [kbarcode] Error 1 make[3]: Leaving directory `/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/obj-i686-linux-gnu/kbarcode' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/obj-i686-linux-gnu' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/tarun/source/kbarcode/tmp/kbarcode-2.0.7/obj-i686-linux-gnu' make: *** [debian/stamp-makefile-build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 *** /tmp/tmpIgUnE8 In Ubuntu, we've applied the attached patch to achieve the following: ## Patch links required libraries in order to fix the ftbfs error. * debian/patches/10_fix_ftbfs_binutils-gold:diff - Fix FTBFS with binutils-gold. (LP: #726405) We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers maverick-updates APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-backports'), (500, 'maverick') Architecture: i386 (i686) Kernel: Linux 2.6.35-25-generic (SMP w/4 CPU cores) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru kbarcode-2.0.7/debian/changelog kbarcode-2.0.7/debian/changelog diff -Nru kbarcode-2.0.7/debian/control kbarcode-2.0.7/debian/control --- kbarcode-2.0.7/debian/control 2010-08-11 11:57:27.000000000 +0530 +++ kbarcode-2.0.7/debian/control 2011-03-01 14:58:46.000000000 +0530 @@ -1,7 +1,8 @@ Source: kbarcode Section: kde Priority: optional -Maintainer: Debian KDE Extras Team <pkg-kde-ext...@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian KDE Extras Team <pkg-kde-ext...@lists.alioth.debian.org> Uploaders: Fathi Boudra <f...@debian.org>, Mark Purcell <m...@debian.org> Build-Depends: cdbs (>= 0.4.52), debhelper (>= 7), quilt, automake, kdelibs4-dev Standards-Version: 3.9.1 diff -Nru kbarcode-2.0.7/debian/patches/10_fix_ftbfs_binutils-gold.diff kbarcode-2.0.7/debian/patches/10_fix_ftbfs_binutils-gold.diff --- kbarcode-2.0.7/debian/patches/10_fix_ftbfs_binutils-gold.diff 1970-01-01 05:30:00.000000000 +0530 +++ kbarcode-2.0.7/debian/patches/10_fix_ftbfs_binutils-gold.diff 2011-03-01 15:07:58.000000000 +0530 @@ -0,0 +1,18 @@ +From: Tarun Kumar Mall <c2ta...@gmail.com> +Description: This patch fixex FTBFS problem by adding certain libraries to + file kbarcode-2.0.7.orig/kbarcode/Makefile.am +Bug-Ubuntu: https://launchpad.net/bugs/726405 + +Index: kbarcode-2.0.7/kbarcode/Makefile.am +=================================================================== +--- kbarcode-2.0.7.orig/kbarcode/Makefile.am 2011-03-01 09:24:57.447560008 +0000 ++++ kbarcode-2.0.7/kbarcode/Makefile.am 2011-03-01 09:25:23.667559799 +0000 +@@ -21,7 +21,7 @@ + + kbarcode_LDFLAGS = $(KDE_RPATH) $(all_libraries) + kbarcode_LDADD = $(LIB_KABC) $(LIB_KSPELL) $(LIB_KDEPRINT) \ +- $(LIB_KDEUI) -lkjs -lpcre ++ $(LIB_KDEUI) -lkjs -lpcre -lkio -lqt-mt -lDCOP -lkdecore + + noinst_HEADERS = barcodecombo.h barcodedialog.h barcodedialogs.h commands.h \ + configdialog.h confwizard.h csvimportdlg.h databasebrowser.h definition.h \ diff -Nru kbarcode-2.0.7/debian/patches/series kbarcode-2.0.7/debian/patches/series --- kbarcode-2.0.7/debian/patches/series 2010-08-11 11:17:52.000000000 +0530 +++ kbarcode-2.0.7/debian/patches/series 2011-03-01 15:17:43.000000000 +0530 @@ -6,3 +6,4 @@ 07_autoconf2.64.diff 08_automake-1.1x.diff 09_missing_name_key.diff +10_fix_ftbfs_binutils-gold.diff