Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 10026] New: [PATCH] lua-5.3.4: fix lua linker error in swupdate
Date: Tue, 11 Jul 2017 11:28:50 +0000	[thread overview]
Message-ID: <bug-10026-163@https.bugs.busybox.net/> (raw)

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2017-07-11 11:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11 11:28 bugzilla at busybox.net [this message]
2017-08-11 13:58 ` [Buildroot] [Bug 10026] [PATCH] lua-5.3.4: fix lua linker error in swupdate bugzilla at busybox.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-10026-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox