make error

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
serialsito
Peon
Peon
Posts: 1
Joined: Mon Apr 03, 2006 1:43 pm

make error

Post by serialsito » Mon Apr 03, 2006 1:46 pm

when i compile tmw, i have the next "make" error :


gui/updatewindow.cpp: In member function 'void UpdaterWindow::loadNews()':
gui/updatewindow.cpp:161: error: 'rpl_realloc' was not declared in this scope
gui/updatewindow.cpp: In static member function 'static size_t UpdaterWindow::memoryWrite(void*, size_t, size_t, FILE*)':
gui/updatewindow.cpp:216: error: 'rpl_realloc' was not declared in this scope
make[2]: *** [tmw-updatewindow.o] Error 1
make[2]: se sale del directorio `/home/kike/Desktop/tmw-0.0.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/kike/Desktop/tmw-0.0.19'
make: *** [all] Error 2




somebody can help me ? :$
User avatar
Platyna
Knight
Knight
Posts: 2213
Joined: Sat Nov 19, 2005 2:19 pm
Location: Poland
Contact:

Post by Platyna » Tue Apr 04, 2006 2:30 pm

Post config.log, anyway I am almost sure you are trying to use wrong libraries versions or you have installed them in wrong prefix (/usr/local).

Regards.
Zuzanna K. Filutowska
[The rest of this signature was censored by TMWC's "Freedom" and "Free speech".]
nhb
Peon
Peon
Posts: 1
Joined: Sun May 14, 2006 8:34 pm

Post by nhb » Sun May 14, 2006 8:43 pm

I have a simmilar problem:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DTMW_DATADIR=\""/usr/local/share/tmw/"\" -Wall -Werror -I/usr/include/SDL -D_REENTRANT `pkg-config --cflags libxml-2.0` -g -O2 -MT tmw-updatewindow.o -MD -MP -MF ".deps/tmw-updatewindow.Tpo" -c -o tmw-updatewindow.o `test -f 'gui/updatewindow.cpp' || echo './'`gui/updatewindow.cpp; \
then mv -f ".deps/tmw-updatewindow.Tpo" ".deps/tmw-updatewindow.Po"; else rm -f ".deps/tmw-updatewindow.Tpo"; exit 1; fi
gui/updatewindow.cpp: In member function `void UpdaterWindow::loadNews()':
gui/updatewindow.cpp:161: error: `rpl_realloc' undeclared (first use this
function)
gui/updatewindow.cpp:161: error: (Each undeclared identifier is reported only
once for each function it appears in.)
gui/updatewindow.cpp: In static member function `static size_t
UpdaterWindow::memoryWrite(void*, long unsigned int, long unsigned int,
FILE*)':
gui/updatewindow.cpp:216: error: `rpl_realloc' undeclared (first use this
function)
make[2]: *** [tmw-updatewindow.o] Fehler 1
make[2]: Verlasse Verzeichnis »/usr/src/tmw-0.0.19/src«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis »/usr/src/tmw-0.0.19«
make: *** [all] Fehler 2


<hr>

I think ./configure should raise hell, if libguichan.so.0 was not found:

configure:3840: g++ -o conftest -g -O2 conftest.cc -lpng -lSDL_net -lSDL_mixer -lSDL_image -lxml2 -lcurl -lphysfs -lguichan
-lpthread >&5
configure:3843: $? = 0
configure:3845: ./conftest
./conftest: error while loading shared libraries: libguichan.so.0: cannot open shared object file: No such file or directory
configure:3848: $? = 127
configure: program exited with status 127
configure: failed program was:

<hr>
Solution:
Add a new line to /etc/ld.so.conf
/usr/local/lib
and execute
ldconfig
Post Reply