1.9.0 on Arch Linux - compilation error

View: New views
2 Messages — Rating Filter:   Alert me  

1.9.0 on Arch Linux - compilation error

by mik01aj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm trying to compile Workrave 1.9.0-3 on my Arch Linux. I know that I
can use version from repository (1.9.0, too - don't know which one),
but the timers are frozen and I read that this bug has been fixed in
the newest release.

I'm doing ./configure, which ends with the following:

                        Workrave 1.9.0
                       ===================

                        prefix:   /usr

                           OS :   Unix

          GConf configuration :   yes
            XML configuration :   yes

                      Gtk GUI :   yes
                Gnome support :   yes
                  Kde support :   no
                 DBUS support :   no
           Networking support :   yes
                    Exercises :   yes

                    Debugging :   no
                    Test code :   no

...and then make stops with the following:

GlibIniConfigurator.cc: In member function 'void
GlibIniConfigurator::split_key(const std::string&, std::string&,
std::string&) const':
GlibIniConfigurator.cc:251: error: invalid conversion from 'const
char*' to 'char*'
make[4]: *** [libworkrave_backend_la-GlibIniConfigurator.lo] Error 1
make[4]: Leaving directory `/home/mik01aj/workrave-1.9.0/backend/src'
...
make: *** [all] Error 2

My system is ("uname -a" output):
Linux fork 2.6.30-ARCH #1 SMP PREEMPT Mon Jul 20 11:20:32 UTC 2009
i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

I'm using g++ 4.4.1.

Any ideas? :)
Thanks in advance,
Nick D.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Workrave-user mailing list
Workrave-user@...
https://lists.sourceforge.net/lists/listinfo/workrave-user

Re: 1.9.0 on Arch Linux - compilation error

by Rob Caelers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

> GlibIniConfigurator.cc: In member function 'void
> GlibIniConfigurator::split_key(const std::string&, std::string&,
> std::string&) const':
> GlibIniConfigurator.cc:251: error: invalid conversion from 'const
> char*' to 'char*'

try to change

char *slash

into

const char *slash

on line 251 in backend/src/GlibIniConfigurator.cc

Will be fixed in next version (see Workrave's git repository:
http://github.com/rcaelers/workrave/commits/branch_v1_9)

Groetjes,
  Rob

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Workrave-user mailing list
Workrave-user@...
https://lists.sourceforge.net/lists/listinfo/workrave-user