Compiling error: Malloc.cpp line 430
Posted: Fri Sep 14, 2012 4:45 pm
Started compiling yesterday and recieved this error:
I fear it may be my 64bit linux after reading the wiki but if anyone can shed some light on the exact cause it'd be much appreciated.
Anyone got any idea? I've compiled plenty of server emulators before and never seen anything like this.. Am I missing any libraries?
Running: Linux version 2.6.32-5-amd64 (Debian 2.6.32-45) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun May 6 04:00:17 UTC 2012
Code: Select all
ffxi@Krelian:~/dsp$ make
g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common -DdsUDPSERV -g -O2 -MT dsgame-malloc.o -MD -MP -MF .deps/dsgame-malloc.Tpo -c -o dsgame-malloc.o `test -f 'src/common/malloc.cpp' || echo './'`src/common/malloc.cpp
src/common/malloc.cpp: In function âvoid _mfree(void*, const char*, int, const char*)â:
src/common/malloc.cpp:430: error: cast from âunit_head*â to âuintptrâ loses precision
src/common/malloc.cpp:430: error: cast from âchar*â to âuintptrâ loses precision
make: *** [dsgame-malloc.o] Error 1
Anyone got any idea? I've compiled plenty of server emulators before and never seen anything like this.. Am I missing any libraries?
Running: Linux version 2.6.32-5-amd64 (Debian 2.6.32-45) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun May 6 04:00:17 UTC 2012