Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15921 - workrave doesn't compile
Summary: workrave doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Leonardo Boshell (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-18 08:10 UTC by Jonathan Nall
Modified: 2003-04-08 01:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Nall 2003-02-18 08:10:37 UTC
i'm trying to compile workrave on a ppc box w/ gcc-3.2.2 and get:
XMLConfigurator.cc: In member function `void
   XMLConfigurator::init(GdomeNode*)':
XMLConfigurator.cc:460: `cerr' undeclared (first use this function)
XMLConfigurator.cc:460: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[2]: *** [workrave-XMLConfigurator.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/workrave-1.0.0/work/workrave-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/workrave-1.0.0/work/workrave-1.0.0'make: *** [all] Error 2

adding #include <iostream> to XMLConfigurator.cc fixes the problem. is this just
a ppc thing? i would think not.
Comment 1 Leonardo Boshell (RETIRED) gentoo-dev 2003-02-23 12:17:03 UTC
I think it'more of a gcc problem than a pcc one. I'm able to emerge this package without a problem, although my system is gcc-2.9 based.

If you find that adding that include, everything works, please feel free to modify the ebuild. Thanks a lot.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-26 03:55:35 UTC
leonardo are you still active? e-me please
Comment 3 Radoslaw Stachowiak (RETIRED) gentoo-dev 2003-03-06 13:10:09 UTC
i confirm it (gcc-3.2)  
adding #include <iostream> to src/XMLConfigurator.cc helps. 
Comment 4 Väinö Järvelä 2003-03-10 01:58:18 UTC
workrave has been updated. http://sourceforge.net/project/showfiles.php?group_id=62552

I didn't get it to compile:
Menus.cc: In member function `void Menus::resync_applet()':
Menus.cc:338: `network_log_dialog' undeclared (first use this function)

I have mailed the developers and will post it in here if it isn't solved by then, so don't mail them again about this.
Comment 5 Väinö Järvelä 2003-03-10 18:14:05 UTC
Version 1.2.1 of Workrave now builds fine. Now just update dependency stuff if needed(it worked fine by just renaming the ebuild, but i have updated components). I am going to sleep, if no one else has done it when i have the time.. then i will.
Comment 6 Väinö Järvelä 2003-03-13 00:53:19 UTC
Well, i'm not sure if the ebuild needs updating at all. It compiled for me with only renaming. Maybe if someone with stable-portage-tree tried to compile it? Or just update the ebuild by renaming and wait till errors are posted.. better than not working at all.
Comment 7 Leonardo Boshell (RETIRED) gentoo-dev 2003-04-08 01:44:37 UTC
Version 1.2.2 has been committed. Thanks for your input.