Package: dc-qt
Version: 0.2.0.alpha-3
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

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 dc-qt_0.2.0.alpha-3 on em64t by sbuild/amd64 0.53
...
> g++ -o dcpp/ShareManager.o -c -g -ggdb -O0 -DDEBUG -Wall -m64 -DTARGET_X86_64 
> -DHAVE_ASM_ATOMIC_H -I. -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -DXTHREADS 
> -D_REENTRANT -DXUSE_MTSAFE_API -D_GNU_SOURCE -Wno-non-virtual-dtor 
> -Irpcdriver dcpp/ShareManager.cpp
> In file included from 
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/ext/hash_map:64,
>                  from dcpp/stdinc.h:96,
>                  from dcpp/ShareManager.cpp:19:
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/backward_warning.h:32:2:
>  warning: #warning This file includes at least one deprecated or antiquated 
> header. Please consider use of an equivalent, non-deprecated interface for 
> the requested functionality. A list of valid replacements is as follows: Use: 
> Instead of: <sstream>, basic_stringbuf <strstream>, strstreambuf <sstream>, 
> basic_istringstream <strstream>, istrstream <sstream>, basic_ostringstream 
> <strstream>, ostrstream <sstream>, basic_stringstream <strstream>, strstream 
> <unordered_set>, unordered_set <ext/hash_set>, hash_set <unordered_set>, 
> unordered_multiset <ext/hash_set>, hash_multiset <unordered_map>, 
> unordered_map <ext/hash_set>, hash_map <unordered_map>, unordered_multimap 
> <ext/hash_set>, hash_multimap <functional>, bind <functional>, binder1st 
> <functional>, bind <functional>, binder2nd <functional>, bind <functional>, 
> bind1st <functional>, bind <functional>, bind2nd <memory>, unique_ptr 
> <memory>, auto_ptr To disable this warning use -Wno-deprecated.
> In file included from dcpp/Semaphore.h:27,
>                  from dcpp/TimerManager.h:27,
>                  from dcpp/ShareManager.h:26,
>                  from dcpp/ShareManager.cpp:22:
> dcpp/CriticalSection.h: In constructor 'CriticalSection::CriticalSection()':
> dcpp/CriticalSection.h:55: warning: missing braces around initializer for 
> 'pthread_mutex_t::__pthread_mutex_s'
> dcpp/ShareManager.cpp: In member function 'void 
> ShareManager::Directory::search(std::vector<SearchResult*, 
> std::allocator<SearchResult*> >&, std::vector<StringSearch, 
> std::allocator<StringSearch> >&, int, int64_t, int, Client*, size_t)':
> dcpp/ShareManager.cpp:1179: error: 'auto_ptr' was not declared in this scope
> dcpp/ShareManager.cpp:1179: error: expected primary-expression before '>' 
> token
> dcpp/ShareManager.cpp:1179: error: 'newStr' was not declared in this scope
> dcpp/ShareManager.cpp:1185: error: expected primary-expression before '>' 
> token
> dcpp/ShareManager.cpp: In member function 'void 
> ShareManager::Directory::search(std::vector<SearchResult*, 
> std::allocator<SearchResult*> >&, ShareManager::AdcSearch&, size_t)':
> dcpp/ShareManager.cpp:1315: error: 'auto_ptr' was not declared in this scope
> dcpp/ShareManager.cpp:1315: error: expected primary-expression before '>' 
> token
> dcpp/ShareManager.cpp:1315: error: 'newStr' was not declared in this scope
> dcpp/ShareManager.cpp:1321: error: expected primary-expression before '>' 
> token
> scons: *** [dcpp/ShareManager.o] Error 1
> scons: building terminated because of errors.
> make: *** [common-configure-arch] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2

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


Reply via email to