Compiling openssl with lsb (4.1) under ubuntu (12.04). The $ config worked successfully with a "Configured for linux-elf."
The $ make generated the following errors (full output available if needed): make[2]: Entering directory `/home/alto/Downloads/openssl-1.0.1e/crypto/ui' lsbcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o ui_err.o ui_err.c lsbcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o ui_lib.o ui_lib.c lsbcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o ui_openssl.o ui_openssl.c ui_openssl.c: In function ‘open_console’: ui_openssl.c:503:7: error: ‘TCGETA’ undeclared (first use in this function) ui_openssl.c:503:7: note: each undeclared identifier is reported only once for each function it appears in ui_openssl.c: In function ‘noecho_console’: ui_openssl.c:534:38: error: invalid application of ‘sizeof’ to incomplete type ‘struct termio’ ui_openssl.c:535:2: error: invalid use of undefined type ‘struct termio’ ui_openssl.c:539:19: error: ‘TCSETA’ undeclared (first use in this function) ui_openssl.c: In function ‘echo_console’: ui_openssl.c:556:38: error: invalid application of ‘sizeof’ to incomplete type ‘struct termio’ ui_openssl.c:557:2: error: invalid use of undefined type ‘struct termio’ ui_openssl.c:561:19: error: ‘TCSETA’ undeclared (first use in this function) make[2]: *** [ui_openssl.o] Error 1 make[2]: Leaving directory `/home/alto/Downloads/openssl-1.0.1e/crypto/ui' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/home/alto/Downloads/openssl-1.0.1e/crypto' make: *** [build_crypto] Error 1 All pointers appreciated. Best ... Dinesh