Bug 1453 - OpenSSL0.9.8n fails to compile
Summary: OpenSSL0.9.8n fails to compile
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 major
Target Milestone: 2010.05
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-31 13:52 UTC by Nazarenko Nikita
Modified: 2010-04-02 15:10 UTC (History)
1 user (show)

See Also:
Host: Archlinux i686
Target: AT91RM9200 based board
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nazarenko Nikita 2010-03-31 13:52:07 UTC
While building openssl with uClibc  0.9.30.3 and buildroot toolchain: binutils-2.20 gcc-4.3.3, build fails with error:

home/savant/devel/irz/buildroot/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIO -Os -pipe -Os  -I/home/savant/devel/irz/buildroot/output/staging/usr/include -I/home/savant/devel/irz/buildroot/output/staging/include --sysroot=/home/savant/devel/irz/buildroot/output/staging/ -isysroot /home/savant/devel/irz/buildroot/output/staging -mtune=arm920t -march=armv4t -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -Wall   -c -o speed.o speed.c
speed.c:147:23: error: sys/timeb.h: No such file or directory
speed.c: In function 'Time_F':
speed.c:459: error: storage size of 'tstart' isn't known
speed.c:459: error: storage size of 'tend' isn't known
speed.c:465: warning: implicit declaration of function 'ftime'
speed.c:459: warning: unused variable 'tend'
speed.c:459: warning: unused variable 'tstart'
make[2]: *** [speed.o] Ошибка 1
make[2]: Leaving directory `/home/savant/devel/irz/buildroot/output/build/openssl-0.9.8n/apps'
make[1]: *** [build_apps] Ошибка 1
make[1]: Leaving directory `/home/savant/devel/irz/buildroot/output/build/openssl-0.9.8n'
make: *** [/home/savant/devel/irz/buildroot/output/build/openssl-0.9.8n/.stamp_built] Ошибка 2
Comment 1 Nazarenko Nikita 2010-03-31 13:58:17 UTC
Workaround:
Add UCLIBC_SUSv3_LEGACY=y string to output/toolchain/uClibc-0.9.30.3/.config
Comment 2 Peter Korsgaard 2010-03-31 14:45:42 UTC
Strange, (In reply to comment #0)
> While building openssl with uClibc  0.9.30.3 and buildroot toolchain:
> binutils-2.20 gcc-4.3.3, build fails with error:
> 
> -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -Wall   -c -o speed.o speed.c
> speed.c:147:23: error: sys/timeb.h: No such file or directory

Strange, that should get fixed by package/openssl/openssl-uclibc-susv3-legacy.patch - Doesn't that get applied on your system? (check output/build/openssl-0.9.8n/.applied_patches_list)

It builds here (arm926, gcc 4.3.4, binutils 2.20.1, kernel 2.6.33.1)
Comment 3 Nazarenko Nikita 2010-03-31 15:53:02 UTC
Ok, I'll check patch applying on my system. Thanks.
Comment 4 Nazarenko Nikita 2010-04-02 14:03:45 UTC
(In reply to comment #3)
> Ok, I'll check patch applying on my system. Thanks.
> 
did you try to make clean and build again? it seems like I have problem with makefiles. Target .stamp_patched only touch .stamp_patched and nothing more
Comment 5 Nazarenko Nikita 2010-04-02 15:10:45 UTC
It is problem with my local changes. 
Not a bug