I've been trying to compile OpenSSL on a NetBSD box, and I hit the
following message when it's trying to link openssl, ideatest and
ssltest, basically anything thet uses IDEA:

ld: ../libcrypto.a(i_skey.o): Unexpected relocation type for GOT symbol
collect2: ld returned 1 exit status


First I thought it might be a GNU c problem, but the latest (2.95.2)
got installed yesterday, and I still get the same thing.


I've done a little bit of comparing with objdump, and found this in
i_skey.o:

  bash-2.04$ objdump --reloc crypto/idea/i_skey.o

  crypto/idea/i_skey.o:     file format a.out-i386-netbsd

  RELOCATION RECORDS FOR [.text]:
  OFFSET   TYPE              VALUE
  00000187 32                __GLOBAL_OFFSET_TABLE_

while for all other files, I got results similar to this:

  bash-2.04$ objdump --reloc crypto/idea/i_cfb64.o

  crypto/idea/i_cfb64.o:     file format a.out-i386-netbsd

  BFD: bfd assertion fail 
/devel/netbsd/1.4.2/src/gnu/lib/libbfd/../../dist/bfd/aoutx.h:2310
  BFD: bfd assertion fail 
/devel/netbsd/1.4.2/src/gnu/lib/libbfd/../../dist/bfd/aoutx.h:2310
  RELOCATION RECORDS FOR [.text]:
  OFFSET   TYPE              VALUE
  00000011 DISP32            __GLOBAL_OFFSET_TABLE_
  00000097 (null)            _idea_encrypt
  0000016b (null)            _idea_encrypt


The thing to note is that __GLOBAL_OFFSET_TABLE_ gets the type DISP32
in all object files except i_skey.o, and since ld complains about a
global offset table (that's what GOT means, I presume, please correct
me if I'm wrong), I'm guessing this is where the problem is.

I need help resolving this, 'cause I don't know this stuff well enough
at that level...

Facts:

bash-2.04$ uname -a
NetBSD name.removed.com 1.4.3_ALPHA NetBSD 1.4.3_ALPHA (NONAME-USER) #0: Fri Sep  1 
18:05:47 EDT 2000     
[EMAIL PROTECTED]:/devel/netbsd/release/src/sys/arch/i386/compile/PANIX-USER i386
bash-2.04$ gcc -v
Reading specs from /pkg/gcc-2.95.2/lib/gcc-lib/i386-unknown-netbsd1.4.2/2.95.2/specs
gcc version 2.95.2 19991024 (release)

And I'm using the latest OpenSSL source right from the CVS repository.

-- 
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