BR 2012.rc1 :: XORG compilation issue
Hi everybody,
back with a new problem. I try to add a graphical output to my
pandaboard.
It seems gcc try to compile 'liblua.so' as a static lib the raison why
it suggest to add the -fPIC option. What I don't understand using a all-in-one tool like BR it is where I do that? Do I have to modify manually the Makefile? then if it works how I do report that to the community?
If someone could help me?
Bye
___[ OUTPUT
]_____________________________________________________________________________________________ /media/hddPANDAdev/ARMSTUFF/LTiB/BR/buildroot/workdone/usr/bin/arm-unknown-linux-uclibcgnueabi-ranlib
liblua.a
/media/hddPANDAdev/ARMSTUFF/LTiB/BR/buildroot/workdone/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc
-o liblua.so.5.1.4 -shared -Wl,-soname="liblua.so.5.1.4" lapi.o lcode.o
ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o
lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o
lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o
lstrlib.o loadlib.o linit.o -nostdlib -lgcc /media/hddPANDAdev/ARMSTUFF/LTiB/BR/buildroot/workdone/usr/lib/gcc/arm-unknown-linux-uclibcgnueabi/4.5.3/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld:
lapi.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
lapi.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [liblua.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/media/hddPANDAdev/ARMSTUFF/LTiB/BR/buildroot/output/build/lua-5.1.4/src'
make: ***
[/media/hddPANDAdev/ARMSTUFF/LTiB/BR/buildroot/output/build/lua-5.1.4/.stamp_built]
Error 2
Signature · 12 lines
Cordialement.
___Johann MERCADIER___
:(){ :|:& };:
"I am the Unknown lead by the Unknowing.
I have done so much with so little for so long
that I am now qualified to do anything with nothing."
HOOSEEK (http://www.hooseek.com/) 1?moteur de recherche solidaire!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120306/3581711f/attachment.html>PATCH 1/1 lua: fix non-shared library build
Building without BR2_PACKAGE_LUA_SHARED_LIBRARY failed because of missing -ldl. dl is used by lua's dynamic module loading.
---
On ARM, there's still a warning:
ld: warning: creating a DT_TEXTREL in object.
I haven't checked if lua actually works on the target. But it certainly won't be worse than before :-)
package/lua/lua.mk | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
package/lua/lua.mk +2 -1
@@ -10,9 +10,10 @@ LUA_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y) LUA_MYCFLAGS += -fPIC - LUA_MYLIBS += -ldl endif +LUA_MYLIBS += -ldl + ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y) LUA_DEPENDENCIES = readline ncurses LUA_MYLIBS += -lreadline -lhistory -lncurses
Signature · 1 line
tg: (15fe220..) t/lua (depends on: master)
PATCH 1/1 lua: fix non-shared library build
Quoted 4 lines · Arnout Vandecappelle (Essensium/Mind)
Building without
BR2_PACKAGE_LUA_SHARED_LIBRARYfailed because of missing -ldl. dl is used by lua's dynamic module loading.
PATCH 1/1 lua: fix non-shared library build
In reply to Arnout Vandecappelle (Essensium/Mind)Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
Arnout> Building without BR2_PACKAGE_LUA_SHARED_LIBRARY failed because of Arnout> missing -ldl. dl is used by lua's dynamic module loading.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard