Here you can post threads specific to the current release of the core (099)
AsYlum
Grandmaster Poster
Posts: 115 Joined: Sun Feb 05, 2006 5:24 am
Post
by AsYlum » Thu Aug 30, 2012 11:43 am
I'm trying to compile newest sources revision under debian 64bit and ubuntu 12 32bit. Looks like there are some changes.
cc -x c++ -gstabs+ -fno-strict-aliasing -Wno-unused-result -DINC_PASSERT=1 -DTIXML_USE_STL -Wall -m32 -O3 -DUSE_SYSTEM_ZLIB -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG=\"ubuntu\" -I. -c -I. -o pol/extobj.o pol/extobj.cpp
cc -x c++ -gstabs+ -fno-strict-aliasing -Wno-unused-result -DINC_PASSERT=1 -DTIXML_USE_STL -Wall -m32 -O3 -DUSE_SYSTEM_ZLIB -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG=\"ubuntu\" -I. -c -I. -o pol/module/filemod.o pol/module/filemod.cpp
cc -x c++ -gstabs+ -fno-strict-aliasing -Wno-unused-result -DINC_PASSERT=1 -DTIXML_USE_STL -Wall -m32 -O3 -DUSE_SYSTEM_ZLIB -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG=\"ubuntu\" -I. -c -I. -o pol/fnsearch.o pol/fnsearch.cpp
cc -x c++ -gstabs+ -fno-strict-aliasing -Wno-unused-result -DINC_PASSERT=1 -DTIXML_USE_STL -Wall -m32 -O3 -DUSE_SYSTEM_ZLIB -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG=\"ubuntu\" -I. -c -I. -o pol/gameclck.o pol/gameclck.cpp
pol/gameclck.cpp:25: error: ‘_gameclock_mutex’ was declared ‘extern’ and later ‘static’
pol/gameclck.h:23: error: previous declaration of ‘_gameclock_mutex’
make: *** [pol/gameclck.o] Error 1
That one i could bypass with -fpermissive flag added to makefile but i think it need a little change in code.
cc -x c++ -gstabs+ -fno-strict-aliasing -Wno-unused-result -fpermissive -DINC_PASSERT=1 -DTIXML_USE_STL -Wall -m32 -O3 -DUSE_SYSTEM_ZLIB -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG=\"ubuntu\" -I. -c -I. -o bscript/eprog3.o bscript/eprog3.cpp
cc -x c++ -gstabs+ -fno-strict-aliasing -Wno-unused-result -fpermissive -DINC_PASSERT=1 -DTIXML_USE_STL -Wall -m32 -O3 -DUSE_SYSTEM_ZLIB -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG=\"ubuntu\" -I. -c -I. -o clib/filecont.o clib/filecont.cpp
g++ -gstabs+ -fno-strict-aliasing -Wno-unused-result -fpermissive -DINC_PASSERT=1 -DTIXML_USE_STL -Wall -m32 -O3 -DUSE_SYSTEM_ZLIB -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG=\"ubuntu\" -I. -static -o bin/ecompile ecompile/ecompile.o plib/polver.o plib/pkg.o bscript/compilercfg.o bscript/compiler.o bscript/parser.o bscript/token.o bscript/symcont.o bscript/compctx.o bscript/tkn_strm.o bscript/eprog.o bscript/eprog2.o bscript/userfunc.o bscript/escriptv.o bscript/eprog3.o bscript/fmodule.o bscript/eprog_read.o clib/cfgfile.o clib/dirlist.o clib/esignal.o clib/fileutil.o clib/strutil.o clib/rarray.o clib/filecont.o clib/progver.o clib/passert.o clib/xmain.o clib/endian.o clib/logfile.o clib/fdump.o clib/stracpy.o clib/random.o clib/cmdargs.o clib/strexcpt.o clib/wallclock.o clib/threadhelp.o -lstdc++ -lpthread -pthread -lrt -lm
clib/logfile.o: In function `global constructors keyed to logfile':
/root/svn_exported/pol564/pol-core/clib/logfile.cpp:25: undefined reference to `Mutex::Mutex()'
/root/svn_exported/pol564/pol-core/clib/logfile.cpp:25: undefined reference to `Mutex::~Mutex()'
clib/logfile.o: In function `Log2(char const*, ...)':
/root/svn_exported/pol564/pol-core/clib/hbmutex.h:58: undefined reference to `Mutex::lock()'
/root/svn_exported/pol564/pol-core/clib/hbmutex.h:64: undefined reference to `Mutex::unlock()'
/root/svn_exported/pol564/pol-core/clib/hbmutex.h:64: undefined reference to `Mutex::unlock()'
clib/logfile.o: In function `Log(char const*, ...)':
/root/svn_exported/pol564/pol-core/clib/hbmutex.h:58: undefined reference to `Mutex::lock()'
/root/svn_exported/pol564/pol-core/clib/hbmutex.h:64: undefined reference to `Mutex::unlock()'
/root/svn_exported/pol564/pol-core/clib/hbmutex.h:64: undefined reference to `Mutex::unlock()'
collect2: ld returned 1 exit status
make: *** [bin/ecompile] Error 1
I'm stuck here. Am i missing some lib or is it because of adding boost lib? Any help would be great.
Turley
POL Developer
Posts: 670 Joined: Sun Feb 05, 2006 4:45 am
Post
by Turley » Thu Aug 30, 2012 12:12 pm
Nope nothing to do with boost, its not yet active under linux. Seems under Linux a include is missing for one of my latest changes. I forget to test it under Linux, I will take a look at it tomorrow.
AsYlum
Grandmaster Poster
Posts: 115 Joined: Sun Feb 05, 2006 5:24 am
Post
by AsYlum » Thu Aug 30, 2012 12:18 pm
Thank you. C/C++ and it's syntax is still black magic to me