Package: libsynaptics
Version: 0.14.6c-2
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of libsynaptics_0.14.6c-2 on em64t by sbuild/amd64 0.53
...
>  g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsynaptics\" 
> -DVERSION=\"0.14.6c\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 -I. -g -O2 -g -Wall -O2 -c pad.cpp  -fPIC -DPIC -o 
> .libs/pad.o
> pad.cpp: In member function 'std::string Synaptics::Pad::intVerToStrVer(int)':
> pad.cpp:109: error: 'sprintf' was not declared in this scope
> pad.cpp: In member function 'bool Synaptics::Pad::detectDriverVersion()':
> pad.cpp:176: error: 'perror' was not declared in this scope
> pad.cpp: In member function 'void Synaptics::Pad::init()':
> pad.cpp:575: error: 'perror' was not declared in this scope
> make[1]: *** [pad.lo] Error 1

--- pad.cpp~    2008-11-09 08:11:42.000000000 +0000
+++ pad.cpp     2008-11-09 08:11:48.000000000 +0000
@@ -2,6 +2,7 @@
 #include "synparam.h"
 #include "pad.h"
 #include <pthread.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/shm.h>

-- 
Martin Michlmayr
http://www.cyrius.com/



_______________________________________________
pkg-kde-extras mailing list
pkg-kde-extras@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-kde-extras

Reply via email to