Page 1 of 1

make error - malloc?

Posted: 27 Dec 2005, 20:43
by lrmall01
I'm trying to build TMW from source for Ubuntu.

I built the latest Guichan from source - with the modification needed for gcc 4 compatibility. All the other libs come from the Ubunut repository.

./configure seems ok
================
.
..
...
config.status: config.h is unchanged
config.status: executing depfiles commands

Build with OpenGL: no

configure complete, now type "make"

make doesn't seem to complete though
==========================
.
..
...
gui/char_server.cpp:179: error: ‘rpl_malloc’ was not declared in this scope
make[2]: *** [tmw-char_server.o] Error 1
make[2]: Leaving directory `/usr/src/tmw-0.0.18/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/tmw-0.0.18'
make: *** [all] Error 2
lrmall01@crom:/usr/src/tmw-0.0.18$

There is one suspicious line in the .configure output - I've installed just about anything I can think of that has to do with malloc or compiliation but I can't get this to say 'yes'.

checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... no
checking sys/select.h usability... yes

Any help would be greatly appreciated.

Thanks.

Posted: 28 Dec 2005, 01:41
by lrmall01
I was able to fix the first problem by copying the guichan config and header files from /usr/local/include to /usr/include and /usr/local/lib to /usr/lib

After that I was able to compile TMW and install from source, so now it works.

Posted: 29 Dec 2005, 12:25
by Bjørn
When you want to install Guichan (or any library) to /usr/lib, it is better to configure that way in the first place by using:

./configure --prefix=/usr

Because the default prefix is /usr/local.