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

Bug#454821: FTBFS with GCC 4.3: missing #includes & co



Package: arts
Version: 1.5.8-1
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  There's some more information about this at
http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include

There's another problem (see the first error), which is explained in
http://www.cyrius.com/journal/2007/05/11#gcc-4.3-pedwarn (the change
is final now).

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of arts_1.5.8-1 on em64t by sbuild/amd64 0.53
...
>  g++ -DHAVE_CONFIG_H -I. -I.. -I../mcop -I../artsc -I/build/tbm/arts-1.5.8/./flow -I/build/tbm/arts-1.5.8/./mcop -I../mcop -I/usr/include/kde -I/usr/share/qt3/include -I. -I/build/tbm/arts-1.5.8/./libltdl -DQT_THREAD_SUPPORT -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DQT_CLEAN_NAMESPACE -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -Wall -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -ftemplate-depth-99 -c libartsflow_la.all_cc.cc  -fPIC -DPIC -o .libs/libartsflow_la.all_cc.o
> In file included from /usr/include/glib-2.0/glib/gtypes.h:30,
>                  from /usr/include/glib-2.0/glib/galloca.h:30,
>                  from /usr/include/glib-2.0/glib.h:30,
>                  from /build/tbm/arts-1.5.8/./flow/gsl/gsldefs.h:24,
>                  from /build/tbm/arts-1.5.8/./flow/gslschedule.h:28,
>                  from /build/tbm/arts-1.5.8/./flow/virtualports.h:27,
>                  from /build/tbm/arts-1.5.8/./flow/gslschedule.cc:25,
>                  from libartsflow_la.all_cc.cc:3:
> /usr/lib/glib-2.0/include/glibconfig.h:13:1: error: "GLIB_HAVE_ALLOCA_H" redefined
> In file included from /build/tbm/arts-1.5.8/./flow/gslschedule.cc:23,
>                  from libartsflow_la.all_cc.cc:3:
> ../config.h:19:1: error: this is the location of the previous definition
> In file included from /build/tbm/arts-1.5.8/./flow/audiosubsys.cc:24,
>                  from libartsflow_la.all_cc.cc:4:
> ../config.h:19:1: error: "GLIB_HAVE_ALLOCA_H" redefined
> In file included from /usr/include/glib-2.0/glib/gtypes.h:30,
>                  from /usr/include/glib-2.0/glib/galloca.h:30,
>                  from /usr/include/glib-2.0/glib.h:30,
>                  from /build/tbm/arts-1.5.8/./flow/gsl/gsldefs.h:24,
>                  from /build/tbm/arts-1.5.8/./flow/gslschedule.h:28,
>                  from /build/tbm/arts-1.5.8/./flow/virtualports.h:27,
>                  from /build/tbm/arts-1.5.8/./flow/gslschedule.cc:25,
>                  from libartsflow_la.all_cc.cc:3:
> /usr/lib/glib-2.0/include/glibconfig.h:13:1: error: this is the location of the previous definition
> In file included from libartsflow_la.all_cc.cc:2:
> /build/tbm/arts-1.5.8/./flow/synth_play_impl.cc:241: warning: unused parameter 'fd'
> In file included from /build/tbm/arts-1.5.8/./flow/gslschedule.cc:31,
>                  from libartsflow_la.all_cc.cc:3:
> /build/tbm/arts-1.5.8/./flow/gsl/gslcommon.h:244: warning: type qualifiers ignored on function return type
> In file included from libartsflow_la.all_cc.cc:4:
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc: In member function 'void Arts::AudioSubSystem::handleIO(int)':
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc:491: error: 'strerror' was not declared in this scope
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc:483: warning: unused variable 'rSize'
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc: In member function 'void Arts::AudioSubSystem::read(void*, int)':
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc:522: warning: unused variable 'rSize'
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc: In member function 'void Arts::AudioSubSystem::adjustInputBuffer(int)':
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc:604: error: 'memset' was not declared in this scope
> /build/tbm/arts-1.5.8/./flow/audiosubsys.cc:608: error: 'memset' was not declared in this scope
> In file included from libartsflow_la.all_cc.cc:5:
> /build/tbm/arts-1.5.8/./flow/pipebuffer.cc: In constructor 'Arts::PipeSegment::PipeSegment(long int, void*)':
> /build/tbm/arts-1.5.8/./flow/pipebuffer.cc:33: error: 'memcpy' was not declared in this scope
> /build/tbm/arts-1.5.8/./flow/pipebuffer.cc: In member function 'long int Arts::PipeBuffer::read(long int, void*)':
> /build/tbm/arts-1.5.8/./flow/pipebuffer.cc:132: error: 'memcpy' was not declared in this scope
> make[4]: *** [libartsflow_la.all_cc.lo] Error 1
> make[4]: Leaving directory `/build/tbm/arts-1.5.8/obj-x86_64-linux-gnu/flow'
> make[3]: *** [all-recursive] Error 1

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




Reply to: