Package: packagesearch
Version: 2.0.6
Severity: important
Tags: patch

Your package fails to build with G++ 4.1.  I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.

Enrico, please help.

WombleToo == Ben Hutchings <[EMAIL PROTECTED]>

20:13 <WombleToo> Hmm... I wasn't aware that that was an error!
20:13 <tbm> seems to be, at least with 4.1
20:14 <WombleToo> Hang on, I'll put my language lawyer hat on and read
 the standard
20:15 <tbm> ok
20:17 <WombleToo> Oh, yeah, it is banned
20:18 <WombleToo> (section 14.7 paragraph 5 if you want to give a
 reference)
20:19 <tbm> can you take a look at the package.  I'm not sure what the
 best fix is
20:19 <tbm> the file says:
20:19 <tbm> #include <tagcoll/OpSet.cc>
20:19 <tbm> template class Tagcoll::OpSet<int>;
20:19 <tbm>
20:19 <tbm> and /usr/include/tagcoll-1.6/tagcoll/OpSet.cc says
20:20 <tbm> #ifndef INSTANTIATING_TEMPLATES
20:20 <tbm> template class OpSet<string>;
20:20 <tbm> template class OpSet<int>;
20:20 <tbm> #endif
20:20 <tbm>
20:20 <tbm> so I guess the fix would be something like
20:20 <tbm> #ifdef INSTANTIATING_TEMPLATES
20:20 <tbm> template class Tagcoll::OpSet<int>;
20:20 <tbm> #endif
20:20 <tbm> ?
20:20 <WombleToo> I suppose so, though the sense of that test seems wrong.
20:21 <WombleToo> OpSet.cc should probably say #ifdef INSTANTIATING_TEMPLATES
20:21 <WombleToo> I would just punt it to the maintainer (Enrico, right?)
20:22 <tbm> yeah, will do that


> Automatic build of packagesearch_2.0.6 on bigsur by sbuild/mips 1.94
...
> g++ -c -pipe -O2 `pkg-config --cflags libapt-front libtagcoll` -D_REENTRANT 
> -Wall -W  -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB 
> -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. 
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml 
> -I/usr/include/qt4/Qt3Support -I/usr/include/qt4 -I. -I.moc -I.ui -o 
> .obj/instantiations.o instantiations.cpp
> instantiations.cpp:18: error: duplicate explicit instantiation of 'class 
> Tagcoll::OpSet<int>'
> make[2]: *** [.obj/instantiations.o] Error 1
> make[2]: Leaving directory `/build/tbm/packagesearch-2.0.6/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/tbm/packagesearch-2.0.6'
> make: *** [build-stamp] Error 2

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to