Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] OpenSSL compile problems
@ 2008-12-09 13:56 Rowan Woodhouse
  2008-12-09 15:57 ` Gustavo Zacarias
  0 siblings, 1 reply; 2+ messages in thread
From: Rowan Woodhouse @ 2008-12-09 13:56 UTC (permalink / raw)
  To: buildroot

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.

Thanks,
Rowan

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

* [Buildroot] OpenSSL compile problems
  2008-12-09 13:56 [Buildroot] OpenSSL compile problems Rowan Woodhouse
@ 2008-12-09 15:57 ` Gustavo Zacarias
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Zacarias @ 2008-12-09 15:57 UTC (permalink / raw)
  To: buildroot

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.

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

end of thread, other threads:[~2008-12-09 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09 13:56 [Buildroot] OpenSSL compile problems Rowan Woodhouse
2008-12-09 15:57 ` Gustavo Zacarias

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