From: Gustavo Zacarias <gustavo@zacarias.com.ar>
To: buildroot@busybox.net
Subject: [Buildroot] OpenSSL compile problems
Date: Tue, 09 Dec 2008 13:57:40 -0200 [thread overview]
Message-ID: <493E9574.6050803@zacarias.com.ar> (raw)
In-Reply-To: <493E7924.5020000@wirelessmeasurement.com>
Rowan Woodhouse wrote:
> Hi,
>
> I'm relatively new to Buildroot and uClibc and I'm having trouble
> building OpenSSL. I'm accepting the default build options but enabling
> large file support and adding in OpenSSL to the package build list. I'm
> building this on Ubuntu Hardy on a VMWare Fusion VM.
>
> When I try to compile I get the following error:
>
> /mnt/buildroot/buildroot/build_i686/staging_dir/usr/bin/i686-linux-uclibc-gcc
> -DMONOLITH -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB
> -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIO -O3
> -fomit-frame-pointer -Wall -c -o speed.o speed.c
> speed.c:147:23: sys/timeb.h: No such file or directory
> speed.c: In function `Time_F':
> speed.c:445: error: storage size of 'tstart' isn't known
> speed.c:445: error: storage size of 'tend' isn't known
> speed.c:451: warning: implicit declaration of function `ftime'
> speed.c:445: warning: unused variable `tstart'
> speed.c:445: warning: unused variable `tend'
> make[2]: *** [speed.o] Error 1
> make[2]: Leaving directory
> `/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g/apps'
> make[1]: *** [build_apps] Error 1
> make[1]: Leaving directory
> `/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g'
> make: ***
> [/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g/.stamp_built] Error 2
>
> I see that timeb.h is in:
>
> ./toolchain_build_i686/uClibc-0.9.30/include/sys/
>
> but if I copy the sys directory as follows:
>
> cp -r toolchain_build_i686/uClibc-0.9.30/include/sys
> build_i686/openssl-0.9.8g/include/
>
> and build again I get this error:
>
> make[3]: Entering directory
> `/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g/apps'
> speed.o: In function `Time_F':
> speed.c:(.text+0x395): undefined reference to `ftime'
> speed.c:(.text+0x3e7): undefined reference to `ftime'
> collect2: ld returned 1 exit status
> make[3]: *** [link_app.gnu] Error 1
> make[3]: Leaving directory
> `/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g/apps'
> make[2]: *** [openssl] Error 2
> make[2]: Leaving directory
> `/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g/apps'
> make[1]: *** [build_apps] Error 1
> make[1]: Leaving directory
> `/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g'
> make: ***
> [/mnt/buildroot/buildroot/build_i686/openssl-0.9.8g/.stamp_built] Error 2
>
> It looks to me like the uClibc paths are not being set up correctly.
> Could someone point me in the right direction to get this fixed? I'm
> using the latest trunk version of Buildroot.
If you're using uclibc-0.9.30 (or new-ish snapshot) you need to enable
SUSV3_LEGACY support in it (UCLIBC_SUSV3_LEGACY &
UCLIBC_SUSV3_LEGACY_MACROS).
Regards.
prev parent reply other threads:[~2008-12-09 15:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 13:56 [Buildroot] OpenSSL compile problems Rowan Woodhouse
2008-12-09 15:57 ` Gustavo Zacarias [this message]
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=493E9574.6050803@zacarias.com.ar \
--to=gustavo@zacarias.com.ar \
--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