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: Sat May 14, 2005 2:54 am
Location: US
Contact:

make error - malloc?

Post by lrmall01 » Tue Dec 27, 2005 9:43 pm

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: Sat May 14, 2005 2:54 am
Location: US
Contact:

Post by lrmall01 » Wed Dec 28, 2005 2:41 am

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
TMW Adviser
TMW Adviser
Posts: 1430
Joined: Thu Dec 09, 2004 7:50 pm
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » Thu Dec 29, 2005 1:25 pm

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