LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Gcompris build fails (http://www.linuxquestions.org/questions/slackware-14/gcompris-build-fails-846815/)

2handband 11-27-2010 12:22 AM

Gcompris build fails
 
I had gcompris running on my -current box a few weeks ago (I built it from source; I simply cannot get the current Slackbuilds.org script to work with the current version), but wound up removing for a couple of reasons. Now I'm trying to reinstall and it won't let me! ./configure runs fine, but when I run make I get this:

Code:

CC    goocanvas.lo
cc1: warnings being treated as errors
goocanvas.c: In function 'goo_canvas_init':
goocanvas.c:481:3: error: implicit declaration of function 'GTK_OBJECT_FLAGS'
goocanvas.c:481:3: error: lvalue required as left operand of assignment
goocanvas.c: In function 'goo_canvas_realize':
goocanvas.c:1457:3: error: lvalue required as left operand of assignment
goocanvas.c: In function 'goo_canvas_map':
goocanvas.c:1569:3: error: lvalue required as left operand of assignment
goocanvas.c: In function 'goo_canvas_expose_event':
goocanvas.c:2729:7: error: implicit declaration of function 'gdk_draw_rectangle'
goocanvas.c: In function 'goo_canvas_focus_in':
goocanvas.c:3261:3: error: lvalue required as left operand of assignment
goocanvas.c: In function 'goo_canvas_focus_out':
goocanvas.c:3277:3: error: lvalue required as left operand of assignment
make[5]: *** [goocanvas.lo] Error 1
make[5]: Leaving directory `/home/gene/gcompris-9.3/src/goocanvas/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/gene/gcompris-9.3/src/goocanvas/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/gene/gcompris-9.3/src/goocanvas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gene/gcompris-9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gene/gcompris-9.3'
make: *** [all] Error 2

Anyone know what's going on?

sahko 11-27-2010 12:50 AM

Running -current guarantees stuff like that will happen every once in a while.
Updated toolchain, GCC, make or even GTK+2, which seems to be the case here.
The first thing to do in most occasions is aquiring the latest upstream available version of the application source code.
Gcompris 9.3 is available, so use that one.
Also take a look at this build script and especially the sed lines.
Hope it helps in the process. :)

2handband 11-27-2010 09:28 AM

I am using 9.3. I'll look over that build script and see what I can learn. I'm studying build scripts... it's my ambition to write them.

2handband 11-27-2010 10:00 AM

I'm going to try something sneaky... I'm going to build the thing with the older tools on one of my 13.1 boxes and then see if the package will install on -current. Will let you know...

2handband 11-27-2010 12:00 PM

Gcompris 9.3 builds successfully on 13.1 with some modifications to the build script. I'll try installing the package on -current this afternoon.

2handband 11-27-2010 07:22 PM

Almost forgot to report back in... the package I built on my 13.1 box installed flawlessly on the -current machine. Thanks, sahko.


All times are GMT -5. The time now is 06:10 PM.