Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problems building openssh in buildroot with glibc
@ 2012-11-14 21:52 Daniel Price
  2012-11-15  8:13 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Price @ 2012-11-14 21:52 UTC (permalink / raw)
  To: buildroot

Hi, I'm using a glibc x86_64 based toolchain, and, despite a lot of
hacking, cannot seem to get the openssh included with buildroot to
configure.  My host environment is Fedora 15.  The error I encounter
looks like this:

-----
checking OpenSSL header version... not found
configure: error: OpenSSL version header not found.
make: *** [/aux0/dp/distro-x86-br-xtools/output-minimal/build/openssh-6.0p1/.stamp_configured]
Error 1
-----

In config.log, I see:

-----
configure:10816: checking OpenSSL header version
configure:10853:
/aux0/dp/distro-x86-br-xtools/output-minimal/host/usr/bin/x86_64-dssd-linux-gnu-gcc
-o conftest  -pipe -O3 -g2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wformat-security -Wno-pointer-sign -Wno-unused-result
-fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset
-fstack-protector-all   -pipe -O3 -g2 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fstack-protector-all
conftest.c -lcrypto -ldl -lutil -lz -lnsl  >&5
configure:10853: $? = 0
configure:10853: ./conftest
./conftest: error while loading shared libraries: libcrypto.so.1.0.0:
cannot open shared object file: No such file or directory
configure:10853: $? = 127
configure: program exited with status 127
-----

To summarize: the conftest compiles fine but fails to link at runtime.
 I've tried various settings of CFLAGS, LDFLAGS, etc. without much
luck, although my experience with linux's linker in this regard is
very limited.  I went on a search to see if libcrypto.so.1.0.0 was
present in my build environment and here is what I found:

-----
$ find output -name libcrypto.so.1.0.0
output/host/usr/x86_64-unknown-linux-gnu/sysroot/usr/lib/libcrypto.so.1.0.0
output/build/openssl-1.0.0j/libcrypto.so.1.0.0
output/target/usr/lib/libcrypto.so.1.0.0

$ find output -name opensslv.h
output/host/usr/x86_64-unknown-linux-gnu/sysroot/usr/include/openssl/opensslv.h
output/build/openssl-1.0.0j/include/openssl/opensslv.h
output/build/openssl-1.0.0j/crypto/opensslv.h
output/target/usr/include/openssl/opensslv.h
-----

Can anyone else confirm the same problem?  Can anyone suggest a
solution?  If I use uclibc, it compiles fine, but I'm constrained and
can't do that.  I also know that I could switch to DropBear but I'd
like to solve this.  I'm happy to file a bug if that helps.

Thanks for your help,

         -dp

--
Daniel.Price at gmail.com

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

* [Buildroot] Problems building openssh in buildroot with glibc
  2012-11-14 21:52 [Buildroot] Problems building openssh in buildroot with glibc Daniel Price
@ 2012-11-15  8:13 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2012-11-15  8:13 UTC (permalink / raw)
  To: buildroot

Dear Daniel Price,

On Wed, 14 Nov 2012 13:52:36 -0800, Daniel Price wrote:
> Hi, I'm using a glibc x86_64 based toolchain, and, despite a lot of
> hacking, cannot seem to get the openssh included with buildroot to
> configure.  My host environment is Fedora 15.  The error I encounter
> looks like this:
> 
> -----
> checking OpenSSL header version... not found
> configure: error: OpenSSL version header not found.
> make: *** [/aux0/dp/distro-x86-br-xtools/output-minimal/build/openssh-6.0p1/.stamp_configured]
> Error 1
> -----
> 
> In config.log, I see:
> 
> -----
> configure:10816: checking OpenSSL header version
> configure:10853:
> /aux0/dp/distro-x86-br-xtools/output-minimal/host/usr/bin/x86_64-dssd-linux-gnu-gcc
> -o conftest  -pipe -O3 -g2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Wall -Wpointer-arith -Wuninitialized
> -Wsign-compare -Wformat-security -Wno-pointer-sign -Wno-unused-result
> -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset
> -fstack-protector-all   -pipe -O3 -g2 -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fstack-protector-all
> conftest.c -lcrypto -ldl -lutil -lz -lnsl  >&5
> configure:10853: $? = 0
> configure:10853: ./conftest
> ./conftest: error while loading shared libraries: libcrypto.so.1.0.0:
> cannot open shared object file: No such file or directory
> configure:10853: $? = 127
> configure: program exited with status 127
> -----
> 
> To summarize: the conftest compiles fine but fails to link at runtime.
>  I've tried various settings of CFLAGS, LDFLAGS, etc. without much
> luck, although my experience with linux's linker in this regard is
> very limited.  I went on a search to see if libcrypto.so.1.0.0 was
> present in my build environment and here is what I found:
> 
> -----
> $ find output -name libcrypto.so.1.0.0
> output/host/usr/x86_64-unknown-linux-gnu/sysroot/usr/lib/libcrypto.so.1.0.0
> output/build/openssl-1.0.0j/libcrypto.so.1.0.0
> output/target/usr/lib/libcrypto.so.1.0.0
> 
> $ find output -name opensslv.h
> output/host/usr/x86_64-unknown-linux-gnu/sysroot/usr/include/openssl/opensslv.h
> output/build/openssl-1.0.0j/include/openssl/opensslv.h
> output/build/openssl-1.0.0j/crypto/opensslv.h
> output/target/usr/include/openssl/opensslv.h
> -----
> 
> Can anyone else confirm the same problem?  Can anyone suggest a
> solution?  If I use uclibc, it compiles fine, but I'm constrained and
> can't do that.  I also know that I could switch to DropBear but I'd
> like to solve this.  I'm happy to file a bug if that helps.

Which Buildroot version are you using? If you're using 2012.08, then it
might be 11017f081fc5b034e680d89eaea729c19f450e01 that is missing,
which leads OpenSSH to not understand we're cross-compiling.

Can you show the entire build output of OpenSSH, preferably in a
pastebin?

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2012-11-15  8:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14 21:52 [Buildroot] Problems building openssh in buildroot with glibc Daniel Price
2012-11-15  8:13 ` Thomas Petazzoni

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