Bug 112821 - [patch] Make x11-wm/fbpager compile with gcc-4.2
Summary: [patch] Make x11-wm/fbpager compile with gcc-4.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Roman Bogorodskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-20 23:00 UTC by Henrik Brix Andersen
Modified: 2007-06-17 06:50 UTC (History)
1 user (show)

See Also:


Attachments
patch-Resources.hh (1.84 KB, text/plain)
2007-05-20 23:00 UTC, Henrik Brix Andersen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Brix Andersen 2007-05-20 23:00:10 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-05-20 23:00:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->novel

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-06-17 06:43:15 UTC
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"
Comment 3 Roman Bogorodskiy freebsd_committer freebsd_triage 2007-06-17 06:44:51 UTC
State Changed
From-To: open->closed

Committed, thanks!