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
/printthread.php 16 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
/printthread.php 16 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
/printthread.php 16 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
/printthread.php 16 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
/printthread.php 16 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
/printthread.php 16 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
/printthread.php 16 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
/printthread.php 16 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
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
Build error with git-84ed1a7 - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5)
+--- Thread: Build error with git-84ed1a7 (/showthread.php?tid=1772)



Build error with git-84ed1a7 - tomlowshang - 10-22-2013

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?


RE: Build error with git-84ed1a7 - NaN - 10-22-2013

(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.


RE: Build error with git-84ed1a7 - tomlowshang - 10-22-2013

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.



RE: Build error with git-84ed1a7 - NaN - 10-23-2013

Yep, need to setup 64bit build. You can fix it by replacing "std::max(0u, " with "std::max<int>(0, "


RE: Build error with git-84ed1a7 - tomlowshang - 10-23-2013

That worked, thanks.