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

Bug#560443: kptc: FTBFS: modem.cpp:313: error: invalid conversion from 'const char*' to 'char*'



Source: kptc
Version: 0.2-6.1
Severity: serious
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs-20091210 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include -I.    -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -g -O2 -fno-exceptions -fno-check-new -MT modem.o -MD -MP -MF ".deps/modem.Tpo" -c -o modem.o modem.cpp; \
> 	then mv -f ".deps/modem.Tpo" ".deps/modem.Po"; else rm -f ".deps/modem.Tpo"; exit 1; fi
> cc1plus: warning: command line option "-Wbad-function-cast" is valid for C/ObjC but not for C++
> cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
> In file included from /usr/share/qt3/include/qtextstream.h:46,
>                  from /usr/share/qt3/include/qtl.h:46,
>                  from /usr/share/qt3/include/qvaluelist.h:45,
>                  from /usr/share/qt3/include/qstringlist.h:45,
>                  from /usr/share/qt3/include/qregexp.h:45,
>                  from modem.cpp:20:
> /usr/share/qt3/include/qstring.h: In member function 'char QChar::latin1() const':
> /usr/share/qt3/include/qstring.h:197: 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: 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: 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: 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: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
> /usr/share/qt3/include/qstring.h:365: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
> In file included from /usr/share/qt3/include/qobject.h:48,
>                  from /usr/share/qt3/include/qtimer.h:45,
>                  from modem.cpp:21:
> /usr/share/qt3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)':
> /usr/share/qt3/include/qevent.h:432: 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: warning: conversion to 'unsigned char' from 'uint' may alter its value
> modem.cpp: In member function 'void Modem::readtty(int)':
> modem.cpp:228: warning: conversion to 'int' from 'ssize_t' may alter its value
> modem.cpp:231: warning: conversion to 'unsigned char' from 'int' may alter its value
> modem.cpp: In member function 'bool Modem::lock_device()':
> modem.cpp:313: error: invalid conversion from 'const char*' to 'char*'
> modem.cpp:324: warning: conversion to 'int' from 'ssize_t' may alter its value
> modem.cpp: In member function 'bool Modem::unlock_device()':
> modem.cpp:377: error: invalid conversion from 'const char*' to 'char*'
> modem.cpp: In member function 'int Modem::rs232_read(void*, int)':
> modem.cpp:425: warning: conversion to 'int' from 'ssize_t' may alter its value
> make[3]: *** [modem.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2009/12/10/kptc_0.2-6.1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lucas@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr             GPG: 1024D/023B3F4F |



Reply to: