Recent posts - Page 5
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Recent posts

#41
Support / ptokax proces
Last post by hawaj - 10 July, 2021, 16:22:18
is it normal that ptokax is runing twice ????

└─$ ps -aux |grep PtokaX                                                                                                3 ⨯
root         818  0.1  0.1 250604 12792 ?        Sl   15:50   0:01 ./PtokaX -d -c /home/sh/PtokaX
sh          1600  0.0  0.0   6328   652 pts/0    S+   16:20   0:00 grep --color=auto PtokaX
#42
Support / Re: make issue
Last post by hawaj - 08 July, 2021, 00:21:11
ive try to download file list from othere  users and  i cant , i dont think its my client because on othere hubs  i can  do it

is it anything to do with mysql ????? i had no connection from ptokax to mysql ( i forgot to turn on mysql service :P )
#43
Request for scripts / simple welcome script
Last post by hawaj - 07 July, 2021, 12:24:12
hi iam looking fore simple welcome msg on log in script for all users (reg , unreg , etc)
with couple welcome msgs
can any1 help me with that script ????

best regards
#44
Support / Re: make issue
Last post by PPK - 05 July, 2021, 14:20:27
Those warnings not affect functionality in any way. If users can't transfer files, then they need to configure clients correctly.
#45
Support / Re: make issue
Last post by hawaj - 05 July, 2021, 13:45:23
and this is those lines from DeFlood.ccp


const char * DeFloodGetMessage(const uint8_t ui8DefloodType, const uint8_t ui8MsgId) {
    switch(ui8DefloodType) {
        case DEFLOOD_GETNICKLIST:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_GetNickList];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_GetNickList_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_GetNickList_FLOODER];
            }
        case DEFLOOD_MYINFO:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_MyINFO];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_MyINFO_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_MyINFO_FLOODER];
            }
        case DEFLOOD_SEARCH:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_SEARCHES];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SEARCH_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SEARCH_FLOODER];
            }
        case DEFLOOD_CHAT:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_CHAT];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_CHAT_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_CHAT_FLOODER];
            }
        case DEFLOOD_PM:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_PM];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PM_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PM_FLOODER];
            }
        case DEFLOOD_SAME_SEARCH:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_SAME_SEARCHES];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_SEARCH_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_SEARCH_FLOODER];
            }
        case DEFLOOD_SAME_PM:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_SAME_PM];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_PM_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_PM_FLOODER];
            }
        case DEFLOOD_SAME_CHAT:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_SAME_CHAT];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_CHAT_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_CHAT_FLOODER];
            }
        case DEFLOOD_SAME_MULTI_PM:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_SAME_MULTI_PM];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_MULTI_PM_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_MULTI_PM_FLOODER];
            }
        case DEFLOOD_SAME_MULTI_CHAT:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_SAME_MULTI_CHAT];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_MULTI_CHAT_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SAME_MULTI_CHAT_FLOODER];
            }
        case DEFLOOD_CTM:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_CTM];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_CTM_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_CTM_FLOODER];
            }
        case DEFLOOD_RCTM:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_RCTM];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_RCTM_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_RCTM_FLOODER];
            }
        case DEFLOOD_SR:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_SR];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SR_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_SR_FLOODER];
            }
        case DEFLOOD_MAX_DOWN:
            switch(ui8MsgId) {
                case 0:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_PLS_DONT_FLOOD_WITH_DATA];
                case 1:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_DATA_FLOODING];
                case 2:
                    return LanguageManager::m_Ptr->m_sTexts[LAN_DATA_FLOODER];
            }
        case INTERVAL_CHAT:
            return LanguageManager::m_Ptr->m_sTexts[LAN_SECONDS_BEFORE_NEXT_CHAT_MSG];
        case INTERVAL_PM:
            return LanguageManager::m_Ptr->m_sTexts[LAN_SECONDS_BEFORE_NEXT_PM];
        case INTERVAL_SEARCH:
            return LanguageManager::m_Ptr->m_sTexts[LAN_SECONDS_BEFORE_NEXT_SEARCH];
	}
	return "";
}
//---------------------------------------------------------------------------
#46
Support / Re: make issue
Last post by hawaj - 05 July, 2021, 13:36:49
i think this is the reason why users cant download file list from each other

any idea how to fix it ????


/home/sh/PtokaX/core/DeFlood.cpp:254:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  254 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:262:9: note: here
  262 |         case DEFLOOD_MYINFO:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:263:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  263 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:271:9: note: here
  271 |         case DEFLOOD_SEARCH:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:272:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  272 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:280:9: note: here
  280 |         case DEFLOOD_CHAT:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:281:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  281 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:289:9: note: here
  289 |         case DEFLOOD_PM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:290:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  290 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:298:9: note: here
  298 |         case DEFLOOD_SAME_SEARCH:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:299:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  299 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:307:9: note: here
  307 |         case DEFLOOD_SAME_PM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:308:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  308 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:316:9: note: here
  316 |         case DEFLOOD_SAME_CHAT:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:317:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  317 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:325:9: note: here
  325 |         case DEFLOOD_SAME_MULTI_PM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:326:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  326 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:334:9: note: here
  334 |         case DEFLOOD_SAME_MULTI_CHAT:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:335:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  335 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:343:9: note: here
  343 |         case DEFLOOD_CTM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:344:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  344 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:352:9: note: here
  352 |         case DEFLOOD_RCTM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:353:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  353 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:361:9: note: here
  361 |         case DEFLOOD_SR:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:362:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  362 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:370:9: note: here
  370 |         case DEFLOOD_MAX_DOWN:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:371:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  371 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:379:9: note: here
  379 |         case INTERVAL_CHAT:
      |         ^~~~
#47
Support / Re: make issue
Last post by hawaj - 04 July, 2021, 23:14:00
thats clean compile

with changes what i make to file SettingManager.cpp what u told me before


┌──(sh㉿Horus)-[~/PtokaX]
└─$ sudo make -f makefile-mysql lua52
[sudo] hasło użytkownika sh:
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/colUsers.cpp -o /home/sh/PtokaX/obj/colUsers.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/DB-MySQL.cpp -o /home/sh/PtokaX/obj/DB-MySQL.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/DcCommands.cpp -o /home/sh/PtokaX/obj/DcCommands.o
/home/sh/PtokaX/core/DcCommands.cpp: In member function 'void DcCommands::PreProcessData(DcCommand*)':
/home/sh/PtokaX/core/DcCommands.cpp:519:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  519 |                         if(memcmp(pDcCommand->m_sCommand+2, "o: ", 3) == 0) {
      |                         ^~
/home/sh/PtokaX/core/DcCommands.cpp:524:21: note: here
  524 |                     case 'K':
      |                     ^~~~
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/DeFlood.cpp -o /home/sh/PtokaX/obj/DeFlood.o
/home/sh/PtokaX/core/DeFlood.cpp: In function 'const char* DeFloodGetMessage(uint8_t, uint8_t)':
/home/sh/PtokaX/core/DeFlood.cpp:254:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  254 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:262:9: note: here
  262 |         case DEFLOOD_MYINFO:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:263:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  263 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:271:9: note: here
  271 |         case DEFLOOD_SEARCH:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:272:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  272 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:280:9: note: here
  280 |         case DEFLOOD_CHAT:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:281:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  281 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:289:9: note: here
  289 |         case DEFLOOD_PM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:290:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  290 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:298:9: note: here
  298 |         case DEFLOOD_SAME_SEARCH:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:299:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  299 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:307:9: note: here
  307 |         case DEFLOOD_SAME_PM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:308:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  308 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:316:9: note: here
  316 |         case DEFLOOD_SAME_CHAT:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:317:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  317 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:325:9: note: here
  325 |         case DEFLOOD_SAME_MULTI_PM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:326:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  326 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:334:9: note: here
  334 |         case DEFLOOD_SAME_MULTI_CHAT:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:335:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  335 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:343:9: note: here
  343 |         case DEFLOOD_CTM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:344:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  344 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:352:9: note: here
  352 |         case DEFLOOD_RCTM:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:353:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  353 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:361:9: note: here
  361 |         case DEFLOOD_SR:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:362:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  362 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:370:9: note: here
  370 |         case DEFLOOD_MAX_DOWN:
      |         ^~~~
/home/sh/PtokaX/core/DeFlood.cpp:371:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  371 |             switch(ui8MsgId) {
      |             ^~~~~~
/home/sh/PtokaX/core/DeFlood.cpp:379:9: note: here
  379 |         case INTERVAL_CHAT:
      |         ^~~~
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/eventqueue.cpp -o /home/sh/PtokaX/obj/eventqueue.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/GlobalDataQueue.cpp -o /home/sh/PtokaX/obj/GlobalDataQueue.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/hashBanManager.cpp -o /home/sh/PtokaX/obj/hashBanManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/hashUsrManager.cpp -o /home/sh/PtokaX/obj/hashUsrManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/hashRegManager.cpp -o /home/sh/PtokaX/obj/hashRegManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/HubCommands.cpp -o /home/sh/PtokaX/obj/HubCommands.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/HubCommands-AE.cpp -o /home/sh/PtokaX/obj/HubCommands-AE.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/HubCommands-FH.cpp -o /home/sh/PtokaX/obj/HubCommands-FH.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/HubCommands-IQ.cpp -o /home/sh/PtokaX/obj/HubCommands-IQ.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/HubCommands-RZ.cpp -o /home/sh/PtokaX/obj/HubCommands-RZ.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/IP2Country.cpp -o /home/sh/PtokaX/obj/IP2Country.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LanguageManager.cpp -o /home/sh/PtokaX/obj/LanguageManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaBanManLib.cpp -o /home/sh/PtokaX/obj/LuaBanManLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaCoreLib.cpp -o /home/sh/PtokaX/obj/LuaCoreLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaIP2CountryLib.cpp -o /home/sh/PtokaX/obj/LuaIP2CountryLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaProfManLib.cpp -o /home/sh/PtokaX/obj/LuaProfManLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaRegManLib.cpp -o /home/sh/PtokaX/obj/LuaRegManLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaScript.cpp -o /home/sh/PtokaX/obj/LuaScript.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaScriptManager.cpp -o /home/sh/PtokaX/obj/LuaScriptManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaScriptManLib.cpp -o /home/sh/PtokaX/obj/LuaScriptManLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaSetManLib.cpp -o /home/sh/PtokaX/obj/LuaSetManLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaTmrManLib.cpp -o /home/sh/PtokaX/obj/LuaTmrManLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/LuaUDPDbgLib.cpp -o /home/sh/PtokaX/obj/LuaUDPDbgLib.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/ProfileManager.cpp -o /home/sh/PtokaX/obj/ProfileManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/PtokaX-nix.cpp -o /home/sh/PtokaX/obj/PtokaX-nix.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/PXBReader.cpp -o /home/sh/PtokaX/obj/PXBReader.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/pxstring.cpp -o /home/sh/PtokaX/obj/pxstring.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/RegThread.cpp -o /home/sh/PtokaX/obj/RegThread.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/ResNickManager.cpp -o /home/sh/PtokaX/obj/ResNickManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/ServerManager.cpp -o /home/sh/PtokaX/obj/ServerManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/ServerThread.cpp -o /home/sh/PtokaX/obj/ServerThread.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/serviceLoop.cpp -o /home/sh/PtokaX/obj/serviceLoop.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/SettingManager.cpp -o /home/sh/PtokaX/obj/SettingManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/TextConverter.cpp -o /home/sh/PtokaX/obj/TextConverter.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/TextFileManager.cpp -o /home/sh/PtokaX/obj/TextFileManager.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/UdpDebug.cpp -o /home/sh/PtokaX/obj/UdpDebug.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/UDPThread.cpp -o /home/sh/PtokaX/obj/UDPThread.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/User.cpp -o /home/sh/PtokaX/obj/User.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/utility.cpp -o /home/sh/PtokaX/obj/utility.o
c++ -O -g -Wall -Wextra -D_WITH_MYSQL -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -I/usr/include/mysql -I/usr/include/mariadb -c /home/sh/PtokaX/core/ZlibUtility.cpp -o /home/sh/PtokaX/obj/ZlibUtility.o
cd skein; make
make[1]: Wejście do katalogu '/home/sh/PtokaX/skein'
cc -O -Wall -IOptimized_32bit -c /home/sh/PtokaX/skein/Optimized_32bit/skein.c -o /home/sh/PtokaX/skein/obj/skein.o
cc -O -Wall -IOptimized_32bit -c /home/sh/PtokaX/skein/Optimized_32bit/skein_block.c -o /home/sh/PtokaX/skein/obj/skein_block.o
ar rv skein.a /home/sh/PtokaX/skein/obj/skein.o /home/sh/PtokaX/skein/obj/skein_block.o
ar: creating skein.a
a - /home/sh/PtokaX/skein/obj/skein.o
a - /home/sh/PtokaX/skein/obj/skein_block.o
make[1]: Opuszczenie katalogu '/home/sh/PtokaX/skein'
c++ /home/sh/PtokaX/obj/colUsers.o /home/sh/PtokaX/obj/DB-MySQL.o /home/sh/PtokaX/obj/DcCommands.o /home/sh/PtokaX/obj/DeFlood.o /home/sh/PtokaX/obj/eventqueue.o /home/sh/PtokaX/obj/GlobalDataQueue.o /home/sh/PtokaX/obj/hashBanManager.o /home/sh/PtokaX/obj/hashUsrManager.o /home/sh/PtokaX/obj/hashRegManager.o /home/sh/PtokaX/obj/HubCommands.o /home/sh/PtokaX/obj/HubCommands-AE.o /home/sh/PtokaX/obj/HubCommands-FH.o /home/sh/PtokaX/obj/HubCommands-IQ.o /home/sh/PtokaX/obj/HubCommands-RZ.o /home/sh/PtokaX/obj/IP2Country.o /home/sh/PtokaX/obj/LanguageManager.o /home/sh/PtokaX/obj/LuaBanManLib.o /home/sh/PtokaX/obj/LuaCoreLib.o /home/sh/PtokaX/obj/LuaIP2CountryLib.o /home/sh/PtokaX/obj/LuaProfManLib.o /home/sh/PtokaX/obj/LuaRegManLib.o /home/sh/PtokaX/obj/LuaScript.o /home/sh/PtokaX/obj/LuaScriptManager.o /home/sh/PtokaX/obj/LuaScriptManLib.o /home/sh/PtokaX/obj/LuaSetManLib.o /home/sh/PtokaX/obj/LuaTmrManLib.o /home/sh/PtokaX/obj/LuaUDPDbgLib.o /home/sh/PtokaX/obj/ProfileManager.o /home/sh/PtokaX/obj/PtokaX-nix.o /home/sh/PtokaX/obj/PXBReader.o /home/sh/PtokaX/obj/pxstring.o /home/sh/PtokaX/obj/RegThread.o /home/sh/PtokaX/obj/ResNickManager.o /home/sh/PtokaX/obj/ServerManager.o /home/sh/PtokaX/obj/ServerThread.o /home/sh/PtokaX/obj/serviceLoop.o /home/sh/PtokaX/obj/SettingManager.o /home/sh/PtokaX/obj/TextConverter.o /home/sh/PtokaX/obj/TextFileManager.o /home/sh/PtokaX/obj/UdpDebug.o /home/sh/PtokaX/obj/UDPThread.o /home/sh/PtokaX/obj/User.o /home/sh/PtokaX/obj/utility.o /home/sh/PtokaX/obj/ZlibUtility.o /home/sh/PtokaX/skein/skein.a -o PtokaX -lstdc++ -lpthread -lm -lrt -lz -llua5.2 -ltinyxml -lmysqlclient
#48
Support / Re: make issue
Last post by PPK - 04 July, 2021, 22:55:24
This don't make sense. It looks like part of files was build with postgresql and part with sqlite. Try to make clean build.
#49
Support / Re: make issue
Last post by hawaj - 04 July, 2021, 20:26:28
thanke you for that , that helps to sort issue
but ....
now ive got next one .........

┌──(sh㉿Horus)-[~/PtokaX]
└─$ sudo make -f makefile-sqlite
[sudo] hasło użytkownika sh:
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/SettingManager.cpp -o /                                        home/sh/PtokaX/obj/SettingManager.o
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/TextConverter.cpp -o /h                                        ome/sh/PtokaX/obj/TextConverter.o
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/TextFileManager.cpp -o                                         /home/sh/PtokaX/obj/TextFileManager.o
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/UdpDebug.cpp -o /home/s                                        h/PtokaX/obj/UdpDebug.o
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/UDPThread.cpp -o /home/                                        sh/PtokaX/obj/UDPThread.o
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/User.cpp -o /home/sh/Pt                                        okaX/obj/User.o
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/utility.cpp -o /home/sh                                        /PtokaX/obj/utility.o
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.3 -c /home/sh/PtokaX/core/ZlibUtility.cpp -o /hom                                        e/sh/PtokaX/obj/ZlibUtility.o
cd skein; make
make[1]: Wejście do katalogu '/home/sh/PtokaX/skein'
cc -O -Wall -IOptimized_32bit -c /home/sh/PtokaX/skein/Optimized_32bit/skein.c -o /home/sh/PtokaX/skein/obj/skein.o
cc -O -Wall -IOptimized_32bit -c /home/sh/PtokaX/skein/Optimized_32bit/skein_block.c -o /home/sh/PtokaX/skein/obj/skein_block.o
ar rv skein.a /home/sh/PtokaX/skein/obj/skein.o /home/sh/PtokaX/skein/obj/skein_block.o
ar: creating skein.a
a - /home/sh/PtokaX/skein/obj/skein.o
a - /home/sh/PtokaX/skein/obj/skein_block.o
make[1]: Opuszczenie katalogu '/home/sh/PtokaX/skein'
c++ /home/sh/PtokaX/obj/colUsers.o /home/sh/PtokaX/obj/DB-SQLite.o /home/sh/PtokaX/obj/DcCommands.o /home/sh/PtokaX/obj/DeFlood.o /home/sh/PtokaX/o                                        bj/eventqueue.o /home/sh/PtokaX/obj/GlobalDataQueue.o /home/sh/PtokaX/obj/hashBanManager.o /home/sh/PtokaX/obj/hashUsrManager.o /home/sh/PtokaX/obj                                        /hashRegManager.o /home/sh/PtokaX/obj/HubCommands.o /home/sh/PtokaX/obj/HubCommands-AE.o /home/sh/PtokaX/obj/HubCommands-FH.o /home/sh/PtokaX/obj/H                                        ubCommands-IQ.o /home/sh/PtokaX/obj/HubCommands-RZ.o /home/sh/PtokaX/obj/IP2Country.o /home/sh/PtokaX/obj/LanguageManager.o /home/sh/PtokaX/obj/Lua                                        BanManLib.o /home/sh/PtokaX/obj/LuaCoreLib.o /home/sh/PtokaX/obj/LuaIP2CountryLib.o /home/sh/PtokaX/obj/LuaProfManLib.o /home/sh/PtokaX/obj/LuaRegM                                        anLib.o /home/sh/PtokaX/obj/LuaScript.o /home/sh/PtokaX/obj/LuaScriptManager.o /home/sh/PtokaX/obj/LuaScriptManLib.o /home/sh/PtokaX/obj/LuaSetManL                                        ib.o /home/sh/PtokaX/obj/LuaTmrManLib.o /home/sh/PtokaX/obj/LuaUDPDbgLib.o /home/sh/PtokaX/obj/ProfileManager.o /home/sh/PtokaX/obj/PtokaX-nix.o /h                                        ome/sh/PtokaX/obj/PXBReader.o /home/sh/PtokaX/obj/pxstring.o /home/sh/PtokaX/obj/RegThread.o /home/sh/PtokaX/obj/ResNickManager.o /home/sh/PtokaX/o                                        bj/ServerManager.o /home/sh/PtokaX/obj/ServerThread.o /home/sh/PtokaX/obj/serviceLoop.o /home/sh/PtokaX/obj/SettingManager.o /home/sh/PtokaX/obj/Te                                        xtConverter.o /home/sh/PtokaX/obj/TextFileManager.o /home/sh/PtokaX/obj/UdpDebug.o /home/sh/PtokaX/obj/UDPThread.o /home/sh/PtokaX/obj/User.o /home                                        /sh/PtokaX/obj/utility.o /home/sh/PtokaX/obj/ZlibUtility.o /home/sh/PtokaX/skein/skein.a -o PtokaX -lstdc++ -lpthread -lm -lrt -lz -llua5.3 -ltinyx                                        ml -lsqlite3
/usr/bin/ld: /home/sh/PtokaX/obj/serviceLoop.o: warning: relocation against `_ZN12DBPostgreSQL5m_PtrE' in read-only section `.text'
/usr/bin/ld: /home/sh/PtokaX/obj/HubCommands-FH.o: in function `HubCommands::GetInfo(ChatCommand*)':
/home/sh/PtokaX/core/HubCommands-FH.cpp:402: undefined reference to `DBPostgreSQL::m_Ptr'
/usr/bin/ld: /home/sh/PtokaX/core/HubCommands-FH.cpp:402: undefined reference to `DBPostgreSQL::SearchNick(ChatCommand*)'
/usr/bin/ld: /home/sh/PtokaX/obj/HubCommands-FH.o: in function `HubCommands::GetIpInfo(ChatCommand*)':
/home/sh/PtokaX/core/HubCommands-FH.cpp:559: undefined reference to `DBPostgreSQL::m_Ptr'
/usr/bin/ld: /home/sh/PtokaX/core/HubCommands-FH.cpp:559: undefined reference to `DBPostgreSQL::SearchIP(ChatCommand*)'
/usr/bin/ld: /home/sh/PtokaX/obj/HubCommands-RZ.o: in function `HubCommands::Stats(ChatCommand*)':
/home/sh/PtokaX/core/HubCommands-RZ.cpp:427: undefined reference to `PQlibVersion'
/usr/bin/ld: /home/sh/PtokaX/obj/ServerManager.o: in function `ServerManager::Start()':
/home/sh/PtokaX/core/ServerManager.cpp:520: undefined reference to `DBPostgreSQL::DBPostgreSQL()'
/usr/bin/ld: /home/sh/PtokaX/core/ServerManager.cpp:520: undefined reference to `DBPostgreSQL::m_Ptr'
/usr/bin/ld: /home/sh/PtokaX/core/ServerManager.cpp:520: undefined reference to `DBPostgreSQL::m_Ptr'
/usr/bin/ld: /home/sh/PtokaX/obj/ServerManager.o: in function `ServerManager::FinalStop(bool)':
/home/sh/PtokaX/core/ServerManager.cpp:741: undefined reference to `DBPostgreSQL::m_Ptr'
/usr/bin/ld: /home/sh/PtokaX/core/ServerManager.cpp:741: undefined reference to `DBPostgreSQL::~DBPostgreSQL()'
/usr/bin/ld: /home/sh/PtokaX/core/ServerManager.cpp:742: undefined reference to `DBPostgreSQL::m_Ptr'
/usr/bin/ld: /home/sh/PtokaX/obj/serviceLoop.o: in function `ServiceLoop::ReceiveLoop()':
/home/sh/PtokaX/core/serviceLoop.cpp:800: undefined reference to `DBPostgreSQL::m_Ptr'
/usr/bin/ld: /home/sh/PtokaX/core/serviceLoop.cpp:800: undefined reference to `DBPostgreSQL::UpdateRecord(User*)'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make: *** [makefile-sqlite:58: PtokaX] Błąd 1



i hope u can help me with that as well

best regards hawaj
#50
Support / Re: make issue
Last post by PPK - 04 July, 2021, 19:58:00
Change line 507 from:
if(SetBoolCom[szi] != '\0') {

to
if(SetBoolCom[szi][0] != '\0') {


Change line 530 from:
if(SetShortCom[szi] != '\0') {

to
if(SetShortCom[szi][0] != '\0') {


Change line 553 from:
if(SetTxtCom[szi] != '\0') {

to
if(SetTxtCom[szi][0] != '\0') {


Add to line 1115:
break;
SMF spam blocked by CleanTalk