Compile on Centos 6

Here you can post threads specific to the current release of the core (099)
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile on Centos 6

Post by boberski »

HELL YEAH! Everything is fixed, I have install mysql-connector-c-shared-6.1.6-1.el6.x86_64.rpm and thas remove SQL compilation error.

Chaos, thanks for help!
Chaos
Former Developer
Posts: 20
Joined: Wed Aug 06, 2014 12:46 am

Re: Compile on Centos 6

Post by Chaos »

aderal wrote:HELL YEAH! Everything is fixed, I have install mysql-connector-c-shared-6.1.6-1.el6.x86_64.rpm and thas remove SQL compilation error.

Chaos, thanks for help!
Sorry, I was a bit "away" during the last days.
But it is good to hear that everything works now!

Best regards,
Thomas.
Chaos
Former Developer
Posts: 20
Joined: Wed Aug 06, 2014 12:46 am

Re: Compile on Centos 6

Post by Chaos »

bodom wrote:I am trying the new CMake system just now, so I think it's better to reply here instead of opening a new thread.

It looks to be very powerful, but it's, in my opinion, a bit undocumented. I have a few questions:
  • What are those libraries (and their symlinks) in the "bin/" folder for? Do i need to copy all of them into my POL's root?
  • Are the statically/dinamically linked versions gone?
  • How do I build with debug symbols enabled?
  • Is the HAVE_MYSQL option gone? Is it now on by default?
  • The old build script and makefile seems now to be broken. Is there any reason why is still there?
Thank you!
Yes, more documentation is needed ... feel free to contribute one! :-)

1.) Yes, you need all libraries to start the executables.
2.) We have only dynamically linked binaries under Linux now.
3.) The debug symbols are activated in the default settings at the moment. Maybe we will add more features regarding debug/release builds in the near future.
4.) HAVE_MYSQL is now automatically set - depending on your system setup. You can not deactivate it manually at the moment. Maybe we will add this possibility again.
5.) The old build script was deleted in the meantime. So, further confusion is avoided.

Best regards,
Thomas.
bodom
Former Developer
Posts: 140
Joined: Sat Feb 21, 2015 7:52 pm

Re: Compile on Centos 6

Post by bodom »

Thank you for your answer.

Yep, I am updating the docs (as usual), you can see the changes on my "cmake" branch on github.

I have noticed one more thing while testing the cmake on a just cloned folder: boost libraries are no longer automatically uncompressed. Is there a reason for this?
Last edited by bodom on Wed Dec 02, 2015 2:11 am, edited 2 times in total.
Chaos
Former Developer
Posts: 20
Joined: Wed Aug 06, 2014 12:46 am

Re: Compile on Centos 6

Post by Chaos »

bodom wrote:Thank you for your answer.

Yep, I am updating the docs (as usual), you can see the changes on my "cmake" branch on github.

I have noticed one more thing while testing the cmake on a just cloned folder: boost libraries are no longer automatically uncompressed. Is there a reason for this?
@Docs: It would be nice if we integrate this in the official source tree. Could you place a pull request for this? (btw.: Your last request was pretty huge. In general, it's easier for us, if you use smaller request. So, we can do faster reviews on small code snippets.)

@Boost: There are still some open questions for the new CMake build system. The "boost question" is one of these. I believe it would be better to use - under Linux - the system specific version of boost instead of the built-in version to benefit from most recent official fixes in boost. However, this decision depends on the stability of the boost API. If we do not track API changes, the POL source might not build any longer as soon as the boost library gets updated in the distris.

Best regards,
Thomas.
bodom
Former Developer
Posts: 140
Joined: Sat Feb 21, 2015 7:52 pm

Re: Compile on Centos 6

Post by bodom »

@Docs: well, the pull request was a small one when I started it, but github is automatically adding every subsequent push to it. At the moment, it also does not merge cleanly because some of the "cmake" commits included refactoring/reindentation. I have managed to review them all and solve conflicts in my "cmake" branch, but I am still testing it prior to merging into master. It will then merge cleanly again. Anyway, I don't think you need to merge the whole at once, but you can also only merge up to a certain commit... or at least you could before the "cmake" merge. Apart from putting max effort on writing understandable commit messages and paying attention to not modify more lines than needed by automatic refactoring/reindentation so that "git diff" output is clean, I do not know how to help the merge process further: if you have any recommendations, please just tell me.

@Boost: I think it would probably be best to try to stick to latest release, but ship them with the source, so that boost-compatibility will be a thing less to worry about. In my experience, linux distros may have huge differences in library versions: some shipping latest beta/unstable ones, others shipping deprecated ones some years old. Anyway, I also think I am not skilled enough to give good advice on this :)

I unfortunately have a linking issue on the "master" official branch (sorry for Italian text, I have tried to set lang to english but apparently it gets overridden later):

Code: Select all

###########################################################################################################
########################### Starting build of POL from www.polserver.com ##################################
###########################################################################################################
System           : Ubuntu 15.10
CPU cores        : 4
Memory size (GB) : 11.7
CMAKE version    : 3.2.2
###################################################################################
########################### Prepraring CMake  #####################################
###################################################################################
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building POL - TINYXML
####################################
### Library search path: /tmp/polserver/lib/tinyxml/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: ./;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -O2 -fPIC -DRELEASE_VERSION
### Flags for shared linking: 
### Flags for module linking: 
### Library output path: /tmp/polserver/lib/tinyxml/../../pol-core/bin
### Building only DYNAMIC LIBRARIES
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: 
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building BSCRIPT
####################################
### Library search path: /tmp/polserver/pol-core/bscript/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: ../;./;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -DINC_PASSERT=1 -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -DINC_PASSERT=1 -O2 -fPIC -DRELEASE_VERSION
### Flags for shared linking: 
### Flags for module linking: 
### Library output path: /tmp/polserver/pol-core/bscript/../bin
### Building only DYNAMIC LIBRARIES
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: pthread
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building POL - CLIB
####################################
### Library search path: /tmp/polserver/pol-core/clib/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: ../..;../;./;./Debugging;./Program;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -O2 -fPIC -DRELEASE_VERSION
### Flags for shared linking: 
### Flags for module linking: 
### Library output path: /tmp/polserver/pol-core/clib/../bin
### Building only DYNAMIC LIBRARIES
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: crypto;pthread
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building POL - PLIB
####################################
### Library search path: /tmp/polserver/pol-core/plib/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: ../..;../;./;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -O2 -fPIC -DRELEASE_VERSION
### Flags for shared linking: 
### Flags for module linking: 
### Library output path: /tmp/polserver/pol-core/plib/../bin
### Building only DYNAMIC LIBRARIES
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: clib
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
########################################################################
##### Building POL 99.0.0 (Break Everything Even Rudder)
########################################################################
### Library search path: /tmp/polserver/pol-core/pol/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: ../;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wno-uninitialized -Wno-ignored-qualifiers -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wno-uninitialized -Wno-ignored-qualifiers -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Program output path: /tmp/polserver/pol-core/pol/../bin
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: bscript;clib;plib;tinyxml;crypto;pthread;z;mysqlclient
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building ECOMPILE
####################################
### Library search path: /tmp/polserver/pol-core/ecompile/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: ../;./;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Program output path: /tmp/polserver/pol-core/ecompile/../bin
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: bscript;clib;plib;pthread
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building RUNECL
####################################
### Library search path: /tmp/polserver/pol-core/runecl/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: .;../;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Program output path: /tmp/polserver/pol-core/runecl/../bin
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: bscript;clib;plib;tinyxml
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building UOCONVERT
####################################
### Library search path: /tmp/polserver/pol-core/uoconvert/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: .;../;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Program output path: /tmp/polserver/pol-core/uoconvert/../bin
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: bscript;clib;plib;pthread
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building UOTOOL
####################################
### Library search path: /tmp/polserver/pol-core/uotool/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: .;../;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Program output path: /tmp/polserver/pol-core/uotool/../bin
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: clib;plib;pthread
####################################
##### Preparing configuration
####################################
Detected architecture is 64 bit
Detected processor type is x86_64
Detected compiler type is GNU GCC 5.2.1
Target system is Linux-4.2.0-18-generic
Target system is Linux
####################################
##### Preparing POL specific configuration
####################################
##### Searching BOOST also in: /tmp/polserver/cmake/../lib/boost_1_55_0
##### BOOST include directory: /tmp/polserver/lib/boost_1_55_0
####################################
##### Building POLTOOL
####################################
### Library search path: /tmp/polserver/pol-core/poltool/../bin;/usr/local/lib;/usr/lib;/usr/lib64
### Header search path: ../;./;/usr/local/include
### Flags for C compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Flags for C++ compiling:  -D_GNU_SOURCE -std=c++11 -DINC_PASSERT=1 -DTIXML_USE_STL -W -Wall -Wno-overloaded-virtual -Wno-switch -Wno-unused -Wno-long-long -Wno-deprecated-declarations -Wno-format -Wno-unused-parameter -Wno-unknown-pragmas -fno-strict-aliasing -Wno-unused-result -fopenmp -Wno-unused-but-set-parameter -Wl,-R. -Wl,-R./lib -Wl,-R../lib -Wl,-R../../lib -O2 -fPIC -DRELEASE_VERSION
### Program output path: /tmp/polserver/pol-core/poltool/../bin
### Will additionally install Linux libraries: 
### Linking static Linux libraries: 
### Linking dynamic Linux libraries: bscript;clib;plib
./build_linux.sh: 20: ./build_linux.sh: --: not found
###################################################################################
########################### Compiling + Linking  ##################################
###################################################################################
############################ Using 5 CPU cores  ##################################
[  2%] Built target tinyxml
[ 13%] Built target clib
[ 17%] Built target plib
[ 25%] [ 29%] Built target bscript
Built target uotool
Linking CXX executable ../../../bin/poltool
[ 31%] Linking CXX executable ../../../bin/ecompile
Built target uoconvert
Linking CXX executable ../../../bin/runecl
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_map_patches"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_usedif"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_mapid"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_static_patches"
collect2: error: ld returned 1 exit status
pol-core/poltool/CMakeFiles/poltool.dir/build.make:88: set di istruzioni per l'obiettivo "../bin/poltool" non riuscito
make[2]: *** [../bin/poltool] Errore 1
CMakeFiles/Makefile2:577: set di istruzioni per l'obiettivo "pol-core/poltool/CMakeFiles/poltool.dir/all" non riuscito
make[1]: *** [pol-core/poltool/CMakeFiles/poltool.dir/all] Errore 2
make[1]: *** Attesa per i processi non terminati....
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_map_patches"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_usedif"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_mapid"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_static_patches"
collect2: error: ld returned 1 exit status
pol-core/ecompile/CMakeFiles/ecompile.dir/build.make:88: set di istruzioni per l'obiettivo "../bin/ecompile" non riuscito
make[2]: *** [../bin/ecompile] Errore 1
CMakeFiles/Makefile2:369: set di istruzioni per l'obiettivo "pol-core/ecompile/CMakeFiles/ecompile.dir/all" non riuscito
make[1]: *** [pol-core/ecompile/CMakeFiles/ecompile.dir/all] Errore 2
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_map_patches"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_usedif"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_mapid"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_static_patches"
collect2: error: ld returned 1 exit status
pol-core/runecl/CMakeFiles/runecl.dir/build.make:414: set di istruzioni per l'obiettivo "../bin/runecl" non riuscito
make[2]: *** [../bin/runecl] Errore 1
CMakeFiles/Makefile2:422: set di istruzioni per l'obiettivo "pol-core/runecl/CMakeFiles/runecl.dir/all" non riuscito
make[1]: *** [pol-core/runecl/CMakeFiles/runecl.dir/all] Errore 2
Linking CXX executable ../../../bin/pol
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_mapid"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_static_patches"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Plib::num_map_patches"
../../../bin/libplib.so.99.0.0: riferimento non definito a "Pol::Core::uo_usedif"
collect2: error: ld returned 1 exit status
pol-core/pol/CMakeFiles/pol.dir/build.make:5139: set di istruzioni per l'obiettivo "../bin/pol" non riuscito
make[2]: *** [../bin/pol] Errore 1
CMakeFiles/Makefile2:317: set di istruzioni per l'obiettivo "pol-core/pol/CMakeFiles/pol.dir/all" non riuscito
make[1]: *** [pol-core/pol/CMakeFiles/pol.dir/all] Errore 2
Makefile:116: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile on Centos 6

Post by boberski »

@bodom I have the same problem... :P after pulling to the newest commit.

Code: Select all

[100%] Linking CXX executable ../../../bin/pol
../../../bin/libplib.so.99.0.0: undefined reference to `Pol::Plib::num_map_patches'
../../../bin/libplib.so.99.0.0: undefined reference to `Pol::Core::uo_usedif'
../../../bin/libplib.so.99.0.0: undefined reference to `Pol::Core::uo_mapid'
../../../bin/libplib.so.99.0.0: undefined reference to `Pol::Plib::num_static_patches'
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/pol] Error 1
make[1]: *** [pol-core/pol/CMakeFiles/pol.dir/all] Error 2
make: *** [all] Error 2
Chaos
Former Developer
Posts: 20
Joined: Wed Aug 06, 2014 12:46 am

Re: Compile on Centos 6

Post by Chaos »

Hi,

This will be fixed asap. ;)

Best regards,
Thomas.
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile on Centos 6

Post by boberski »

New commit, new build error:

Code: Select all

[ 38%] Building CXX object pol-core/pol/CMakeFiles/pol.dir/decay.cpp.o
In file included from /usr/include/mysql/mysql.h:64:0,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/../sqlscrobj.h:28,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/network.h:14,
                 from /home/ancaria/099-source/pol-core/pol/network/packethelper.h:5,
                 from /home/ancaria/099-source/pol-core/pol/network/packetdefs.h:6,
                 from /home/ancaria/099-source/pol-core/pol/ufunc.h:26,
                 from /home/ancaria/099-source/pol-core/pol/core.cpp:27:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
In file included from /usr/include/mysql/mysql.h:64:0,
                 from /home/ancaria/099-source/pol-core/pol/accounts/../network/../globals/../sqlscrobj.h:28,
                 from /home/ancaria/099-source/pol-core/pol/accounts/../network/../globals/network.h:14,
                 from /home/ancaria/099-source/pol-core/pol/accounts/../network/packethelper.h:5,
                 from /home/ancaria/099-source/pol-core/pol/accounts/../network/packetdefs.h:6,
                 from /home/ancaria/099-source/pol-core/pol/accounts/../ufunc.h:26,
                 from /home/ancaria/099-source/pol-core/pol/accounts/acscrobj.cpp:48:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
In file included from /usr/include/mysql/mysql.h:64:0,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/../sqlscrobj.h:28,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/network.h:14,
                 from /home/ancaria/099-source/pol-core/pol/network/packethelper.h:5,
                 from /home/ancaria/099-source/pol-core/pol/network/packetdefs.h:6,
                 from /home/ancaria/099-source/pol-core/pol/ufunc.h:26,
                 from /home/ancaria/099-source/pol-core/pol/dblclick.cpp:39:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
In file included from /usr/include/mysql/mysql.h:64:0,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/../sqlscrobj.h:28,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/network.h:14,
                 from /home/ancaria/099-source/pol-core/pol/network/packethelper.h:5,
                 from /home/ancaria/099-source/pol-core/pol/network/packetdefs.h:6,
                 from /home/ancaria/099-source/pol-core/pol/bowsalut.cpp:25:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
In file included from /usr/include/mysql/mysql.h:64:0,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/../sqlscrobj.h:28,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/network.h:14,
                 from /home/ancaria/099-source/pol-core/pol/network/packethelper.h:5,
                 from /home/ancaria/099-source/pol-core/pol/network/packetdefs.h:6,
                 from /home/ancaria/099-source/pol-core/pol/ufunc.h:26,
                 from /home/ancaria/099-source/pol-core/pol/create.cpp:45:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
In file included from /usr/include/mysql/mysql.h:64:0,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/../sqlscrobj.h:28,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/network.h:14,
                 from /home/ancaria/099-source/pol-core/pol/network/packethelper.h:5,
                 from /home/ancaria/099-source/pol-core/pol/network/packetdefs.h:6,
                 from /home/ancaria/099-source/pol-core/pol/ufunc.h:26,
                 from /home/ancaria/099-source/pol-core/pol/containr.cpp:39:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
In file included from /usr/include/mysql/mysql.h:64:0,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/../sqlscrobj.h:28,
                 from /home/ancaria/099-source/pol-core/pol/network/../globals/network.h:14,
                 from /home/ancaria/099-source/pol-core/pol/network/packethelper.h:5,
                 from /home/ancaria/099-source/pol-core/pol/network/packetdefs.h:6,
                 from /home/ancaria/099-source/pol-core/pol/ufunc.h:26,
                 from /home/ancaria/099-source/pol-core/pol/decay.cpp:29:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
make[2]: *** [pol-core/pol/CMakeFiles/pol.dir/core.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [pol-core/pol/CMakeFiles/pol.dir/bowsalut.cpp.o] Error 1
make[2]: *** [pol-core/pol/CMakeFiles/pol.dir/create.cpp.o] Error 1
make[2]: *** [pol-core/pol/CMakeFiles/pol.dir/accounts/acscrobj.cpp.o] Error 1
make[2]: *** [pol-core/pol/CMakeFiles/pol.dir/dblclick.cpp.o] Error 1
make[2]: *** [pol-core/pol/CMakeFiles/pol.dir/containr.cpp.o] Error 1
make[2]: *** [pol-core/pol/CMakeFiles/pol.dir/decay.cpp.o] Error 1
make[1]: *** [pol-core/pol/CMakeFiles/pol.dir/all] Error 2
make: *** [all] Error 2
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile on Centos 6

Post by boberski »

Code: Select all

/usr/include/mysql/mysql
I have needed header in that folder, not in:

Code: Select all

/usr/include/mysql
bodom
Former Developer
Posts: 140
Joined: Sat Feb 21, 2015 7:52 pm

Re: Compile on Centos 6

Post by bodom »

I can build fine now :D

aderal: sometimes when things gets weird, a "make clean" can solve many issues (basically deleting all the intermediate files and building again from scratch), did you try it?
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile on Centos 6

Post by boberski »

bodom: Yeah... that fix issue... sorry for being an idiot :P
Post Reply