make error - malloc?

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
lrmall01
Peon
Peon
Posts: 4
Joined: 14 May 2005, 01:54
Location: US
Contact:

make error - malloc?

Post 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.
I need tp...
User avatar
lrmall01
Peon
Peon
Posts: 4
Joined: 14 May 2005, 01:54
Location: US
Contact:

Post 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.
I need tp...
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post 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.
Post Reply