Page 1 of 1

Minetest Fedora Error after Compiling

PostPosted: Mon Feb 11, 2013 12:07
by cHyper
I got following error after sucessfully compiling of minetest.

celeron55-minetest-ab06fca/

$ ./minetest
Warning: The library version of the Irrlicht Engine (1.7.3) does not match the version the application was compiled with (y�P+). This may cause problems.
Speicherzugriffsfehler (Speicherabzug geschrieben)


What can i do??

PostPosted: Mon Feb 11, 2013 16:26
by PilzAdam
Can you post the commands you used to compile?

PostPosted: Mon Feb 11, 2013 16:44
by cHyper
PilzAdam wrote:Can you post the commands you used to compile?


only 2 commands:

$ cmake . -DRUN_IN_PLACE=1
$ make

PostPosted: Tue Feb 19, 2013 23:44
by ckoch786
I used
cmake . -DRUN_IN_PLACE=1 -DENABLE_SOUND=0
make -j4

and I am getting the same error in Fedora 18


I used -DENABLE_SOUND=0 because of this:

-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find VORBIS (missing: OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY)
-- Sound enabled, but OpenAL not found!
-- Sound enabled, but Vorbis libraries not found!
CMake Error at src/CMakeLists.txt:65 (message):
Sound enabled, but cannot be used.

To continue, either fill in the required paths or disable sound.
(-DENABLE_SOUND=0)


-- Configuring incomplete, errors occurred!

PostPosted: Wed Feb 20, 2013 13:13
by rarkenin
ckock786, can you please try installing `openal`, `openal-dev`, `libopenal-dev`, or the equivalent, as well as `libvorbis` and `libvorbis-dev`?(or the equivalent in your package manager)

PostPosted: Wed Mar 13, 2013 20:24
by Lejufe
ckock786, you must install `openal-soft-devel` and `libvorbis-devel` .
I am getting the same error in Fedora 18. This two package are installed:
- irrlicht.x86_64 0:1.7.3-12.fc18
- irrlicht-devel.x86_64 0:1.7.3-12.fc18

PostPosted: Fri Mar 29, 2013 06:37
by Redden
same problem on fedora 18

PostPosted: Mon Apr 08, 2013 19:54
by ssieb
See the bug I filed at https://bugzilla.redhat.com/show_bug.cgi?id=928037
They added the new irrlicht version while keeping the old one. But the new headers replaced the old ones, so when you compile minetest, it gets the wrong headers. I put a patch for the spec file in the bug.

PostPosted: Mon Apr 08, 2013 19:56
by sfan5
The "y�P+" looks suspicious, maybe your Irrlicht library is broken?

PostPosted: Tue Apr 09, 2013 04:59
by cheapie
sfan5 wrote:The "y�P+" looks suspicious, maybe your Irrlicht library is broken?


Didn't you hear? Everything is moving over to random gibberish for version numbers!

Just kidding, of course. "y�P+" is a lot easier to remember than "1.5.2.7.13124235.475856745655236547b3453467547" or whatever though...

Try reinstalling Irrlicht and recompiling.

PostPosted: Tue Apr 09, 2013 05:15
by ssieb
sfan5 wrote:The "y�P+" looks suspicious, maybe your Irrlicht library is broken?

Yes, the reason you get random garbage is because the structure changed between versions. Minetest is compiled against the new headers so thinks the version string pointer is at a certain position, but the library actually has it elsewhere.

PostPosted: Fri Apr 26, 2013 05:24
by sfan5
ssieb wrote:
sfan5 wrote:The "y�P+" looks suspicious, maybe your Irrlicht library is broken?

Yes, the reason you get random garbage is because the structure changed between versions. Minetest is compiled against the new headers so thinks the version string pointer is at a certain position, but the library actually has it elsewhere.

Minetest compiles fine for me with Irrlicht 1.7.2 and 1.8

PostPosted: Fri Apr 26, 2013 06:52
by ssieb
sfan5 wrote:
ssieb wrote:
sfan5 wrote:The "y�P+" looks suspicious, maybe your Irrlicht library is broken?

Yes, the reason you get random garbage is because the structure changed between versions. Minetest is compiled against the new headers so thinks the version string pointer is at a certain position, but the library actually has it elsewhere.

Minetest compiles fine for me with Irrlicht 1.7.2 and 1.8


Unless you're compiling on Fedora, that's irrelevant... The issue is that the Fedora Irrlicht package has the headers mixed up.

PostPosted: Fri Apr 26, 2013 14:13
by Xcelsior
I have the same problem with Fedora 18

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./minetest
Warning: The library version of the Irrlicht Engine (1.7.3) does not match the version the application was compiled with ($�). This may cause problems.
Erreur de segmentation (core dumped)


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
(gdb) run
Starting program: /home/alexandre/Téléchargements/Minetest/minetest-master/bin/minetest
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Warning: The library version of the Irrlicht Engine (1.7.3) does not match the version the application was compiled with ($�). This may cause problems.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7c6a169 in irr::gui::CGUIEditBox::CGUIEditBox(wchar_t const*, bool, irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int> const&) () from /lib64/libIrrlicht.so.1
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-7.fc18.x86_64 cyrus-sasl-lib-2.1.23-37.fc18.x86_64 glibc-2.16-30.fc18.x86_64 irrXML-1.2-12.fc18.x86_64 irrlicht-1.7.3-12.fc18.x86_64 keyutils-libs-1.5.5-3.fc18.x86_64 krb5-libs-1.10.3-15.fc18.x86_64 libICE-1.0.8-2.fc18.x86_64 libSM-1.2.1-2.fc18.x86_64 libX11-1.5.0-3.fc18.x86_64 libXau-1.0.6-4.fc18.x86_64 libXcursor-1.1.13-2.fc18.x86_64 libXext-1.3.1-2.fc18.x86_64 libXfixes-5.0-3.fc18.x86_64 libXrender-0.9.7-2.fc18.x86_64 libXxf86vm-1.1.2-2.fc18.x86_64 libaesgm-20090429-6.fc18.x86_64 libcom_err-1.42.5-1.fc18.x86_64 libcurl-7.27.0-8.fc18.x86_64 libgcc-4.7.2-8.fc18.x86_64 libidn-1.26-1.fc18.x86_64 libjpeg-turbo-1.2.90-1.fc18.x86_64 libogg-1.3.0-2.fc18.x86_64 libpng-1.5.13-1.fc18.x86_64 libselinux-2.1.12-7.3.fc18.x86_64 libssh2-1.4.3-2.fc18.x86_64 libstdc++-4.7.2-8.fc18.x86_64 libuuid-2.22.2-6.fc18.x86_64 libvorbis-1.3.3-3.fc18.x86_64 libxcb-1.9-1.fc18.x86_64 mesa-libGLU-9.0.0-1.fc18.x86_64 nspr-4.9.5-2.fc18.x86_64 nss-3.14.3-1.fc18.x86_64 nss-softokn-freebl-3.14.3-1.fc18.x86_64 nss-util-3.14.3-1.fc18.x86_64 openal-soft-1.15.1-1.fc18.x86_64 openldap-2.4.34-1.fc18.x86_64 openssl-libs-1.0.1e-4.fc18.x86_64 pcre-8.31-4.fc18.x86_64 zlib-1.2.7-9.fc18.x86_64
(gdb) bt full
#0  0x00007ffff7c6a169 in irr::gui::CGUIEditBox::CGUIEditBox(wchar_t const*, bool, irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int> const&) () from /lib64/libIrrlicht.so.1
No symbol table info available.
#1  0x00007ffff7c6dbcb in irr::gui::CGUIEnvironment::addEditBox(wchar_t const*, irr::core::rect<int> const&, bool, irr::gui::IGUIElement*, int) ()
   from /lib64/libIrrlicht.so.1
No symbol table info available.
#2  0x000000000048f13a in main ()
No symbol table info available.
(gdb)

PostPosted: Mon Apr 29, 2013 21:00
by qznc
ssieb wrote:See the bug I filed at https://bugzilla.redhat.com/show_bug.cgi?id=928037
They added the new irrlicht version while keeping the old one. But the new headers replaced the old ones, so when you compile minetest, it gets the wrong headers. I put a patch for the spec file in the bug.


The bug in the irrlicht package is not fixed so far. Alternatively, you can use the irrlicht18 package, but this requires a little bit more configuration via cmake:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cmake . -DRUN_IN_PLACE=1 -DIRRLICHT_INCLUDE_DIR=/usr/include/irrlicht18 -DIRRLICHT_LIBRARY=/usr/lib64/libIrrlicht18.so
make -j9


On a 32bit system, you probably must replace "lib64" with "lib".

This builds minetest with irrlicht 1.8 instead of the default 1.7. Should work just as good.

PostPosted: Fri May 24, 2013 19:50
by Xcelsior
Using Irrlicht 1.8 worked for me, but the command to compile was this one on Fedora 18 x86_64

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cmake . -DRUN_IN_PLACE=1 -DIRRLICHT_INCLUDE_DIR=/usr/include/irrlicht -DIRRLICHT_LIBRARY=/usr/lib64/libIrrlicht18.so.1
make -j9

PostPosted: Sat May 25, 2013 17:11
by qznc
On Fedora 18: Remove the irrlicht(-devel) package and install the irrlicht18(-devel) package.