Salasaga Forum
September 08, 2010, 11:41:55 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: 3rd May 2010 - For new forum members

If you need your account on the forum approved, please please email me directly (justin@salasaga.org) to let me know, and I'll then approve it.

We are getting so many spam forum accounts being generated we can't keep up, and are not bothering to approve new accounts without someone pro-actively emailing us to prove they're a human being.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Compilation errors  (Read 1632 times)
0 Members and 1 Guest are viewing this topic.
frankb
Newbie
*
Posts: 4


View Profile
« on: May 07, 2009, 08:37:24 AM »

Hi all,

./autogen.sh OK
./configure    OK

I've problems with compilation. Here is the output during make

gcc -DHAVE_CONFIG_H -I. -I../..   -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2   -DFONT_DIR=\""//usr/local/share/salasaga/font_outline"\" -DIMAGES_PNG_DIR=\""//usr/local/share/salasaga/icons/72x72"\" -DIMAGES_SVG_DIR=\""//usr/local/share/salasaga/icons/scalable"\" -DLOCALEDIR=\""//usr/local/share/locale"\" -DMOUSE_PTR_PNG_DIR=\""//usr/local/share/salasaga/icons/72x72/pointers"\" -DMOUSE_PTR_SVG_DIR=\""//usr/local/share/salasaga/icons/scalable/pointers"\" -DSOUND_DIR=\""//usr/local/share/salasaga/sounds/"\"   -g -O2 -MT save_preferences_and_exit.o -MD -MP -MF .deps/save_preferences_and_exit.Tpo -c -o save_preferences_and_exit.o save_preferences_and_exit.c
In file included from ../salasaga_types.h:37,
                 from save_preferences_and_exit.c:40:
/usr/include/libintl.h:40: erreur: expected identifier or ‘(’ before ‘const’
/usr/include/libintl.h:45: erreur: expected identifier or ‘(’ before ‘const’
/usr/include/libintl.h:52: erreur: expected identifier or ‘(’ before ‘const’
/usr/include/libintl.h:83: erreur: expected identifier or ‘(’ before ‘const’
/usr/include/libintl.h:87: erreur: expected identifier or ‘(’ before ‘const’
/usr/include/libintl.h:92: erreur: expected identifier or ‘(’ before ‘const’
make[3]: *** [save_preferences_and_exit.o] Erreur 1
make[3]: quittant le répertoire « /usr/local/src/salasaga-0.8.0~alpha5/ide/functions »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /usr/local/src/salasaga-0.8.0~alpha5/ide »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /usr/local/src/salasaga-0.8.0~alpha5 »
make: *** [all] Erreur 2

Any idea for this compilation error ?

Thanks for your replies

Frank
Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #1 on: May 07, 2009, 04:33:57 PM »

Hi Frank,

No worries.  A couple of thoughts, to help figure out what is going wrong

  • Wondering which version of Salasaga's source code that is happening for?
  • Wondering which version of gcc is giving that error?
  • Which linux distribution are you using?  It seems to be using a different version of libintl than what I've coded for. Sad

If you try the version latest source code (from Subversion), does it give a better result?

Regards and best wishes,

Justin Clift
Logged
frankb
Newbie
*
Posts: 4


View Profile
« Reply #2 on: May 11, 2009, 04:55:03 AM »

Hi Frank,

No worries.  A couple of thoughts, to help figure out what is going wrong

  • Wondering which version of Salasaga's source code that is happening for?
  • Wondering which version of gcc is giving that error?
  • Which linux distribution are you using?  It seems to be using a different version of libintl than what I've coded for. Sad

If you try the version latest source code (from Subversion), does it give a better result?

Regards and best wishes,

Justin Clift

Hi Justin,

CentOS 5.3 is the Linux version, i use
gcc 4.1.2-44 (package CentOS)
salasaga 0.8.0~alpha5 is the version i want to compile and this is te last version available on the site !!!  Wink


Best wishes

Frank
« Last Edit: May 11, 2009, 08:57:42 AM by frankb » Logged
frankb
Newbie
*
Posts: 4


View Profile
« Reply #3 on: May 19, 2009, 08:32:22 AM »

Hi Justin,

Your new version don't compile on my linux. I have the same error as with the alpha5 version. It stops at the same point.

Regards and best wishes
Frank
Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #4 on: May 20, 2009, 05:20:33 AM »

Hi Frank,

Ouch, that's not good.  The Alpha 6 release will probably be the most stable and usable too.  Roll Eyes

RHEL/Centos 5.x are an important platform, so I'll make it a priority to get it working.  Most likely this weekend.

Have just started the download of Centos 5.3 (64 bit) DVD image, and will download the 32-bit one after that.

Are you ok to wait a few days until it's workable for you?

Regards and best wishes,

Justin Clift
Logged
frankb
Newbie
*
Posts: 4


View Profile
« Reply #5 on: May 20, 2009, 06:31:20 AM »

Hi Justin,

No problem, i can wait. Good luck for debugging and making it to work on RH/CentOS

Thanks a lot

Frank
Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #6 on: May 21, 2009, 07:04:45 AM »

Thanks Frank, not a problem. Smiley

Regards and best wishes,

Justin Clift
Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #7 on: May 24, 2009, 05:02:09 AM »

Hi Frank,

There were two small-ish problems with the source code when run on Centos 5.3:

  • Centos 5.3 has a really old version of automake, causing problems with the auto configuration part of things.  configure.ac has been adjusted to now function (though with warnings)
  • Also on Centos 5.3, the libgnome.h include file requires libintl.h to be defined before it.  That has now been done too

A new development snapshot of the Alpha 6 source code, with these changes, is available here:

  http://www.salasaga.org/downloads/alpha6_dev/salasaga_20090524.tar.bz2

If you can please test and confirm that it compiles and now works for you, that would be great. Smiley

Regards and best wishes,

Justin Clift
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!