Giter Site home page Giter Site logo

Comments (17)

Meltie2013 avatar Meltie2013 commented on August 16, 2024 3

I did run a workflow run for 20.04 displayed warnings during compiling while I was a work. Going to most likely make a PR for workflows for this project, so they are logged per commit. Also can fail on warnings if needed. I will see if I can get the complete warning list.

from firelands-cata.

seobryn avatar seobryn commented on August 16, 2024

Hi @Tony931023 can you be more explicit? I can't see any errors on this lines... Only Warnings, and of course, we are working to fix the warnings

from firelands-cata.

Tony931023 avatar Tony931023 commented on August 16, 2024

if they are only warnings when compiling, it was just to tell you that it is giving this when compiling

from firelands-cata.

Meltie2013 avatar Meltie2013 commented on August 16, 2024

if they are only warnings when compiling, it was just to tell you that it is giving this when compiling

Upgrade to Ubuntu 21.10. That is a library issue not a source issue. I don't see this warning when compiling the source and I use Arch Linux.

from firelands-cata.

pangolp avatar pangolp commented on August 16, 2024

Currently, I think we have almost all the libraries updated, except for C++20, which I think we are using C++17, but even so, within all, it is up to date. So just in case, consider as my colleagues recommended, to update your operating system version. Or, look for the libraries and compile them manually, although that can bring you problems in other projects. It will depend a lot, if the server where you are compiling the project, has this kernel or several. My recommendation is not to use the same server for all projects, because each of them require libraries that may not be compatible with each other.

from firelands-cata.

pangolp avatar pangolp commented on August 16, 2024

The idea is always to prevent warnings from appearing, but as we are working on three different operating systems (Windows, Linux and MAC) sometimes this is unavoidable because we do not yet have a test system that executes when the pull request is generated. Then, when we have that system, we will ask the people who make the pull request to correct those warnings before it is approved, or in case they don't know how to do it, we will try to help them. I think I use Ubuntu 21.10 (because it is the previous version to bring by default OpenSSL 3.x) and Debian 10 or 11 (I don't remember well, I think 11). And I haven't had any Warning reports during the compilation.

from firelands-cata.

pangolp avatar pangolp commented on August 16, 2024

Only 2 warnings were generated or were there more? @Tony931023

from firelands-cata.

Tony931023 avatar Tony931023 commented on August 16, 2024

@pangolp yes

Quiero sacar un server de prueba para poder hacer reportes y que la comunidad tambien pueda hacer reportes

from firelands-cata.

pangolp avatar pangolp commented on August 16, 2024

@pangolp yes

Quiero sacar un server de prueba para poder hacer reportes y que la comunidad tambien pueda hacer reportes

Tenemos un servidor de pruebas ya. Todos los datos están en el discord. Pero cuantos más reportes mejor. Sin embargo, no solo necesitamos reportes, también necesitamos desarrolladores.

from firelands-cata.

Meltie2013 avatar Meltie2013 commented on August 16, 2024

@pangolp @seobryn This is the commit those warnings are coming from.

Commit:        eb3e2312fb650ab59a270ea7a1b3137e005ae43c 
Author:        SargeroDeV <[email protected]> 
AuthorDate:    Mon Sep 12 15:11:37 2022 
Commit:        GitHub <[email protected]> 
CommitDate:    Mon Sep 12 15:11:37 2022 

@SargeroDeV

Also the methods used are mismatched to begin with. Working on solution.

from firelands-cata.

Tony931023 avatar Tony931023 commented on August 16, 2024

[ 11%] Building CXX object src/common/CMakeFiles/common.dir/Utilities/TaskScheduler.cpp.o
In file included from /home/cloud/firelands-cata/src/common/Utilities/TaskScheduler.cpp:18:
/home/cloud/firelands-cata/src/common/Utilities/TaskScheduler.h:430:11: warning: private field '_schedulerUnit' is not used [-Wunused-private-field]
Unit* _schedulerUnit;
^
/home/cloud/firelands-cata/src/common/Utilities/TaskScheduler.h:431:17: warning: private field '_schedulerGob' is not used [-Wunused-private-field]
GameObject* _schedulerGob;
^
2 warnings generated.

[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/SmartScripts/SmartScriptMgr.cpp.o
/home/cloud/firelands-cata/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp:547:168: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat]
LOG_ERROR("sql.sql", "SmartAIMgr: Entry " SI64FMTD " SourceType %u Event %u Action %u uses non-existent Creature entry %u as target_param1, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.target.invokerSummon.entry);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/cloud/firelands-cata/src/common/Logging/Log.h:186:53: note: expanded from macro 'LOG_ERROR'
LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_ERROR, VA_ARGS)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/cloud/firelands-cata/src/common/Logging/Log.h:157:32: note: expanded from macro 'LOG_MESSAGE_BODY'
check_args(VA_ARGS);
^~~~~~~~~~~
/home/cloud/firelands-cata/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp:1696:161: warning: format specifies type 'long' but the argument has type 'int32' (aka 'int') [-Wformat]
LOG_ERROR("sql.sql", "SmartScript: SMART_ACTION_SET_SPEED have wrong speed type %u for creature " SI64FMTD ", skipped", e.action.setSpeed.type, e.entryOrGuid);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/cloud/firelands-cata/src/common/Logging/Log.h:186:53: note: expanded from macro 'LOG_ERROR'
LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_ERROR, VA_ARGS)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/cloud/firelands-cata/src/common/Logging/Log.h:157:32: note: expanded from macro 'LOG_MESSAGE_BODY'
check_args(VA_ARGS);
^~~~~~~~~~~
2 warnings generated.

from firelands-cata.

acidmanifesto avatar acidmanifesto commented on August 16, 2024

3597ada

At the moment only 3 warnings remain currently that i see.
But only warnings and not errirs.

from firelands-cata.

ZhxChen avatar ZhxChen commented on August 16, 2024

What dependencies are required for Ubuntu 22? I am encountering compilation errors.

make[2]: *** [src/common/CMakeFiles/common.dir/build.make:397: src/common/CMakeFiles/common.dir/Cryptography/OpenSSLCrypto.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:866: src/common/CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

from firelands-cata.

ZhxChen avatar ZhxChen commented on August 16, 2024

/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp: In function ‘void lockingCallback(int, int, const char*, int)’:
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:28:16: error: ‘CRYPTO_LOCK’ was not declared in this scope
28 | if (mode & CRYPTO_LOCK)
| ^~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp: At global scope:
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:34:13: error: variable or field ‘threadIdCallback’ declared void
34 | static void threadIdCallback(CRYPTO_THREADID* id)
| ^~~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:34:30: error: ‘CRYPTO_THREADID’ was not declared in this scope
34 | static void threadIdCallback(CRYPTO_THREADID* id)
| ^~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:34:47: error: ‘id’ was not declared in this scope
34 | static void threadIdCallback(CRYPTO_THREADID* id)
| ^~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp: In function ‘void OpenSSLCrypto::threadsSetup()’:
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:42:24: error: ‘CRYPTO_num_locks’ was not declared in this scope
42 | cryptoLocks.resize(CRYPTO_num_locks());
| ^~~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:48:12: error: ‘threadIdCallback’ was not declared in this scope
48 | (void)&threadIdCallback;
| ^~~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:49:5: error: ‘CRYPTO_THREADID_set_callback’ was not declared in this scope
49 | CRYPTO_THREADID_set_callback(threadIdCallback);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:52:5: error: ‘CRYPTO_set_locking_callback’ was not declared in this scope
52 | CRYPTO_set_locking_callback(lockingCallback);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp: In function ‘void OpenSSLCrypto::threadsCleanup()’:
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:57:5: error: ‘CRYPTO_set_locking_callback’ was not declared in this scope
57 | CRYPTO_set_locking_callback(nullptr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:58:5: error: ‘CRYPTO_THREADID_set_callback’ was not declared in this scope
58 | CRYPTO_THREADID_set_callback(nullptr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/zhxchen/Firelands/firelands-cata/src/common/Cryptography/OpenSSLCrypto.cpp:59:25: error: ‘CRYPTO_num_locks’ was not declared in this scope
59 | for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
| ^~~~~~~~~~~~~~~~
make[2]: *** [src/common/CMakeFiles/common.dir/build.make:397: src/common/CMakeFiles/common.dir/Cryptography/OpenSSLCrypto.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:997: src/common/CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

from firelands-cata.

Meltie2013 avatar Meltie2013 commented on August 16, 2024

@ZhxChen What version of OpenSSL do you have?

from firelands-cata.

ZhxChen avatar ZhxChen commented on August 16, 2024

@Meltie2013
zhxchen@wow434ser:~$ cmake --version
cmake version 3.27.7

CMake suite maintained and supported by Kitware (kitware.com/cmake).
zhxchen@wow434ser:$ dpkg -s libboost-dev | grep Version
Version: 1.74.0.3ubuntu7
zhxchen@wow434ser:
$ dpkg -s libreadline-dev | grep Version
Version: 8.1.2-1
zhxchen@wow434ser:$ mysql --version
mysql Ver 8.0.34-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))
zhxchen@wow434ser:
$ clang --version
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
zhxchen@wow434ser:$ git --version
git version 2.34.1
zhxchen@wow434ser:
$ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

zhxchen@wow434ser:~/Firelands/firelands-cata/build$ sudo cmake "../"
-DCMAKE_INSTALL_PREFIX=../firelands-release
-- Detected 64-bit platform - ok
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/cc
-- GCC: SFMT enabled, SSE2 flags forced
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient.so
-- Found MySQL headers: /usr/include/mysql
-- Found MySQL executable: /usr/bin/mysql

  • FirelandsCore revision : 9610991 2023-10-03 16:44:38 -0400 (master branch)

  • FirelandsCore buildtype : RelWithDebInfo

  • Install core to : /home/zhxchen/Firelands/firelands-cata/firelands-release

  • Install libraries to : /home/zhxchen/Firelands/firelands-cata/firelands-release/lib

  • Install configs to : /home/zhxchen/Firelands/firelands-cata/firelands-release/etc

  • Build world/auth : Yes (default)

  • Build with scripts : Yes (static)

  • Build with modules : Yes (static)

  • Build map/vmap tools : Yes (default)

  • Build unit tests : No (default)

  • Build core w/PCH : Yes (default)

  • Build scripts w/PCH : Yes (default)

  • Show compile-warnings : No (default)

  • Use coreside debug : No (default)

  • Show source tree : Yes (hierarchical)

  • Use GIT revision hash : Yes (default)

-- Running cmake hook: AFTER_LOAD_CONF
-- No hooks registered for AFTER_LOAD_CONF
-- Found Readline library: /usr/lib/x86_64-linux-gnu/libreadline.so
-- Include dir is: /usr/include

  • Script configuration (static):
    |
    +- worldserver
    | +- Commands
    | +- Custom
    | +- EasternKingdoms
    | +- Events
    | +- Kalimdor
    | +- Maelstrom
    | +- Northrend
    | +- OutdoorPvP
    | +- Outland
    | +- Pet
    | +- Spells
    | +- World
    |

  • Modules configuration (static):
    |

-- * Modules config list:
|

-- Configuring done (2.4s)
-- Generating done (0.2s)
-- Build files have been written to: /home/zhxchen/Firelands/firelands-cata/build

from firelands-cata.

seobryn avatar seobryn commented on August 16, 2024

I'm Closing this issue because Iwas testing again And I dont receive this warnings.

from firelands-cata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.