Lutz Jaenicke schrieb:
> On Sat, Jun 15, 2002 at 01:01:08AM +0200, Richard Levitte - VMS Whacker wrote:
> 
>>In message <[EMAIL PROTECTED]> on Fri, 14 Jun 2002 
>20:59:59 +0200 (MET DST), [EMAIL PROTECTED] said:
>>
>>jaenicke>   diff -u -r1.7.8.1 -r1.7.8.2
>>jaenicke>   --- c_all.c       2002/02/23 02:09:25     1.7.8.1
>>jaenicke>   +++ c_all.c       2002/06/14 18:59:53     1.7.8.2
>>jaenicke>   @@ -61,6 +61,7 @@
>>jaenicke>    #include <openssl/evp.h>
>>jaenicke>    
>>jaenicke>    #undef OpenSSL_add_all_algorithms
>>jaenicke>   +void OpenSSL_add_all_algorithms(void);
>>jaenicke>    
>>jaenicke>    void OpenSSL_add_all_algorithms(void)
>>jaenicke>     {
>>
>>Please explain why you need to declare that function just before you
>>define it.  I can't see how that makes sense...
> 
> 
> This was done by Goetz's patch. I have also seen gcc complain about functions
> without prototype just when they where defined.

Building OpenSSL with debug (at least on linux)
will generate build lines like
gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -DOPENSSL_NO_KRB5
-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb
-g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations
-Werror   -c -o hw_ncipher.o hw_ncipher.c

and the -Wmissing-declarations with the -Werror will
terminate the build process on not declared functions.
They have to either be declared or static...

Bye

Goetz

-- 
Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0,  Fax: +49-(0)40 80 80 26 -126

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to