From: [EMAIL PROTECTED]

n2xjk> Your test program works (I assume you meant "word" in the
n2xjk> printf instead of but then it is simpler example.

But with exactly the same semantics...


n2xjk> randtest.c and rand_lib.c are different files, so the binder
n2xjk> has to resolve the static references across file scopes.

You've obviously misunderstood what "static" is supposed to do in file
scope.  It should create a variable that is private to the resulting
module/object file.  This means that it can't be refered to directly
from other modules/object files.  And if you look, you'll see that
rand_meth is only refered to in rand_lib.c, nowhere else.  So I can't
really understand why the binder needs to do any extra magic to
resolve it...

n2xjk> I made the same change on AIX, and it operates the same whether
n2xjk> the "static" is in rand_lib or not.

The way it should work...

-- 
Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to