New: [PATCH] lua-5.3.4: fix lua linker error in swupdate
https://bugs.busybox.net/show_bug.cgi?id=10026
Bug ID: 10026
Summary: [PATCH] lua-5.3.4: fix lua linker error in swupdate
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: chemobejk at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
Created attachment 7101
--> https://bugs.busybox.net/attachment.cgi?id=7101&action=edit
add missing -ldl to lua.pc
When I updated my existing buildroot configuration to 2017.05 or newer I get build errors in the package "swupdate":
Trying libraries: pthread lua m z ubootenv
Failed: -Wl,--start-group -lpthread -llua -lm -lz -lubootenv -Wl,--end-group
...
==========
.../output/host/arm-buildroot-linux-gnueabihf/sysroot/lib/liblua.so:
undefined reference to `dlopen'
.../output/host/arm-buildroot-linux-gnueabihf/sysroot/lib/liblua.so:
undefined reference to `dlclose'
.../output/host/arm-buildroot-linux-gnueabihf/sysroot/lib/liblua.so:
undefined reference to `dlerror'
.../output/host/arm-buildroot-linux-gnueabihf/sysroot/lib/liblua.so:
undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
make[1]: *** [swupdate_unstripped] Error 1
The root cause is a missing "-ldl" in etc/lua.pc.
This is probably wrong for all lua patches that add etc/lua.pc, although I personally only tested lua-5.3.4. The patch should apply to them too.
I'm attaching the patch that I added to my buildroot external directory to fix the build problem.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
PATCH 1/1 lua-5.3.4: fix lua linker error in swupdate
https://bugs.busybox.net/show_bug.cgi?id=10026
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #1 from Thomas Petazzoni <[email protected]> --- Fixed by
https://git.buildroot.org/buildroot/commit/?id=8d845683e37640d33c186c0091ccce6ae3ef0777.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.