xmoto 0.5.1 on OpenSolaris 2009.06

Discussions about developing

Moderators: Main Administator, Global Moderator

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

xmoto 0.5.1 on OpenSolaris 2009.06

Post by skey » Thu Jul 30, 2009 4:32 pm

Hello!

I'm trying to build xmoto 0.5.1 on OpenSolaris 2009.06 with gcc 3.4.3.

"./configure" runs without any problem, but "gmake -j2" gives an error:
skey@opensolaris:~/Downloads/xmoto-0.5.1$ gmake -j2
Making all in intl
gmake[1]: Entering directory `/export/home/skey/Downloads/xmoto-0.5.1/intl'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/export/home/skey/Downloads/xmoto-0.5.1/intl'
Making all in src
gmake[1]: Entering directory `/export/home/skey/Downloads/xmoto-0.5.1/src'
if test -d ./.svn; then
if ! test -f svnVersion -a "`cat svnVersion`" = "`svnversion -n .`"; then
svnversion -n . > svnVersion;
fi;
fi
if g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="xmoto" -DVERSION="0.5.1" -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DXMOTO_LITTLE_ENDIAN=1 -DHAVE_SQLITE3_H=1 -DHAVE_LIBSQLITE3=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPNG=1 -DHAVE_LIBBZ2=1 -DHAVE_LIBGLU=1 -DHAVE_LIBSDL_MIXER=1 -DHAVE_LIBSDL_NET=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_PTHREAD=1 -DHAVE_LUA_H=1 -DHAVE_LIBCURL=1 -DHAVE_VISIBILITY=0 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WITH_UINTMAX=1 -DHAVE_UNSIGNED_LONG_LONG_INT=1 -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_UINTMAX_T=1 -DHAVE_INTTYPES_H=1 -DUSE_SOLARIS_THREADS=1 -DUSE_SOLARIS_THREADS_WEAK=1 -DHAVE_BUILTIN_EXPECT=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_GETEGID=1 -DHAVE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1 -DHAVE_MUNMAP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE___FSETLOCKING=1 -DHAVE_DECL_FEOF_UNLOCKED=0 -DHAVE_DECL_FGETS_UNLOCKED=0 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_LONG_LONG_INT=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0 -DHAVE_DECL_GETC_UNLOCKED=0 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNOMMGR -Wall -DGAMEDATADIR="/usr/local/share/xmoto" -DLOCALESDIR="/usr/local/share/locale" -DASIAN_TTF_FILE="/usr/share/fonts/truetype/arphic/bkai00mp.ttf" -DALLOW_DEV=0 -DCONFIGURE_DEFAULT_THEME="Classic" -D_REENTRANT -pthreads -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT Image.o -MD -MP -MF ".deps/Image.Tpo" -c -o Image.o Image.cpp;
then mv -f ".deps/Image.Tpo" ".deps/Image.Po"; else rm -f ".deps/Image.Tpo"; exit 1; fi
if g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="xmoto" -DVERSION="0.5.1" -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DXMOTO_LITTLE_ENDIAN=1 -DHAVE_SQLITE3_H=1 -DHAVE_LIBSQLITE3=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPNG=1 -DHAVE_LIBBZ2=1 -DHAVE_LIBGLU=1 -DHAVE_LIBSDL_MIXER=1 -DHAVE_LIBSDL_NET=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_PTHREAD=1 -DHAVE_LUA_H=1 -DHAVE_LIBCURL=1 -DHAVE_VISIBILITY=0 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WITH_UINTMAX=1 -DHAVE_UNSIGNED_LONG_LONG_INT=1 -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_UINTMAX_T=1 -DHAVE_INTTYPES_H=1 -DUSE_SOLARIS_THREADS=1 -DUSE_SOLARIS_THREADS_WEAK=1 -DHAVE_BUILTIN_EXPECT=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_GETEGID=1 -DHAVE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1 -DHAVE_MUNMAP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE___FSETLOCKING=1 -DHAVE_DECL_FEOF_UNLOCKED=0 -DHAVE_DECL_FGETS_UNLOCKED=0 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_LONG_LONG_INT=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0 -DHAVE_DECL_GETC_UNLOCKED=0 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNOMMGR -Wall -DGAMEDATADIR="/usr/local/share/xmoto" -DLOCALESDIR="/usr/local/share/locale" -DASIAN_TTF_FILE="/usr/share/fonts/truetype/arphic/bkai00mp.ttf" -DALLOW_DEV=0 -DCONFIGURE_DEFAULT_THEME="Classic" -D_REENTRANT -pthreads -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT VBezier.o -MD -MP -MF ".deps/VBezier.Tpo" -c -o VBezier.o VBezier.cpp;
then mv -f ".deps/VBezier.Tpo" ".deps/VBezier.Po"; else rm -f ".deps/VBezier.Tpo"; exit 1; fi
In file included from Image.cpp:29:
VFileIO.h:79: error: expected identifier before numeric constant
VFileIO.h:79: error: expected unqualified-id before numeric constant
VFileIO.h:79: error: expected `,' or `;' before numeric constant
Image.cpp: In function `void* _image_io_open(char*, tim_io_mode_t)':
Image.cpp:40: error: expected `;' before '::' token
Image.cpp:40: error: `::openIFile' has not been declared
Image.cpp:41: error: expected `;' before '::' token
Image.cpp:41: error: `::openOFile' has not been declared
Image.cpp: In function `void _image_io_close(void*)':
Image.cpp:53: error: expected `;' before '::' token
Image.cpp:53: warning: statement has no effect
Image.cpp: In function `int _image_io_seek(void*, int, tim_seek_mode_t)':
Image.cpp:63: error: expected `;' before '::' token
Image.cpp:63: warning: statement has no effect
Image.cpp:64: error: expected `;' before '::' token
Image.cpp:64: warning: statement has no effect
Image.cpp:65: error: expected `;' before '::' token
Image.cpp:65: warning: statement has no effect
Image.cpp:75: error: expected `;' before '::' token
Image.cpp:75: error: `::getLength' has not been declared
Image.cpp: In function `int _image_io_read(void*, void*, int)':
Image.cpp:81: error: expected `,' or `;' before '::' token
Image.cpp:83: error: expected `)' before '::' token
Image.cpp: In function `int _image_io_write(void*, void*, int)':
Image.cpp:97: error: expected `)' before '::' token
Image.cpp: In function `int _image_io_eof(void*)':
Image.cpp:110: error: expected `)' before '::' token
gmake[1]: *** [Image.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/export/home/skey/Downloads/xmoto-0.5.1/src'
gmake: *** [all-recursive] Error 1
skey@opensolaris:~/Downloads/xmoto-0.5.1$
What I should do for solve this problem? Perhaps someone can help me. Thanks!

User avatar
Gaivota
Xmoto-Player Advanced
Posts: 233
Joined: Thu Apr 05, 2007 3:01 pm

Post by Gaivota » Thu Jul 30, 2009 4:54 pm

The compilerversion seems pretty old. My gcc is 4.3.2, and my ubuntu system is already kind of old.
Try tu update your gcc.

gaivota

User avatar
aspegic500
Main Administator
Main Administator
Posts: 735
Joined: Thu Apr 06, 2006 4:53 pm

Post by aspegic500 » Fri Jul 31, 2009 10:58 am

Hi,

i don't think that it's a g++ problem.

In a first case, i would tell that FS is a word already used on solaris.
can you try to :

in VFile.h, VFile.cpp, Image.cpp, replace all FS by XMFS please.

unfortunatly for you, FS:: is used in a lot of files.
If this solve the pb, i'll update xmoto to do the replacement.

Nicolas

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

Post by skey » Fri Jul 31, 2009 5:05 pm

I replaced FS by XMFS in VFileIO.h, VFileIO.cpp, Image.cpp and some other files and solved this problem!:) But now, "gmake -j2" gives an error:
then mv -f ".deps/StateUpgradeLevels.Tpo" ".deps/StateUpgradeLevels.Po"; else rm -f ".deps/StateUpgradeLevels.Tpo"; exit 1; fi
if g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="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 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE___FSETLOCKING=1 -DHAVE_DECL_FEOF_UNLOCKED=0 -DHAVE_DECL_FGETS_UNLOCKED=0 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_LONG_LONG_INT=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0 -DHAVE_DECL_GETC_UNLOCKED=0 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNOMMGR -Wall -DGAMEDATADIR="/usr/local/share/xmoto" -DLOCALESDIR="/usr/local/share/locale" -DASIAN_TTF_FILE="/usr/share/fonts/truetype/arphic/bkai00mp.ttf" -DALLOW_DEV=0 -DCONFIGURE_DEFAULT_THEME="Classic" -D_REENTRANT -pthreads -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT StateDownloadGhost.o -MD -MP -MF ".deps/StateDownloadGhost.Tpo" -c -o StateDownloadGhost.o `test -f 'states/StateDownloadGhost.cpp' || echo './'`states/StateDownloadGhost.cpp;
then mv -f ".deps/StateDownloadGhost.Tpo" ".deps/StateDownloadGhost.Po"; else rm -f ".deps/StateDownloadGhost.Tpo"; exit 1; fi
if g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="xmoto" -DVERSION="0.5.1" -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DXMOTO_LITTLE_ENDIAN=1 -DHAVE_SQLITE3_H=1 -DHAVE_LIBSQLITE3=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPNG=1 -DHAVE_LIBBZ2=1 -DHAVE_LIBGLU=1 -DHAVE_LIBSDL_MIXER=1 -DHAVE_LIBSDL_NET=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_PTHREAD=1 -DHAVE_LUA_H=1 -DHAVE_LIBCURL=1 -DHAVE_VISIBILITY=0 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WITH_UINTMAX=1 -DHAVE_UNSIGNED_LONG_LONG_INT=1 -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_UINTMAX_T=1 -DHAVE_INTTYPES_H=1 -DUSE_SOLARIS_THREADS=1 -DUSE_SOLARIS_THREADS_WEAK=1 -DHAVE_BUILTIN_EXPECT=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_GETEGID=1 -DHAVE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1 -DHAVE_MUNMAP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE___FSETLOCKING=1 -DHAVE_DECL_FEOF_UNLOCKED=0 -DHAVE_DECL_FGETS_UNLOCKED=0 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_LONG_LONG_INT=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0 -DHAVE_DECL_GETC_UNLOCKED=0 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNOMMGR -Wall -DGAMEDATADIR="/usr/local/share/xmoto" -DLOCALESDIR="/usr/local/share/locale" -DASIAN_TTF_FILE="/usr/share/fonts/truetype/arphic/bkai00mp.ttf" -DALLOW_DEV=0 -DCONFIGURE_DEFAULT_THEME="Classic" -D_REENTRANT -pthreads -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT XMThread.o -MD -MP -MF ".deps/XMThread.Tpo" -c -o XMThread.o `test -f 'thread/XMThread.cpp' || echo './'`thread/XMThread.cpp;
then mv -f ".deps/XMThread.Tpo" ".deps/XMThread.Po"; else rm -f ".deps/XMThread.Tpo"; exit 1; fi
thread/XMThread.cpp: In member function `int XMThread::threadFunctionEncapsulate()':
thread/XMThread.cpp:213: error: expected `)' before '::' token
thread/XMThread.cpp:213: error: invalid conversion from `int' to `const char*'
thread/XMThread.cpp:213: error: initializing argument 1 of `std::basic_string<_CharT>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
gmake[1]: *** [XMThread.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/export/home/skey/Downloads/xmoto-0.5.1/src'
gmake: *** [all-recursive] Error 1
skey@opensolaris:~/Downloads/xmoto-0.5.1$

User avatar
aspegic500
Main Administator
Main Administator
Posts: 735
Joined: Thu Apr 06, 2006 4:53 pm

Post by aspegic500 » Fri Jul 31, 2009 6:56 pm

hum, i don't understand what is bad on line 213 and around

see http://svn.tuxfamily.org/viewvc.cgi/xmo ... iew=markup

can you confirm that you've exactly the same lines at the same positions ?

what happend if you comment line 212 and 213 (with m_pDb) ; of course it will not work but in a first time, we must make xmoto compile on solaris.

By the way, are you trying to compile xm on the database server at your job ? (solaris is often used for that)

What are you knowledge in c++ ? (to comment it's // at the beginning of the line)

Nicolas

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

Post by skey » Sat Aug 01, 2009 1:04 pm

hum, i don't understand what is bad on line 213 and around

see http://svn.tuxfamily.org/viewvc.cgi/xmo ... iew=markup

can you confirm that you've exactly the same lines at the same positions ?
Yes, in XMThread.cpp at 212 and 213 lines I've:

m_pDb = xmDatabase::instance(m_dbKey);
m_pDb->init(DATABASE_FILE, m_dbReadOnly);
I comment these lines and now gmake gives error:
if g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="xmoto" -DVERSION="0.5.1" -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DXMOTO_LITTLE_ENDIAN=1 -DHAVE_SQLITE3_H=1 -DHAVE_LIBSQLITE3=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPNG=1 -DHAVE_LIBBZ2=1 -DHAVE_LIBGLU=1 -DHAVE_LIBSDL_MIXER=1 -DHAVE_LIBSDL_NET=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_PTHREAD=1 -DHAVE_LUA_H=1 -DHAVE_LIBCURL=1 -DHAVE_VISIBILITY=0 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WITH_UINTMAX=1 -DHAVE_UNSIGNED_LONG_LONG_INT=1 -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_UINTMAX_T=1 -DHAVE_INTTYPES_H=1 -DUSE_SOLARIS_THREADS=1 -DUSE_SOLARIS_THREADS_WEAK=1 -DHAVE_BUILTIN_EXPECT=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_GETEGID=1 -DHAVE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1 -DHAVE_MUNMAP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE___FSETLOCKING=1 -DHAVE_DECL_FEOF_UNLOCKED=0 -DHAVE_DECL_FGETS_UNLOCKED=0 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_LONG_LONG_INT=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0 -DHAVE_DECL_GETC_UNLOCKED=0 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNOMMGR -Wall -DGAMEDATADIR="/usr/local/share/xmoto" -DLOCALESDIR="/usr/local/share/locale" -DASIAN_TTF_FILE="/usr/share/fonts/truetype/arphic/bkai00mp.ttf" -DALLOW_DEV=0 -DCONFIGURE_DEFAULT_THEME="Classic" -D_REENTRANT -pthreads -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT GameInit.o -MD -MP -MF ".deps/GameInit.Tpo" -c -o GameInit.o GameInit.cpp;
then mv -f ".deps/GameInit.Tpo" ".deps/GameInit.Po"; else rm -f ".deps/GameInit.Tpo"; exit 1; fi
GameInit.cpp: In member function `void GameApp::run_load(int, char**)':
GameInit.cpp:260: error: expected `)' before '::' token
GameInit.cpp:264: error: invalid conversion from `int' to `const char*'
GameInit.cpp:264: error: initializing argument 1 of `std::basic_string<_CharT>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
gmake[1]: *** [GameInit.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/export/home/skey/Downloads/xmoto-0.5.1/src'
gmake: *** [all-recursive] Error 1
skey@opensolaris:~/Downloads/xmoto-0.5.1$
By the way, are you trying to compile xm on the database server at your job ? (solaris is often used for that)
No, I trying compile Xmoto on my home PC (x86_64). I played in Xmoto on Linux and I like it :-)
What are you knowledge in c++ ? (to comment it's // at the beginning of the line)
I don't know C++ and some other programming language...[/quote]

User avatar
aspegic500
Main Administator
Main Administator
Posts: 735
Joined: Thu Apr 06, 2006 4:53 pm

Post by aspegic500 » Sat Aug 01, 2009 2:18 pm

ok, for the 2nd time, the pb is linked with the line :

pDb->init(DATABASE_FILE,

i suppose that one of these 3 word is reserved on solaris.

Can you comment this line please ?
or
open xmDatabase.cpp : line 154, change init to dbInit for example (idem in the xmDatabase.h

By the way, i would find it strange that init is reserve, but idem for the 2 others.

If you don't manage, try to comment all pDb->init to see if at least xmoto can compile and that's the last error.

Nicolas

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

Post by skey » Mon Aug 03, 2009 11:07 am

I comment this line and I've:
if g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="xmoto" -DVERSION="0.5.1" -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_ST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VE_ICONV=1 -DICONV_CONST=const -DHAVE_LONG_LONG_INT=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0 -DHAVE_DECL_GETC_UNLOCKED=0 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNOMMGR -Wall -DGAMEDATADIR="/usr/local/share/xmoto" -DLOCALESDIR="/usr/local/share/locale" -DASIAN_TTF_FILE="/usr/share/fonts/truetype/arphic/bkai00mp.ttf" -DALLOW_DEV=0 -DCONFIGURE_DEFAULT_THEME="Classic" -D_REENTRANT -pthreads -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT GameInit.o -MD -MP -MF ".deps/GameInit.Tpo" -c -o GameInit.o GameInit.cpp;
then mv -f ".deps/GameInit.Tpo" ".deps/GameInit.Po"; else rm -f ".deps/GameInit.Tpo"; exit 1; fi
GameInit.cpp: In member function `void GameApp::run_load(int, char**)':
GameInit.cpp:264: error: expected `;' before ')' token
GameInit.cpp:264: warning: right-hand operand of comma has no effect
gmake[1]: *** [GameInit.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/export/home/skey/Downloads/xmoto-0.5.1/src'
gmake: *** [all-recursive] Error 1
skey@opensolaris:~/Downloads/xmoto-0.5.1$
I deleted ")" in line 264:
NULL; // v_useGraphics : NULL because drawlib is still not initialized
and sucessfuly compile xmoto(in /src/Makefile I add "-lnsl -lsocket -lresolv" in LIBS )

now, I type in Terminal "xmoto -v" and game doesn't start:
skey@opensolaris:~/Downloads/xmoto-0.5.1$ xmoto -v
X-Moto 0.5.1
compiled at Aug 3 2009 16:55:53
Systeme is littleendien
User directory: /export/home/skey/.xmoto
Data directory: /usr/local/share/xmoto
Segmentation Fault (core dumped)
skey@opensolaris:~/Downloads/xmoto-0.5.1$
Is it result of commented lines?

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

Post by skey » Sat Nov 14, 2009 12:41 pm

[quote=""aspegic500""]ok, for the 2nd time, the pb is linked with the line :

pDb->init(DATABASE_FILE,

i suppose that one of these 3 word is reserved on solaris.

Can you comment this line please ?
or
open xmDatabase.cpp : line 154, change init to dbInit for example (idem in the xmDatabase.h

By the way, i would find it strange that init is reserve, but idem for the 2 others.

If you don't manage, try to comment all pDb->init to see if at least xmoto can compile and that's the last error.

Nicolas[/quote]

Hi! I again trying compile Xmoto on OpenSolaris, but now, I try to compile Xmoto 0.5.2 on OpemSolaris 2010.02(preview) with GCC 4.3.2. And I have same problems. I tried to change init to dbinit in xmDatabase.cpp and xmDatabase.h files, but it is not give any effect and problem doesn't solved. I think, that word reserved for system it is "DATABASE_FILE".
How can change this word?

User avatar
aspegic500
Main Administator
Main Administator
Posts: 735
Joined: Thu Apr 06, 2006 4:53 pm

Post by aspegic500 » Mon Nov 16, 2009 5:42 pm

i don't think this word is reserved, because too complex.
You can change it in all xmoto files including it (i thing there are 2 : a .h and a .cpp, or perhaps only one in the .cpp)

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

Post by skey » Wed Nov 18, 2009 1:05 pm

It was my mistake: I didn't change "FS" to "XMFS" in line 35 in XMSession_default.h file. When I did it, "gmake" runs without any problems and Xmoto works properly!

Thank you aspegic500 and Gaivota!

And personally a very big thanks to aspegic500 :-)

p.s.
Binary package of Xmoto-0.5.2 for OpenSolaris avaible on my site:
http://www.sunware.programist.ru/en/

User avatar
aspegic500
Main Administator
Main Administator
Posts: 735
Joined: Thu Apr 06, 2006 4:53 pm

Post by aspegic500 » Wed Nov 18, 2009 2:57 pm

is it possible that you propose a patch to fix the pb on the xmoto sources please ?

svn diff > solaris_compilation.patch

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

Post by skey » Wed Nov 18, 2009 6:33 pm

I downloaded Xmoto-0.5.2 from SVN( svn co [url=svn://svn.tuxfamily.org/svnroot/xmoto/xmoto/tags/V_0_5_2]svn://svn.tuxfamily.org/svnroot/xmoto/x ... gs/V_0_5_2[/url] xmoto) and copy all files from my Xmoto-0.5.2 folder to this folder. Then I did "svn diff > solaris_compilation.patch". You can download file from my mailbox: http://skey.xaker.ru/solaris_compilation.patch.bz2

User avatar
Gaivota
Xmoto-Player Advanced
Posts: 233
Joined: Thu Apr 05, 2007 3:01 pm

Post by Gaivota » Wed Nov 18, 2009 6:48 pm

Please use the current svn branch to create your patch. Your doesnt patch without problems against current svn.
Thx btw.

gaivota

skey
Xmoto Player
Xmoto Player
Posts: 8
Joined: Thu Jul 30, 2009 4:17 pm

Post by skey » Thu Nov 19, 2009 7:25 am


Post Reply

Return to “Developer's side”

Who is online

Users browsing this forum: No registered users and 1 guest