build error: undeffined reffference lua*

Added by Thaodan about 6 years ago

Im gettting an error about undeffined lua refference while linking yzom_entities_game_service :

[code]
[ 84%] Built target ryzom_entities_game_service
CMakeFiles/ryzom_client.dir/commands.cpp.o: In function `CLuaStackChecker::CLuaStackChecker(CLuaState*, int)':
commands.cpp:(.text._ZN16CLuaStackCheckerC2EP9CLuaStatei[_ZN16CLuaStackCheckerC5EP9CLuaStatei]+0x20): undefined reference to `lua_gettop'
CMakeFiles/ryzom_client.dir/commands.cpp.o: In function `CLuaState::checkIndex(int)':
commands.cpp:(.text._ZN9CLuaState10checkIndexEi[_ZN9CLuaState10checkIndexEi]+0x71): undefined reference to `lua_gettop'

[/code]
Full log: http://pastebin.com/B4XHUe5a.

Im using Arch Linux x86_64 and i used this PKGBUILD: https://aur.archlinux.org/packages.php?ID=60318 that I made according to the page BuildForLinuxCmake in the wiki.

Can someone help me?


Replies (11)

RE: build error: undeffined reffference lua* - Added by kervala about 6 years ago

Are you using Lua 5.2 or 5.1 ?

RE: build error: undeffined reffference lua* - Added by kervala about 6 years ago

The PKGBUILD doesn't seems to depend on lua and luabind. The packager should update it.

What happened to your case is your Ryzom client hasn't been linked to lua so symbols are missing :)

RE: build error: undeffined reffference lua* - Added by Thaodan about 6 years ago

Maybe its caused by:
-- Found CppTest: optimized;/usr/lib/libcpptest.so
-- Warning: Unable to find Squish!
-- Found Luabind: /usr/lib/libluabind.so
-- Warning: Libwww: Library not found: LIBREGEX_LIBRARY
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwcache.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwcache.so
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwftp.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwftp.so
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwgopher.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwgopher.so
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwnews.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwnews.so
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwtelnet.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwtelnet.so
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwstream.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwstream.so
-- Underlinking found: /usr/lib/libwwwfile.so needs /usr/lib/libwwwdir.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwdir.so
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwxml.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwxml.so
-- Underlinking found: /usr/lib/libwwwapp.so needs /usr/lib/libwwwzip.so but is not linked to, manually linking...
-- Linking with /usr/lib/libwwwzip.so
-- Underlinking found: /usr/lib/libwwwxml.so needs /usr/lib/libxmlparse.so but is not linked to, manually linking...
-- Linking with /usr/lib/libxmlparse.so
-- Underlinking found: /usr/lib/libxmlparse.so needs /usr/lib/libexpat.so but is not linked to, manually linking...
-- Linking with /usr/lib/libexpat.so
-- Underlinking found: /usr/lib/libwwwhttp.so needs /usr/lib/libmd5.so but is not linked to, manually linking...
-- Linking with /usr/lib/libmd5.so
-- Found MySQL: /usr/include/mysql, optimized;/usr/lib/libmysqlclient.so;/usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Configuring done
-- Generating done
?

RE: build error: undeffined reffference lua* - Added by Thaodan about 6 years ago

I had lua-c++ instead og lua installed maybe ths was the problem, i'll see.

RE: build error: undeffined reffference lua* - Added by Thaodan about 6 years ago

After enabling -DWITH_QT=ON make exits with this error:
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function 'void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)':
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function 'void squish::CompressImage(const u8*, int, int, void*, int)'
In file included from /home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:18:0:
/usr/include/squish.h:219:6: note: declared here
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function 'void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)':
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function 'void squish::CompressImage(const u8*, int, int, void*, int)'
In file included from /home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:18:0:
/usr/include/squish.h:219:6: note: declared here
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function 'void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)':
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function 'void squish::CompressImage(const u8*, int, int, void*, int)'
In file included from /home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:18:0:
/usr/include/squish.h:219:6: note: declared here
make2: * [nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Error 1
make1:
[nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/all] Error 2
make1:
Waiting for unfinished jobs....
make2:
[nel/tools/3d/tga_2_dds/CMakeFiles/tga2dds.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Error 1
make1:
[nel/tools/3d/tga_2_dds/CMakeFiles/tga2dds.dir/all] Error 2
make2:
[nel/tools/3d/hls_bank_maker/CMakeFiles/hls_bank_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Error 1
make1:
[nel/tools/3d/hls_bank_maker/CMakeFiles/hls_bank_maker.dir/all] Error 2
[ 61%] Built target ovqt_plugin_object_viewer
make: *
[all] Error 2

RE: build error: undeffined reffference lua* - Added by Thaodan about 6 years ago

Set -DWITH_QT=OFF and saw it was the fault that I had lua-c++ instead of lua installed, but now I get this error:
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function 'void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)':
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function 'void squish::CompressImage(const u8*, int, int, void*, int)'
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function 'void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)':
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function 'void squish::CompressImage(const u8*, int, int, void*, int)'
In file included from /home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:18:0:
/usr/include/squish.h:219:6: note: declared here
In file included from /home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:18:0:
/usr/include/squish.h:219:6: note: declared here
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function 'void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)':
/home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function 'void squish::CompressImage(const u8*, int, int, void*, int)'
In file included from /home/bidar/dev/aur/ryzom-latest-hg/src/ryzom/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:18:0:
/usr/include/squish.h:219:6: note: declared here
make2: * [nel/tools/3d/hls_bank_maker/CMakeFiles/hls_bank_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Error 1
make2:
[nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Error 1
make1:
[nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/all] Error 2
make1:
Waiting for unfinished jobs....
make1:
[nel/tools/3d/hls_bank_maker/CMakeFiles/hls_bank_maker.dir/all] Error 2
make2:
[nel/tools/3d/tga_2_dds/CMakeFiles/tga2dds.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Error 1
make1: *
* [nel/tools/3d/tga_2_dds/CMakeFiles/tga2dds.dir/all] Error 2

RE: build error: undeffined reffference lua* - Added by sfb about 6 years ago

This appears that you're building a Squish-reliant (s3tc compression library) utility but you're using the wrong version of Squish. Are you using a version built from their VCS?

Thanks,
sfb
/s

RE: build error: undeffined reffference lua* - Added by sfb about 6 years ago

As a side note you probably don't need the tools on Linux. If you're just building a client and/or server you should disable WITH_NEL_TOOLS, WITH_NEL_TESTS, WITH_NEL_SAMPLES and WITH_RYZOM_TOOLS.

sfb
/s

RE: build error: undeffined reffference lua* - Added by Thaodan about 6 years ago

I used libsquish from: I replaced it with libsquish-svn: https://aur.archlinux.org/packages.php?ID=44119.

RE: build error: undeffined reffference lua* - Added by Thaodan about 6 years ago

It builds now, I added option to build server or client, I seperated data and binary in different pkg-builds. Where shoud the ryzom data go when I install the game to /usr?

EDIT: Is there a place where I can get the cfg files in a single file (as I found it for the assets)?

(1-11/11)