Package: libsigcx
Severity: normal
Version: 0.6.4-4
Tags: patch

>From my build log:

...
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I/usr/lib/sigc++-1.2/include 
-I/usr/include/sigc++-1.2   -D_REENTRANT   -g -Wall -O2 -MT x_thread_test.o -MD 
-MP -MF ".deps/x_thread_test.Tpo" -c -o x_thread_test.o x_thread_test.cc; \
then mv -f ".deps/x_thread_test.Tpo" ".deps/x_thread_test.Po"; else rm -f 
".deps/x_thread_test.Tpo"; exit 1; fi
../sigcx/tunnel.h: In static member function 'static R 
SigCX::TunnelCallback1<R, P1>::pack_n_tunnel(P1, SigC::Slot1<R, P1>, 
SigCX::Tunnel*, bool) [with R = bool, P1 = const std::string&]':
../sigcx/tunnel.h:288:   instantiated from 'R SigCX::tunnel(SigC::Slot1<R, P1>, 
P1, SigCX::Tunnel*, bool) [with R = bool, P1 = const std::string&]'
x_thread_test.cc:107:   instantiated from here
../sigcx/tunnel.h:223: error: no matching function for call to 
'pack(SigC::Slot1<bool, const std::string&>&, const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >&)'
make[3]: *** [x_thread_test.o] Error 1
make[3]: Leaving directory `/tmp/buildd/libsigcx-0.6.4/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/libsigcx-0.6.4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/libsigcx-0.6.4'
make: *** [debian/stamp-makefile-build] Error 2

I've attached a patch which makes the package compile with g++-4.0.
(Although I didn't check that header thoroughly for other occurrences
of a template function being used before it's defined.)

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=en, LC_CTYPE=en (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8)

-- 
Daniel Schepler              "Please don't disillusion me.  I
[EMAIL PROTECTED]    haven't had breakfast yet."
                                 -- Orson Scott Card
diff -ur libsigcx-0.6.4.old/sigcx/tunnel.h libsigcx-0.6.4/sigcx/tunnel.h
--- libsigcx-0.6.4.old/sigcx/tunnel.h	2003-04-27 18:54:06.000000000 +0000
+++ libsigcx-0.6.4/sigcx/tunnel.h	2005-07-08 05:20:46.000000000 +0000
@@ -188,6 +188,9 @@
 *****  Tunnel 1
 ****************************************************************/
 
+template <class R,class P1> class TunnelCallback1;
+template <class R,class P1>
+  TunnelCallback1<R,P1> *pack(const SigC::Slot1<R,P1>& s,P1 p1);
 
 /** Tunnel callback for 1 arguments. */
 template <class R,class P1>

Reply via email to