goldenXcode / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

compiling fails because an error with glibc #481

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
typing make

What is the expected output? What do you see instead?
expected is no error.
i see
nix/input.o ../obj/unix/hotkeys.o ../obj/unix/transform.o 
../obj/unix/pversion.o ../obj/unix/factory.o  ../obj/unix/fileformats.o 
../obj/unix/miscfileformats.o
../obj/unix/libraw2crtc.o ../obj/unix/brush_ops.o ../obj/unix/buttons_effects.o 
../obj/unix/layers.o ../obj/unix/oldies.o ../obj/unix/tiles.o 
../obj/unix/colorred.o -o ../bin/grafx2 `sdl-config --libs` -lSDL_image 
-L/usr/local/lib -lSDL_ttf -lX11 -lpng `pkg-config lua --libs --silence-errors 
||pkg-config lua5.1 --libs
--silence-errors ||pkg-config lua-5.1 --libs` -lm
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: 
/usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 
'dlopen@@GLIBC_2.1'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 
'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it to the 
linker
command line
/lib/libdl.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [../bin/grafx2] Error 1

What version of GrafX2 are you using? On what operating system?
I've tryed it first with GrafX2-2.3.1938 from svn and after this 
GrafX2-2.3.1781 on OpSys-openSUSE_v12.1_32bit

glibc = glibc-2.14.1-14.25.1.i686

Original issue reported on code.google.com by HoraK-...@web.de on 29 Mar 2012 at 11:13

GoogleCodeExporter commented 9 years ago
Looks like this platform's implementation of Lua requires one system library on 
linking (and pkgconfig doesn't know it).
In the Makefile, can you locate the line that says:
   LUALOPT = `pkg-config lua --libs --silence-errors ||pkg-config lua5.1 --libs --silence-errors ||pkg-config lua-5.1 --libs`
and add -ldl at the end: Let the line finish with lua-5.1 --libs` -ldl

Original comment by yrizoud on 30 Mar 2012 at 6:38

GoogleCodeExporter commented 9 years ago
Thanx for the help it worked like a charm. If anybody also has this Problem in 
rev1938 the line number is 289 there.

Original comment by HoraK-...@web.de on 30 Mar 2012 at 8:54

GoogleCodeExporter commented 9 years ago
Mh... bug seems to be in opensuse/pkgconfig/lua side.

Original comment by pulkoma...@gmail.com on 12 May 2012 at 2:41