Hello, No matter if I use qemu from the serialice repo or download the tarball and apply patches i get this weird build error:
CC x86_64-softmmu/disas.o CC x86_64-softmmu/i386-dis.o AR x86_64-softmmu/libqemu.a LINK x86_64-softmmu/qemu-system-x86_64 /usr/bin/ld: /usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5' /usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line /lib64/libdl.so.2: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[1]: *** [qemu-system-x86_64] Error 1 make: *** [subdir-x86_64-softmmu] Error 2 [joe@smitty10 qemu-0.11.0]$
Anyone else seen this? What in the heck is dlclose@@GLIBC_2.2.5 ???
Joseph Smith wrote:
/usr/bin/ld: /usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
..
Anyone else seen this? What in the heck is dlclose@@GLIBC_2.2.5 ???
Your lua library was linked against libdl, and linking of serialice doesn't seem to include that when linking.
If lua installs a .pc it'd be good to use $(pkg-config --libs lua) in the serialice Makefile.
//Peter
On 12/13/2010 05:37 PM, Peter Stuge wrote:
Joseph Smith wrote:
/usr/bin/ld: /usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
..
Anyone else seen this? What in the heck is dlclose@@GLIBC_2.2.5 ???
Your lua library was linked against libdl, and linking of serialice doesn't seem to include that when linking.
If lua installs a .pc it'd be good to use $(pkg-config --libs lua) in the serialice Makefile.
Actually it didn't. I installed it from source. I had to include it: export PKG_CONFIG_PATH=/home/joe/cboot/lua-5.1.4/etc/
This is a bit wacky....
Joseph Smith wrote:
If lua installs a .pc it'd be good to use $(pkg-config --libs lua) in the serialice Makefile.
Actually it didn't. I installed it from source. I had to include it: export PKG_CONFIG_PATH=/home/joe/cboot/lua-5.1.4/etc/
Ok. Maybe now there is a recent enough version of lua available as package for your distribution? (Or maybe someone can make one?) That'd make things easier.
//Peter
On 12/13/2010 07:23 PM, Peter Stuge wrote:
Joseph Smith wrote:
If lua installs a .pc it'd be good to use $(pkg-config --libs lua) in the serialice Makefile.
Actually it didn't. I installed it from source. I had to include it: export PKG_CONFIG_PATH=/home/joe/cboot/lua-5.1.4/etc/
Ok. Maybe now there is a recent enough version of lua available as package for your distribution? (Or maybe someone can make one?) That'd make things easier.
yes, FC14 does have a lua-5.1.4 rpm.... but it doesn't have the serialice patches....so I need the source....
On 12/13/2010 07:00 PM, Joseph Smith wrote:
On 12/13/2010 05:37 PM, Peter Stuge wrote:
Joseph Smith wrote:
/usr/bin/ld: /usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
..
Anyone else seen this? What in the heck is dlclose@@GLIBC_2.2.5 ???
Your lua library was linked against libdl, and linking of serialice doesn't seem to include that when linking.
If lua installs a .pc it'd be good to use $(pkg-config --libs lua) in the serialice Makefile.
Actually it didn't. I installed it from source. I had to include it: export PKG_CONFIG_PATH=/home/joe/cboot/lua-5.1.4/etc/
This is a bit wacky....
Hmm, it is in qemu configure, shouldn't that be enough?
LUA_CFLAGS=`pkg-config --cflags lua` LUA_LDFLAGS=`pkg-config --libs lua`
* Joseph Smith joe@settoplinux.org [101214 01:23]:
On 12/13/2010 07:00 PM, Joseph Smith wrote:
On 12/13/2010 05:37 PM, Peter Stuge wrote:
Joseph Smith wrote:
/usr/bin/ld: /usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
..
Anyone else seen this? What in the heck is dlclose@@GLIBC_2.2.5 ???
Your lua library was linked against libdl, and linking of serialice doesn't seem to include that when linking.
If lua installs a .pc it'd be good to use $(pkg-config --libs lua) in the serialice Makefile.
Actually it didn't. I installed it from source. I had to include it: export PKG_CONFIG_PATH=/home/joe/cboot/lua-5.1.4/etc/
This is a bit wacky....
Hmm, it is in qemu configure, shouldn't that be enough?
LUA_CFLAGS=`pkg-config --cflags lua` LUA_LDFLAGS=`pkg-config --libs lua`
It should, but make install does not install the lua.pc file
You will have to copy it manually. Maybe you could report the bug to lua upstream maintainers?
Stefan
On 12/13/2010 07:30 PM, Stefan Reinauer wrote:
- Joseph Smithjoe@settoplinux.org [101214 01:23]:
On 12/13/2010 07:00 PM, Joseph Smith wrote:
On 12/13/2010 05:37 PM, Peter Stuge wrote:
Joseph Smith wrote:
/usr/bin/ld: /usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
..
Anyone else seen this? What in the heck is dlclose@@GLIBC_2.2.5 ???
Your lua library was linked against libdl, and linking of serialice doesn't seem to include that when linking.
If lua installs a .pc it'd be good to use $(pkg-config --libs lua) in the serialice Makefile.
Actually it didn't. I installed it from source. I had to include it: export PKG_CONFIG_PATH=/home/joe/cboot/lua-5.1.4/etc/
This is a bit wacky....
Hmm, it is in qemu configure, shouldn't that be enough?
LUA_CFLAGS=`pkg-config --cflags lua` LUA_LDFLAGS=`pkg-config --libs lua`
It should, but make install does not install the lua.pc file
You will have to copy it manually. Maybe you could report the bug to lua upstream maintainers?
Ok, if I copy it manually, where should I copy it to? Where is the correct location?
Joseph Smith wrote:
Hmm, it is in qemu configure, shouldn't that be enough?
LUA_CFLAGS=`pkg-config --cflags lua` LUA_LDFLAGS=`pkg-config --libs lua`
Good!
It should, but make install does not install the lua.pc file
You will have to copy it manually. Maybe you could report the bug to lua upstream maintainers?
Ok, if I copy it manually, where should I copy it to? Where is the correct location?
Check where there are other .pc files. On my system (though not Fedore) the folder is /usr/lib/pkgconfig
//Peter
On 12/13/2010 07:46 PM, Peter Stuge wrote:
Joseph Smith wrote:
Hmm, it is in qemu configure, shouldn't that be enough?
LUA_CFLAGS=`pkg-config --cflags lua` LUA_LDFLAGS=`pkg-config --libs lua`
Good!
It should, but make install does not install the lua.pc file
You will have to copy it manually. Maybe you could report the bug to lua upstream maintainers?
Ok, if I copy it manually, where should I copy it to? Where is the correct location?
Check where there are other .pc files. On my system (though not Fedore) the folder is /usr/lib/pkgconfig
Ah ok thanks, looks like FC14 x86_64 uses:
/usr/share/pkgconfig/
and
/usr/lib64/pkgconfig/
On 12/13/2010 08:28 PM, Joseph Smith wrote:
On 12/13/2010 07:46 PM, Peter Stuge wrote:
Joseph Smith wrote:
Hmm, it is in qemu configure, shouldn't that be enough?
LUA_CFLAGS=`pkg-config --cflags lua` LUA_LDFLAGS=`pkg-config --libs lua`
Good!
It should, but make install does not install the lua.pc file
You will have to copy it manually. Maybe you could report the bug to lua upstream maintainers?
Ok, if I copy it manually, where should I copy it to? Where is the correct location?
Check where there are other .pc files. On my system (though not Fedore) the folder is /usr/lib/pkgconfig
Ah ok thanks, looks like FC14 x86_64 uses:
/usr/share/pkgconfig/
and
/usr/lib64/pkgconfig/
Well...log story short looks like I already had the lua rpm installed....but I finally figured out I also needed the lua-devel package.....That is why I only had half the install.....Curses! Mind boggling why they have to split programs in half like that!
Well qemu is building fine now.
My question is if the FC14 x86_64 version of lua probably doesn't have the serialice patches installed, does it matter? Will serialice still run?
On 13.12.2010, at 22:04, Joseph Smith joe@settoplinux.org wrote:
Well...log story short looks like I already had the lua rpm installed....but I finally figured out I also needed the lua-devel package.....That is why I only had half the install.....Curses! Mind boggling why they have to split programs in half like that!
Not everyone using LUA might want to compile their own stuff with it.. Unfortunately SerialICE is not quite ready to come preshipped with distributions quite yet..
My question is if the FC14 x86_64 version of lua probably doesn't have the serialice patches installed, does it matter? Will serialice still run?
64 bit systems might. If I remember correctly at least one of the patches fixed an issue on 32 bit systems...
Stefan