The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/showthread.php 103 forum_permissions
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 2121 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 2121 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 669 mark_thread_read
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1568 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 33 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 82 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 104 errorHandler->error
/showthread.php 1600 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Build error with git-84ed1a7
10-22-2013, 12:02 PM,
#1
Build error with git-84ed1a7
Code:
    CPP build/carsound.o
src/carsound.cpp: In member function ‘void CarSound::Update(const CarDynamics&, float)’:
src/carsound.cpp:332:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
src/carsound.cpp:336:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = grasssound;
                 ^
src/carsound.cpp:341:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = gravelsound;
                 ^
src/carsound.cpp:346:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
src/carsound.cpp:352:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = grasssound;
                 ^
src/carsound.cpp:358:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
scons: *** [build/carsound.o] Error 1
scons: building terminated because of errors.
Any suggestions as to what I am doing wrong?
Reply
10-22-2013, 02:00 PM,
#2
RE: Build error with git-84ed1a7
(10-22-2013, 12:02 PM)tomlowshang Wrote:
Code:
    CPP build/carsound.o
src/carsound.cpp: In member function ‘void CarSound::Update(const CarDynamics&, float)’:
src/carsound.cpp:332:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
src/carsound.cpp:336:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = grasssound;
                 ^
src/carsound.cpp:341:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = gravelsound;
                 ^
src/carsound.cpp:346:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
src/carsound.cpp:352:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = grasssound;
                 ^
src/carsound.cpp:358:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
scons: *** [build/carsound.o] Error 1
scons: building terminated because of errors.
Any suggestions as to what I am doing wrong?
Yeah, that sound selection code wasn't 64bit safe. I've pushed a fix.
Reply
10-22-2013, 10:18 PM,
#3
RE: Build error with git-84ed1a7
Commit 41918ae fixes original error but build fails again with differrent error. Looks like a similar problem.
Code:
CPP build/trackloader.o
src/trackloader.cpp: In member function ‘bool Track::Loader::AddObject(const Track::Loader::Object&)’:
src/trackloader.cpp:692:88: error: no matching function for call to ‘max(unsigned int, std::basic_string<char>::size_type)’
   std::string texname = object.texture.substr(0, std::max(0u, object.texture.length()-4)) + "-misc1.png";
                                                                                        ^
src/trackloader.cpp:692:88: note: candidates are:
In file included from /usr/include/c++/4.8/list:60:0,
                 from src/joeserialize.h:23,
                 from src/mathvector.h:23,
                 from src/bezier.h:23,
                 from src/roadpatch.h:23,
                 from src/roadstrip.h:23,
                 from src/track.h:23,
                 from src/trackloader.h:23,
                 from src/trackloader.cpp:20:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note:   template argument deduction/substitution failed:
src/trackloader.cpp:692:88: note:   deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘std::basic_string<char>::size_type {aka long unsigned int}’)
   std::string texname = object.texture.substr(0, std::max(0u, object.texture.length()-4)) + "-misc1.png";
                                                                                        ^
In file included from /usr/include/c++/4.8/list:60:0,
                 from src/joeserialize.h:23,
                 from src/mathvector.h:23,
                 from src/bezier.h:23,
                 from src/roadpatch.h:23,
                 from src/roadstrip.h:23,
                 from src/track.h:23,
                 from src/trackloader.h:23,
                 from src/trackloader.cpp:20:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note:   template argument deduction/substitution failed:
src/trackloader.cpp:692:88: note:   deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘std::basic_string<char>::size_type {aka long unsigned int}’)
   std::string texname = object.texture.substr(0, std::max(0u, object.texture.length()-4)) + "-misc1.png";
                                                                                        ^
src/trackloader.cpp:706:88: error: no matching function for call to ‘max(unsigned int, std::basic_string<char>::size_type)’
   std::string texname = object.texture.substr(0, std::max(0u, object.texture.length()-4)) + "-misc2.png";
                                                                                        ^
src/trackloader.cpp:706:88: note: candidates are:
In file included from /usr/include/c++/4.8/list:60:0,
                 from src/joeserialize.h:23,
                 from src/mathvector.h:23,
                 from src/bezier.h:23,
                 from src/roadpatch.h:23,
                 from src/roadstrip.h:23,
                 from src/track.h:23,
                 from src/trackloader.h:23,
                 from src/trackloader.cpp:20:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note:   template argument deduction/substitution failed:
src/trackloader.cpp:706:88: note:   deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘std::basic_string<char>::size_type {aka long unsigned int}’)
   std::string texname = object.texture.substr(0, std::max(0u, object.texture.length()-4)) + "-misc2.png";
                                                                                        ^
In file included from /usr/include/c++/4.8/list:60:0,
                 from src/joeserialize.h:23,
                 from src/mathvector.h:23,
                 from src/bezier.h:23,
                 from src/roadpatch.h:23,
                 from src/roadstrip.h:23,
                 from src/track.h:23,
                 from src/trackloader.h:23,
                 from src/trackloader.cpp:20:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note:   template argument deduction/substitution failed:
src/trackloader.cpp:706:88: note:   deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘std::basic_string<char>::size_type {aka long unsigned int}’)
   std::string texname = object.texture.substr(0, std::max(0u, object.texture.length()-4)) + "-misc2.png";
                                                                                        ^
scons: *** [build/trackloader.o] Error 1
scons: building terminated because of errors.
Reply
10-23-2013, 07:30 AM,
#4
RE: Build error with git-84ed1a7
Yep, need to setup 64bit build. You can fix it by replacing "std::max(0u, " with "std::max<int>(0, "
Reply
10-23-2013, 09:20 PM,
#5
RE: Build error with git-84ed1a7
That worked, thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)