[Buildroot] problem with openssh

Tomohiro Masubuchi bucchi at e-ml.jp
Fri Jun 8 04:52:43 UTC 2007


Hi all,

Elia Yehuda wrote:
> Ive been trying to compile openssh using buildroot, and just like
> samba, it compiles fine but any executable halts with "segmentation
> fault".

I found out that the cause of this problem originated in
__progname = NULL in uClibc-0.9.29.

The UCLIBC_HAS___PROGNAME is enabled in uClibc-0.9.29.config,
but UCLIBC_HAS_PROGRAM_INVOCATION_NAME is disabled.

Under this condition, it seems to become __progname = NULL. (uclibc's bug??)

In uClibc-0.9.28.config, both UCLIBC_HAS_PROGRAM_INVOCATION_NAME and
UCLIBC_HAS___PROGNAME is not exist. These become disabled.
In this case, symbol __progname was not exist. Then openssh will be
configured to not use __progname. Therefore this problem doesn't
happen in uClibc-0.9.28.

To solve this problem in uClibc-0.9.29, the following sentences of
toolchain/uClibc/uClibc-0.9.29.config are changed, and rebuild uclibc.

# UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set

to

UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y

It works fine with arm(iwmmxt), gcc-4.2.0, binutils-2.17.50.0.16,
uClibc-0.9.29.

Tomohiro



More information about the buildroot mailing list