Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] BR 2012.rc1 :: XORG compilation issue
@ 2012-03-06 14:49 MERCADIER Johann
  2012-03-11 14:24 ` [Buildroot] [PATCH] lua: fix non-shared library build Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: MERCADIER Johann @ 2012-03-06 14:49 UTC (permalink / raw)
  To: buildroot

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


-- 
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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] lua: fix non-shared library build
  2012-03-06 14:49 [Buildroot] BR 2012.rc1 :: XORG compilation issue MERCADIER Johann
@ 2012-03-11 14:24 ` Arnout Vandecappelle
  2012-03-13 13:14   ` Gustavo Zacarias
  2012-03-13 13:17   ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-03-11 14:24 UTC (permalink / raw)
  To: buildroot

Building without BR2_PACKAGE_LUA_SHARED_LIBRARY failed because of
missing -ldl.  dl is used by lua's dynamic module loading.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
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(-)

diff --git a/package/lua/lua.mk b/package/lua/lua.mk
index 30e95b4..aa0b4bf 100644
--- a/package/lua/lua.mk
+++ b/package/lua/lua.mk
@@ -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
-- 
tg: (15fe220..) t/lua (depends on: master)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] lua: fix non-shared library build
  2012-03-11 14:24 ` [Buildroot] [PATCH] lua: fix non-shared library build Arnout Vandecappelle
@ 2012-03-13 13:14   ` Gustavo Zacarias
  2012-03-13 13:17   ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2012-03-13 13:14 UTC (permalink / raw)
  To: buildroot

On 2012-03-11 11:24, Arnout Vandecappelle (Essensium/Mind) wrote:

> Building without BR2_PACKAGE_LUA_SHARED_LIBRARY failed because of
> missing -ldl.  dl is used by lua's dynamic module loading.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] lua: fix non-shared library build
  2012-03-11 14:24 ` [Buildroot] [PATCH] lua: fix non-shared library build Arnout Vandecappelle
  2012-03-13 13:14   ` Gustavo Zacarias
@ 2012-03-13 13:17   ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2012-03-13 13:17 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> 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.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-13 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 14:49 [Buildroot] BR 2012.rc1 :: XORG compilation issue MERCADIER Johann
2012-03-11 14:24 ` [Buildroot] [PATCH] lua: fix non-shared library build Arnout Vandecappelle
2012-03-13 13:14   ` Gustavo Zacarias
2012-03-13 13:17   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox