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 8916] LDFLAGS pass to openssh
Date: Mon, 12 Sep 2016 15:44:05 +0000	[thread overview]
Message-ID: <bug-8916-163-Sye9wX88UF@https.bugs.busybox.net/> (raw)
In-Reply-To: <bug-8916-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=8916

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
It works just fine here, and there is absolutely no need to pass custom LDFLAGS
for this to work. The default dynamic linker path is set by the cross-compiler
and is correct.

I've just tested the following Buildroot defconfig:

BR2_x86_64=y
BR2_x86_core2=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OPENSSH=y

ssh has the correct dynamic linker path:

 readelf -a output/target/usr/bin/ssh | grep -i interpreter
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]

and when I extract the rootfs.tar and chroot into it:

$ sudo chroot rootfs /bin/sh
/ # ssh -l
Couldn't open /dev/null: No such file or directory
/ # mount -t devtmpfs none /dev
/ # ssh -l
option requires an argument -- l
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file]
           [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
           [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
           [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]

So I think you have something in your environment that causes the
cross-compiler to encode a wrong path to the dynamic linker.

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

  reply	other threads:[~2016-09-12 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-10 16:40 [Buildroot] [Bug 8916] New: LDFLAGS pass to openssh bugzilla at busybox.net
2016-09-12 15:44 ` bugzilla at busybox.net [this message]
2016-09-16 13:28 ` [Buildroot] [Bug 8916] " 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-8916-163-Sye9wX88UF@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