~/ottd/trunk> ./configure --enable-universal="x86_64" --with-ccache --without-libtimidity CFLAGS="-g" --enable-debug=2 checking awk... awk detecting OS... OSX checking build system type... i686-apple-darwin10 checking host system type... i686-apple-darwin10 checking universal build... yes, for: x86_64 checking build cc... gcc checking host cc... gcc checking build c++... g++ checking host c++... g++ checking strip... disabled checking host lipo... lipo checking builtin depend... yes checking makedepend... disabled detecting cpu-type... 32 bits checking static... no checking unicode... no using debug level... level 2 using desync debug level... no using link time optimization... no checking OSX sysroot... automatically checking Allegro... OSX, skipping checking SDL... OSX, skipping checking COCOA... found checking whether to enable the Quartz window subdriver... yes checking Quickdraw window subdriver... found checking GDI video driver... not Windows, skipping checking dedicated... not selected checking network... found checking ai... found checking translator... no checking assert... enabled checking zlib... found checking liblzma... found checking lzo2... found checking libpng... found checking libfreetype... found checking libfontconfig... OSX, skipping checking libicu... found checking psp-config... not PSP, skipping checking libtimidity... disabled checking direct-music... not Windows, skipping checking sort... sort checking endianess... PREPROCESSOR suppress language errors... no checking stripping... skipped checking distcc... no (only used when forced) checking ccache... ccache detecting ppc970 (G5)... no checking revision... hg detection checking iconv... found checking if iconv has non-const inbuf... no checking whether to link to iconv... yes personal home directory... Documents/OpenTTD shared data directory... /Library/Application\ Support/OpenTTD installation directory... / icon theme directory... none manual page directory... share/man/man6 menu item directory... none using CFLAGS... -g -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wformat=2 -Wredundant-decls -Winit-self -fno-strict-aliasing -Wcast-qual -DOSX -g -D_DEBUG -D_FORTIFY_SOURCE=2 -fno-inline -O2 -isystem/opt/local/include -DUNIX -DWITH_COCOA -DENABLE_COCOA_QUARTZ -DENABLE_COCOA_QUICKDRAW -DWITH_ZLIB -DWITH_LZMA -I/opt/local/include -DWITH_LZO -I/Users/ingo/ottd/trunk/src/3rdparty/squirrel/include -DENABLE_AI -DWITH_PNG -I/opt/local/include/libpng12 -DWITH_FREETYPE -I/opt/local/include/freetype2 -I/opt/local/include -DWITH_ICU -I/opt/local/include -DWITH_ICONV -DENABLE_NETWORK -DWITH_PERSONAL_DIR -DPERSONAL_DIR=\"Documents/OpenTTD\" -DWITH_SHARED_DIR -DSHARED_DIR=\"/Library/Application\ Support/OpenTTD\" -DGLOBAL_DATA_DIR=\"/usr/local/share/games/openttd\" using CXXFLAGS... using LDFLAGS... -lstdc++ -lc -framework QuickTime -F/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -lz -D_THREAD_SAFE -L/opt/local/lib -llzma -llzo2 -L/opt/local/lib -lpng12 -L/opt/local/lib -lfreetype -lz -L/opt/local/lib -licui18n -licuuc -licudata -liconv -framework Cocoa Generating Makefile... Generating lang/Makefile... Generating grf/Makefile... Generating objs/x86_64/Makefile... ~/ottd/trunk> make -j4 ... ~/ottd/trunk> valgrind bin/openttd ==97349== Memcheck, a memory error detector ==97349== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==97349== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==97349== Command: bin/openttd ==97349== --97349-- bin/openttd: --97349-- dSYM directory is missing; consider using --dsymutil=yes ==97349== Conditional jump or move depends on uninitialised value(s) ==97349== at 0x100D08B17: strlen (mc_replace_strmem.c:282) ==97349== by 0x10029409E: strndup(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100163D4B: IniFile::LoadFromDisk(char const*) (in bin/openttd) ==97349== by 0x100143134: BaseMedia::AddFile(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100130604: ScanPath(FileScanner*, char const*, char const*, unsigned long, bool) (in bin/openttd) ==97349== by 0x1001306B4: ScanPath(FileScanner*, char const*, char const*, unsigned long, bool) (in bin/openttd) ==97349== by 0x100130B03: FileScanner::Scan(char const*, Subdirectory, bool, bool) (in bin/openttd) ==97349== by 0x10018A09B: BaseMedia::FindSets() (in bin/openttd) ==97349== by 0x1001D9E07: ttd_main(int, char**) (in bin/openttd) ==97349== by 0x1001E5F49: main (in bin/openttd) ==97349== ==97349== Conditional jump or move depends on uninitialised value(s) ==97349== at 0x100D08B17: strlen (mc_replace_strmem.c:282) ==97349== by 0x10029409E: strndup(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100163D4B: IniFile::LoadFromDisk(char const*) (in bin/openttd) ==97349== by 0x100277A74: BaseMedia::AddFile(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100130604: ScanPath(FileScanner*, char const*, char const*, unsigned long, bool) (in bin/openttd) ==97349== by 0x100130B03: FileScanner::Scan(char const*, Subdirectory, bool, bool) (in bin/openttd) ==97349== by 0x10018A1AB: BaseMedia::FindSets() (in bin/openttd) ==97349== by 0x1001D9E0C: ttd_main(int, char**) (in bin/openttd) ==97349== by 0x1001E5F49: main (in bin/openttd) ==97349== ==97349== Conditional jump or move depends on uninitialised value(s) ==97349== at 0x100D08B17: strlen (mc_replace_strmem.c:282) ==97349== by 0x10029409E: strndup(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100163D4B: IniFile::LoadFromDisk(char const*) (in bin/openttd) ==97349== by 0x100171CF2: BaseMedia::AddFile(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100130604: ScanPath(FileScanner*, char const*, char const*, unsigned long, bool) (in bin/openttd) ==97349== by 0x1001306B4: ScanPath(FileScanner*, char const*, char const*, unsigned long, bool) (in bin/openttd) ==97349== by 0x100130B03: FileScanner::Scan(char const*, Subdirectory, bool, bool) (in bin/openttd) ==97349== by 0x10018A2B8: BaseMedia::FindSets() (in bin/openttd) ==97349== by 0x1001D9E11: ttd_main(int, char**) (in bin/openttd) ==97349== by 0x1001E5F49: main (in bin/openttd) ==97349== ==97349== Conditional jump or move depends on uninitialised value(s) ==97349== at 0x100D08B17: strlen (mc_replace_strmem.c:282) ==97349== by 0x10029409E: strndup(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100163D4B: IniFile::LoadFromDisk(char const*) (in bin/openttd) ==97349== by 0x100264E1A: IniLoadConfig() (in bin/openttd) ==97349== by 0x100265F2D: LoadFromConfig() (in bin/openttd) ==97349== by 0x1001D9E2D: ttd_main(int, char**) (in bin/openttd) ==97349== by 0x1001E5F49: main (in bin/openttd) ==97349== ==97349== Conditional jump or move depends on uninitialised value(s) ==97349== at 0x100D08B17: strlen (mc_replace_strmem.c:282) ==97349== by 0x10029409E: strndup(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100163D6D: IniFile::LoadFromDisk(char const*) (in bin/openttd) ==97349== by 0x100264E1A: IniLoadConfig() (in bin/openttd) ==97349== by 0x100265F2D: LoadFromConfig() (in bin/openttd) ==97349== by 0x1001D9E2D: ttd_main(int, char**) (in bin/openttd) ==97349== by 0x1001E5F49: main (in bin/openttd) ==97349== ==97349== Conditional jump or move depends on uninitialised value(s) ==97349== at 0x100D08B17: strlen (mc_replace_strmem.c:282) ==97349== by 0x10029409E: strndup(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100163E08: IniFile::LoadFromDisk(char const*) (in bin/openttd) ==97349== by 0x100264E1A: IniLoadConfig() (in bin/openttd) ==97349== by 0x100265F2D: LoadFromConfig() (in bin/openttd) ==97349== by 0x1001D9E2D: ttd_main(int, char**) (in bin/openttd) ==97349== by 0x1001E5F49: main (in bin/openttd) ==97349== ==97349== Conditional jump or move depends on uninitialised value(s) ==97349== at 0x100D08B17: strlen (mc_replace_strmem.c:282) ==97349== by 0x10029409E: strndup(char const*, unsigned long) (in bin/openttd) ==97349== by 0x100163D4B: IniFile::LoadFromDisk(char const*) (in bin/openttd) ==97349== by 0x100151889: SaveLoadHotkeys(bool) (in bin/openttd) ==97349== by 0x1001D9E46: ttd_main(int, char**) (in bin/openttd) ==97349== by 0x1001E5F49: main (in bin/openttd) ==97349==