Ok guys, I completly removed whole openttd-1.4.0 folder and did everything again. I did that also after all failed compilations, so all builds are from clean directory + necesary changes mades. Same results anyway.
More details
Code: Select all
eskymak@unknown:~/turris/openttd-1.4.0$ CC=powerpc-openwrt-linux-gcc CXX=powerpc-openwrt-linux-g++ ./configure \
> --build=x86_64-linux-gnu --host=powerpc-openwrt-linux-uclibcspe \
> --enable-dedicated \
> --without-zlib --without-liblzma --without-liblzo2 --without-png --without-xdg-basedir
checking awk... awk
detecting OS... UNIX
checking build system type... x86_64-linux-gnu
checking host system type... powerpc-openwrt-linux-uclibcspe
checking universal build... no
checking build cc... x86_64-linux-gnu-gcc
checking host cc... powerpc-openwrt-linux-uclibcspe-gcc
checking build c++... x86_64-linux-gnu-g++
checking host c++... powerpc-openwrt-linux-uclibcspe-g++
checking host strip... powerpc-openwrt-linux-uclibcspe-strip
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 32 bits
detecting SSE... not found
checking static... no
checking unicode... no
using debug level... no
using desync debug level... no
using link time optimization... no
checking OSX sysroot... not OSX, skipping
checking Allegro... dedicated server, skipping
checking SDL... dedicated server, skipping
checking COCOA... dedicated server, skipping
checking GDI video driver... dedicated server, skipping
checking dedicated... found
checking console application... not Windows, skipping
checking network... found
checking squirrel... found
checking translator... no
checking assert... disabled
checking zlib... disabled
WARNING: zlib was not detected or disabled
WARNING: OpenTTD doesn't require zlib, but it does mean that many features
WARNING: (like loading most old savegames/scenarios, loading heightmaps,
WARNING: using PNG, or using fonts, ...) will be disabled.
WARNING: We strongly suggest you to install zlib.
checking liblzma... disabled
WARNING: lzma was not detected or disabled
WARNING: OpenTTD doesn't require lzma, but it does mean that many features
WARNING: (like loading most savegames/scenarios and joining most servers)
WARNING: will be disabled.
WARNING: We strongly suggest you to install liblzma.
configure: error: no liblzma detected
checking lzo2... disabled
WARNING: liblzo2 was not detected or disabled
WARNING: OpenTTD doesn't require liblzo2, but it does mean that
WARNING: loading old savegames/scenarios will be disabled.
WARNING: We strongly suggest you to install liblzo2.
checking libxdg_basedir... disabled
checking libpng... disabled
checking libfreetype... dedicated server, skipping
checking libfontconfig... dedicated server, skipping
checking libicu... dedicated server, skipping
checking psp-config... not PSP, skipping
checking libtimidity... not found
checking direct-music... not Windows, skipping
checking sort... sort
checking endianess... AUTO
suppress language errors... no
checking stripping... powerpc-openwrt-linux-uclibcspe-strip -s
checking distcc... no (only used when forced)
checking ccache... no (only used when forced)
checking grfcodec... needs at least version 6.0.2 (r949), disabled
checking nforenum... needs at least version 6.0.2 (r949), disabled
checking OSX application bundle... not OSX, skipping
checking revision... source tarball
checking iconv... not OSX, skipping
personal home directory... .openttd
shared data directory... none
installation directory... /
icon theme directory... share/icons/hicolor
manual page directory... share/man/man6
menu item directory... share/applications
using CFLAGS_BUILD... -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -Wno-free-nonheap-object -rdynamic -D_FORTIFY_SOURCE=2 -O1 -DNDEBUG
using CXXFLAGS_BUILD... -std=gnu++0x -Wno-narrowing
using LDFLAGS_BUILD... -rdynamic
using CFLAGS... -O2 -fomit-frame-pointer -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -rdynamic -DUNIX -D_FORTIFY_SOURCE=2 -I/home/eskymak/turris/openttd-1.4.0/src/3rdparty/squirrel/include -DDEDICATED -DENABLE_NETWORK -DNDEBUG -DWITH_PERSONAL_DIR -DPERSONAL_DIR=\".openttd\" -DGLOBAL_DATA_DIR=\"/usr/local/share/games/openttd\"
using CXXFLAGS... -std=gnu++0x
using LDFLAGS... -lstdc++ -lpthread -lc -rdynamic
Generating Makefile...
Generating menu item...
Generating lang/Makefile...
Generating setting/Makefile...
Generating grf/Makefile...
Generating objs/Makefile...
eskymak@unknown:~/turris/openttd-1.4.0$ make bundle
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/lang'
[LANG] Compiling and Linking endian_check
[LANG] Testing endianness for host
[LANG] Compiling core/alloc_func.cpp
[LANG] Compiling string.cpp
[LANG] Compiling strgen/strgen_base.cpp
[LANG] Compiling strgen/strgen.cpp
[LANG] Compiling getoptdata.cpp
[LANG] Compiling and Linking strgen
[LANG] Generating table/strings.h
[LANG] Compiling language afrikaans
[LANG] Compiling language arabic_egypt
[LANG] Compiling language basque
[LANG] Compiling language belarusian
[LANG] Compiling language brazilian_portuguese
[LANG] Compiling language bulgarian
[LANG] Compiling language catalan
[LANG] Compiling language croatian
[LANG] Compiling language czech
[LANG] Compiling language danish
[LANG] Compiling language dutch
[LANG] Compiling language english_AU
[LANG] Compiling language english
[LANG] Compiling language english_US
[LANG] Compiling language esperanto
[LANG] Compiling language estonian
[LANG] Compiling language faroese
[LANG] Compiling language finnish
[LANG] Compiling language french
[LANG] Compiling language gaelic
[LANG] Compiling language galician
[LANG] Compiling language german
[LANG] Compiling language greek
[LANG] Compiling language hebrew
[LANG] Compiling language hungarian
[LANG] Compiling language icelandic
[LANG] Compiling language indonesian
[LANG] Compiling language irish
[LANG] Compiling language italian
[LANG] Compiling language japanese
[LANG] Compiling language korean
[LANG] Compiling language latvian
[LANG] Compiling language lithuanian
[LANG] Compiling language luxembourgish
[LANG] Compiling language malay
[LANG] Compiling language norwegian_bokmal
[LANG] Compiling language norwegian_nynorsk
[LANG] Compiling language polish
[LANG] Compiling language portuguese
[LANG] Compiling language romanian
[LANG] Compiling language russian
[LANG] Compiling language serbian
[LANG] Compiling language simplified_chinese
[LANG] Compiling language slovak
[LANG] Compiling language slovenian
[LANG] Compiling language spanish
[LANG] Compiling language swedish
[LANG] Compiling language tamil
[LANG] Compiling language thai
[LANG] Compiling language traditional_chinese
[LANG] Compiling language turkish
[LANG] Compiling language ukrainian
[LANG] Compiling language vietnamese
[LANG] Compiling language welsh
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/lang'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/setting'
[SETTING] Compiling and Linking endian_check
[SETTING] Testing endianness for host
[SETTING] Compiling core/alloc_func.cpp
[SETTING] Compiling string.cpp
[SETTING] Compiling ini_load.cpp
[SETTING] Compiling settingsgen/settingsgen.cpp
[SETTING] Compiling getoptdata.cpp
[SETTING] Compiling and Linking settings_gen
[SETTING] Generating table/settings.h
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/setting'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/extra_grf'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/extra_grf'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
[SRC] Compiling and Linking endian_check
[SRC] Testing endianness for target
[SRC] Compiling and linking depend
[SRC] DEP CHECK (all files)
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
[SRC] Compiling ai/ai_config.cpp
[SRC] Compiling ai/ai_core.cpp
[SRC] Compiling ai/ai_gui.cpp
[SRC] Compiling ai/ai_info.cpp
[SRC] Compiling ai/ai_instance.cpp
[SRC] Compiling ai/ai_scanner.cpp
[SRC] Compiling aircraft_cmd.cpp
[SRC] Compiling aircraft_gui.cpp
[SRC] Compiling airport.cpp
[SRC] Compiling airport_gui.cpp
[SRC] Compiling animated_tile.cpp
[SRC] Compiling articulated_vehicles.cpp
[SRC] Compiling autoreplace_cmd.cpp
[SRC] Compiling autoreplace.cpp
[SRC] Compiling autoreplace_gui.cpp
[SRC] Compiling base_consist.cpp
[SRC] Compiling blitter/base.cpp
[SRC] Compiling blitter/null.cpp
[SRC] Compiling bmp.cpp
[SRC] Compiling bootstrap_gui.cpp
[SRC] Compiling bridge_gui.cpp
[SRC] Compiling bridge_map.cpp
[SRC] Compiling build_vehicle_gui.cpp
[SRC] Compiling cargoaction.cpp
[SRC] Compiling cargomonitor.cpp
[SRC] Compiling cargopacket.cpp
[SRC] Compiling cargotype.cpp
[SRC] Compiling clear_cmd.cpp
[SRC] Compiling command.cpp
[SRC] Compiling company_cmd.cpp
[SRC] Compiling company_gui.cpp
[SRC] Compiling console_cmds.cpp
[SRC] Compiling console.cpp
[SRC] Compiling console_gui.cpp
[SRC] Compiling core/alloc_func.cpp
[SRC] Compiling core/bitmath_func.cpp
[SRC] Compiling core/geometry_func.cpp
[SRC] Compiling core/math_func.cpp
[SRC] Compiling core/pool_func.cpp
[SRC] Compiling core/random_func.cpp
[SRC] Compiling cpu.cpp
[SRC] Compiling crashlog.cpp
[SRC] Compiling currency.cpp
[SRC] Compiling date.cpp
[SRC] Compiling date_gui.cpp
[SRC] Compiling debug.cpp
[SRC] Compiling dedicated.cpp
[SRC] Compiling depot_cmd.cpp
[SRC] Compiling depot.cpp
[SRC] Compiling depot_gui.cpp
[SRC] Compiling disaster_cmd.cpp
[SRC] Compiling dock_gui.cpp
[SRC] Compiling driver.cpp
[SRC] Compiling economy.cpp
[SRC] Compiling effectvehicle.cpp
[SRC] Compiling elrail.cpp
[SRC] Compiling engine.cpp
[SRC] Compiling engine_gui.cpp
[SRC] Compiling error_gui.cpp
[SRC] Compiling fileio.cpp
[SRC] Compiling fios.cpp
[SRC] Compiling fios_gui.cpp
[SRC] Compiling fontcache.cpp
[SRC] Compiling fontdetection.cpp
[SRC] Compiling game/game_config.cpp
[SRC] Compiling game/game_core.cpp
[SRC] Compiling game/game_info.cpp
[SRC] Compiling game/game_instance.cpp
[SRC] Compiling game/game_scanner.cpp
[SRC] Compiling game/game_text.cpp
[SRC] Compiling gamelog.cpp
[SRC] Compiling genworld.cpp
[SRC] Compiling genworld_gui.cpp
[SRC] Compiling gfx.cpp
[SRC] Compiling gfxinit.cpp
[SRC] Compiling gfx_layout.cpp
[SRC] Compiling goal.cpp
[SRC] Compiling goal_gui.cpp
[SRC] Compiling graph_gui.cpp
[SRC] Compiling ground_vehicle.cpp
[SRC] Compiling group_cmd.cpp
[SRC] Compiling group_gui.cpp
[SRC] Compiling heightmap.cpp
[SRC] Compiling highscore.cpp
[SRC] Compiling highscore_gui.cpp
[SRC] Compiling hotkeys.cpp
[SRC] Compiling cheat.cpp
[SRC] Compiling cheat_gui.cpp
[SRC] Compiling industry_cmd.cpp
[SRC] Compiling industry_gui.cpp
[SRC] Compiling ini.cpp
[SRC] Compiling ini_load.cpp
[SRC] Compiling intro_gui.cpp
[SRC] Compiling landscape.cpp
[SRC] Compiling linkgraph/demands.cpp
[SRC] Compiling linkgraph/flowmapper.cpp
[SRC] Compiling linkgraph/linkgraph.cpp
[SRC] Compiling linkgraph/linkgraph_gui.cpp
[SRC] Compiling linkgraph/linkgraphjob.cpp
[SRC] Compiling linkgraph/linkgraphschedule.cpp
[SRC] Compiling linkgraph/mcf.cpp
[SRC] Compiling linkgraph/refresh.cpp
[SRC] Compiling main_gui.cpp
[SRC] Compiling map.cpp
[SRC] Compiling misc_cmd.cpp
[SRC] Compiling misc/countedobj.cpp
[SRC] Compiling misc.cpp
[SRC] Compiling misc/dbg_helpers.cpp
In file included from /home/eskymak/turris/openttd-1.4.0/src/misc/str.hpp:17:0,
from /home/eskymak/turris/openttd-1.4.0/src/misc/dbg_helpers.h:18,
from /home/eskymak/turris/openttd-1.4.0/src/misc/dbg_helpers.cpp:14:
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In destructor 'CStrA::~CStrA()':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(Trackdir)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
In function 'CStrA ComposeNameT(E, T&, const char*, E, const char*) [with E = TrackdirBits, T = const char* const [16]]',
inlined from 'CStrA ValueStr(TrackdirBits)' at /home/eskymak/turris/openttd-1.4.0/src/misc/dbg_helpers.cpp:34:113:
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(TrackdirBits)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(DiagDirection)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(SignalType)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA TileStr(TileIndex)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
In member function 'void ByteBlob::SmartAlloc(size_t)',
inlined from 'CStrA DumpTarget::GetCurrentStructName()' at /home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:242:50:
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'CStrA DumpTarget::GetCurrentStructName()':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'void DumpTarget::WriteTile(const char*, TileIndex)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'void DumpTarget::EndStruct()':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'void DumpTarget::BeginStruct(size_t, const char*, const void*)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
[SRC] Compiling misc/getoptdata.cpp
[SRC] Compiling misc_gui.cpp
[SRC] Compiling mixer.cpp
[SRC] Compiling music.cpp
[SRC] Compiling music_gui.cpp
[SRC] Compiling music/null_m.cpp
[SRC] Compiling network/core/address.cpp
[SRC] Compiling network/core/core.cpp
[SRC] Compiling network/core/host.cpp
[SRC] Compiling network/core/packet.cpp
[SRC] Compiling network/core/tcp_admin.cpp
[SRC] Compiling network/core/tcp_connect.cpp
[SRC] Compiling network/core/tcp_content.cpp
[SRC] Compiling network/core/tcp.cpp
[SRC] Compiling network/core/tcp_game.cpp
[SRC] Compiling network/core/tcp_http.cpp
[SRC] Compiling network/core/udp.cpp
[SRC] Compiling network/network_admin.cpp
[SRC] Compiling network/network_client.cpp
[SRC] Compiling network/network_command.cpp
[SRC] Compiling network/network_content.cpp
[SRC] Compiling network/network_content_gui.cpp
[SRC] Compiling network/network.cpp
[SRC] Compiling network/network_gamelist.cpp
[SRC] Compiling network/network_gui.cpp
[SRC] Compiling network/network_chat_gui.cpp
[SRC] Compiling network/network_server.cpp
[SRC] Compiling network/network_udp.cpp
[SRC] Compiling newgrf_airport.cpp
[SRC] Compiling newgrf_airporttiles.cpp
[SRC] Compiling newgrf_canal.cpp
[SRC] Compiling newgrf_cargo.cpp
[SRC] Compiling newgrf_commons.cpp
[SRC] Compiling newgrf_config.cpp
[SRC] Compiling newgrf.cpp
[SRC] Compiling newgrf_debug_gui.cpp
[SRC] Compiling newgrf_engine.cpp
[SRC] Compiling newgrf_generic.cpp
[SRC] Compiling newgrf_gui.cpp
[SRC] Compiling newgrf_house.cpp
[SRC] Compiling newgrf_industries.cpp
[SRC] Compiling newgrf_industrytiles.cpp
[SRC] Compiling newgrf_object.cpp
[SRC] Compiling newgrf_railtype.cpp
[SRC] Compiling newgrf_sound.cpp
[SRC] Compiling newgrf_spritegroup.cpp
[SRC] Compiling newgrf_station.cpp
[SRC] Compiling newgrf_storage.cpp
[SRC] Compiling newgrf_text.cpp
[SRC] Compiling newgrf_town.cpp
[SRC] Compiling newgrf_townname.cpp
[SRC] Compiling news_gui.cpp
[SRC] Compiling object_cmd.cpp
[SRC] Compiling object_gui.cpp
[SRC] Compiling openttd.cpp
[SRC] Compiling order_backup.cpp
[SRC] Compiling order_cmd.cpp
[SRC] Compiling order_gui.cpp
[SRC] Compiling osk_gui.cpp
[SRC] Compiling os/unix/crashlog_unix.cpp
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp:24:23: fatal error: execinfo.h: No such file or directory
compilation terminated.
make[1]: *** [os/unix/crashlog_unix.o] Error 1
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
make: *** [all] Error 1
So i opened crashlog_unix.cpp and commented out line 8:
Where should be this file located?
Next try:
Code: Select all
[SRC] Compiling os/unix/crashlog_unix.cpp
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp: In member function 'virtual char* CrashLogUnix::LogStacktrace(char*, const char*) const':
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp:111:52: error: 'backtrace' was not declared in this scope
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp:113:56: error: 'backtrace_symbols' was not declared in this scope
make[1]: *** [os/unix/crashlog_unix.o] Error 1
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
make: *** [all] Error 1
This code
Code: Select all
#if defined(__GLIBC__)
void *trace[64];
int trace_size = backtrace(trace, lengthof(trace));
char **messages = backtrace_symbols(trace, trace_size);
for (int i = 0; i < trace_size; i++) {
buffer += seprintf(buffer, last, " [%02i] %s\n", i, messages[i]);
}
Modified to __NOGLIBC__
Code: Select all
#if defined(__NOGLIBC__)
void *trace[64];
int trace_size = backtrace(trace, lengthof(trace));
char **messages = backtrace_symbols(trace, trace_size);
for (int i = 0; i < trace_size; i++) {
buffer += seprintf(buffer, last, " [%02i] %s\n", i, messages[i]);
}
After that, compilation was succefull.
So created new user on my device, uploaded bundle
Code: Select all
]eskymak@Jurris:~/bundle$ ls
COPYING changelog.txt known-bugs.txt media scripts
ai docs lang openttd
baseset game man readme.txt
and got:
Code: Select all
eskymak@Jurris:~/bundle$ ./openttd -D -d 3
dbg: [misc] /sd/home/eskymak/.openttd/ found as config directory
dbg: [misc] /sd/home/eskymak/.openttd/ found as personal directory
dbg: [misc] Scanning for tars
dbg: [misc] Found tar '/sd/home/eskymak/bundle/baseset/opengfx-0.5.0.tar' with 10 new files
dbg: [misc] Scan complete, found 1 files
dbg: [net] Starting dedicated version 1.4.0
dbg: [misc] /sd/home/eskymak/bundle/lang/afrikaans.lng is not a valid language file
...
dbg: [misc] /sd/home/eskymak/bundle/lang/welsh.lng is not a valid language file
Error: No available language packs (invalid versions?)
Thanks for more ideas
