Description of Problem: While rebuilding qtcups: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -O2 -march=i386 -mcpu=i686 -c qppdoptionitem.cpp -fPIC -DPIC -o .libs/qppdoptionitem.o /usr/include/g++-3/stl_list.h:247: sorry, not implemented: `record_type ' not supported by dump_expr In file included from /usr/include/g++-3/list:34, from /usr/lib/qt3/include/qvaluelist.h:49, from /usr/lib/qt3/include/qtranslator.h:44, from /usr/lib/qt3/include/qapplication.h:45, from qppdoptionitem.cpp:8: /usr/include/g++-3/stl_list.h:247: `template <class _Tp, class _Alloc = {expression error}> struct list' redeclared as different kind of symbol list.xpm:2: previous declaration of `const char *list[24]' qppdoptionitem.cpp: In method `QPPDOptionItem::QPPDOptionItem (global_ppd_file_t *, ppd_option_t *, QListViewItem *, bool)': qppdoptionitem.cpp:16: use of class template `template <_Tp, _Alloc> class list' as expression /usr/lib/qt3/include/qstringlist.h: At top level: list.xpm:2: warning: `const char *list[24]' defined but not used make[2]: *** [qppdoptionitem.lo] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/qtcups-2.0/qtcups' Version-Release number of selected component (if applicable): 2.96-107 How Reproducible: 100% Steps to Reproduce: 1. Try rebuilding qtcups Additional Information: Haven't had the time to come up with a simpler test case yet. Works with gcc 3.1
Just found the real problem, the error message is just misleading.
This is probably not fixable in the 2.96 codebase: list.xpm is included, and does static const char *list[]={ "....." } Then <list> is included and tries to define the template, since the 2.96 libstdc++ is not properly namespace, this fails.
But you can easily #define list list_pixmap and #undef list afterwards.