Currently, x11-wm/fbpager doesn't compile with gcc-4.2 as found in recent -CURRENT: source='main.cc' object='fbpager-main.o' libtool=no depfile='.deps/fbpager-main.Po' tmpdepfile='.deps/fbpager-main.TPo' depmo de=gcc3 /bin/sh ../depcomp c++ -DHAVE_CONFIG_H -I. -I. -I.. -IFbTk -O2 -fno-strict-aliasing -pipe -march=prescott -I/usr/l ocal/include -c -o fbpager-main.o `test -f main.cc || echo './'`main.cc source='FbPager.cc' object='fbpager-FbPager.o' libtool=no depfile='.deps/fbpager-FbPager.Po' tmpdepfile='.deps/fbpager-FbPager .TPo' depmode=gcc3 /bin/sh ../depcomp c++ -DHAVE_CONFIG_H -I. -I. -I.. -IFbTk -O2 -fno-strict-aliasing -pipe -march=presco tt -I/usr/local/include -c -o fbpager-FbPager.o `test -f FbPager.cc || echo './'`FbPager.cc In file included from FbPager.cc:40: Resources.hh:13: error: specialization of 'void FbTk::Resource<T>::setFromString(const char*) [with T = bool]' in different nam espace Resources.hh:13: error: from definition of 'void FbTk::Resource<T>::setFromString(const char*) [with T = bool]' Resources.hh:23: error: specialization of 'std::string FbTk::Resource<T>::getString() [with T = bool]' in different namespace Resources.hh:23: error: from definition of 'std::string FbTk::Resource<T>::getString() [with T = bool]' Resources.hh:28: error: specialization of 'void FbTk::Resource<T>::setFromString(const char*) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]' in different namespace Resources.hh:28: error: from definition of 'void FbTk::Resource<T>::setFromString(const char*) [with T = std::basic_string<ch ar, std::char_traits<char>, std::allocator<char> >]' Resources.hh:33: error: specialization of 'std::string FbTk::Resource<T>::getString() [with T = std::basic_string<char, std::ch ar_traits<char>, std::allocator<char> >]' in different namespace Resources.hh:33: error: from definition of 'std::string FbTk::Resource<T>::getString() [with T = std::basic_string<char, std: :char_traits<char>, std::allocator<char> >]' Resources.hh:38: error: specialization of 'void FbTk::Resource<T>::setFromString(const char*) [with T = int]' in different name space Resources.hh:38: error: from definition of 'void FbTk::Resource<T>::setFromString(const char*) [with T = int]' Resources.hh:45: error: specialization of 'std::string FbTk::Resource<T>::getString() [with T = int]' in different namespace Resources.hh:45: error: from definition of 'std::string FbTk::Resource<T>::getString() [with T = int]' Resources.hh:53: error: specialization of 'void FbTk::Resource<T>::setFromString(const char*) [with T = FbPager::FbPager::Align ment]' in different namespace Resources.hh:53: error: from definition of 'void FbTk::Resource<T>::setFromString(const char*) [with T = FbPager::FbPager::Al ignment]' Resources.hh:61: error: specialization of 'std::string FbTk::Resource<T>::getString() [with T = FbPager::FbPager::Alignment]' i n different namespace Resources.hh:61: error: from definition of 'std::string FbTk::Resource<T>::getString() [with T = FbPager::FbPager::Alignment] ' FbPager.cc: In constructor 'FbPager::FbPager::FbPager(int, bool, bool, bool, bool, const char*)': FbPager.cc:271: warning: deprecated conversion from string constant to 'char*' FbPager.cc:277: warning: deprecated conversion from string constant to 'char*' FbPager.cc:278: warning: deprecated conversion from string constant to 'char*' *** Error code 1 Fix: The patch below was taken from Gentoo Linux Bugzilla, originally submitted by Ryan Hill. See http://bugs.gentoo.org/135504 It fixes the build with gcc-4.2 for me. How-To-Repeat: On a -CURRENT box with gcc-4.2: # cd /usr/ports/x11-wm/fbpager # make
Responsible Changed From-To: freebsd-ports-bugs->novel Over to maintainer
novel 2007-06-17 05:43:08 UTC FreeBSD ports repository Added files: x11-wm/fbpager/files patch-Resources.hh Log: Fix build with gcc42. PR: 112821 Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk> Obtained from: Gentoo Linux Bugzilla (bug 135504) Revision Changes Path 1.1 +76 -0 ports/x11-wm/fbpager/files/patch-Resources.hh (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed, thanks!