Hi

I think I have found the problem. Looking into speed.c unter /apps I found the 
two possible errors:

1.) If compiled without DSA & RSA at the same time than the variable rsa_result 
is not defined: from line 510 in speed.c

#if !defined(OPENSSL_NO_RSA) || !defined(OPENSSL_NO_DSA)
long rsa_count;
#endif

Therefore since I didn't compile with the flag no-ecdsa OPENSSL_NO_ECDSA is not 
defined what leads to the excecution of source code from line 2269ff. In here 
rsa_count is set what leads to an error, since it is not defined previously. 

So first of all: Is that a development bug? Such error shouldn't happen at all, 
should it?

2.) The other errors come pretty much from the same problem

if flag no-rsa or no-dsa is set than the variables rsa_result and dsa_result 
are not defined. Therefore using them in the function do_multi leads to the 
exact same errors => no defined. I made a quick&dirty workaround by just 
replacing the correspondings lines with some dummy code however i don't like to 
use this version for the next steps. After that workaround it compiled fine. 

Is there any other solution to do it better? Is this also a (known)bug?

Greetings
Markus


-------- Original-Nachricht --------
> Datum: Thu, 22 Jul 2010 13:56:25 +0200
> Von: "Markus Hofer" <markus_ho...@gmx.at>
> An: openssl-users@openssl.org
> Betreff: openssl build error for embedded systems

> Hi
> 
> I am currently working on building openssl for an embedded system. Since
> the only things I need  on the embedded system are SHA, MD5 and HMAC(in
> order to fit net-snmp later on) I’m trying to cut down openssl as much as
> possible.  
> 
> I am using openssl 0.9.8o
> 
> So I am doing the following things to compile
> 
> ~~/work/openssl$ ./config --prefix=/home_vie/mhofer/tmp_openssl
> --openssldir=/home_vie/mhofer/tmp_openssl/openssl no-threads no-zlib 
> no-shared no-bf
> no-cast no-dh no-des no-dsa no-md2 no-mdc2 no-rc2 no-rc4 no-rc5 no-rsa;
> make depend; make
> 
> the Make process stops with the following output
> 
> gcc -DMONOLITH -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H
> -march=pentium -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
> -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM 
> -DRMD160_ASM -DAES_ASM   -c
> -o speed.o speed.c
> speed.c: In function âspeed_mainâ:
> speed.c:2285: error: ârsa_countâ undeclared (first use in this function)
> speed.c:2285: error: (Each undeclared identifier is reported only once
> speed.c:2285: error: for each function it appears in.)
> speed.c: In function âdo_multiâ:
> speed.c:2839: error: ârsa_resultsâ undeclared (first use in this
> function)
> speed.c:2881: error: âdsa_resultsâ undeclared (first use in this
> function)
> make[1]: *** [speed.o] Error 1
> make[1]: Leaving directory `/home_vie/mhofer/work/openssl/apps'
> make: *** [build_apps] Error 1
> 
> So what might be here the problem? Am I doing smthing wrong
> 
> I would appreciate your help
> 
> Best regards
> Markus
> -- 
> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org

-- 
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to