Thank you, HTH, for the suggestions!
Yes, patching gcc's connect2 file fixed my problem.
Consider this issue closed.
KT
  ----- Original Message ----- 
  From: Dave Thompson 
  To: openssl-users@openssl.org 
  Sent: Tuesday, May 07, 2013 9:03 PM
  Subject: RE: Undefined Symbol _fini Building openssl-1.0.1e on sco5-gcc


  >From: On Behalf Of Kerry Tatlow
  >Sent: Tuesday, 07 May, 2013 17:39

  >I am trying to build openssl-1.0.1e for SCO OpenServer 5.0.5, 
  >with gcc 2.95.2pl1 and Perl 5.8.7Ba installed.
  >I configured the openssl install with ./config no-threads no-asm 386.
  >The config chooses OS-compiler combination sco5-gcc.  
  >Then the make seems to succeed all the way until the link step, where it 
  >fails with "Undefined symbol _fini first referenced in
  /usr/ccs/lib/crt1.o".
  >I tried experimenting with various other options to ./config, like sc05-cc,

  >but the list above seems to be the one that gets closest to successful
  completion.
  >I even tried adding a stub function "int _fini(void) { return 0; }" to the
  end 
  >of apps/openssl.c to try to satisfy the linker, but that didn't help
  either.

  I don't know SCO in particular, but on most Unixoid C implementations 
  linker symbol _xyz is C function or variable xyz (without the _).

  However, the bad reference is from crt1.o, not (any) part of openssl.
  This suggests a problem in your C implementation. Can you compile link 
  and run a hello-world program with gcc, without openssl at all? 
  Any other C projects on a scale comparable to openssl?

  Googling found a similar-looking problem with subversion (in 2009) 
  that asserts you need to patch gcc (specifically collect2).
  http://www.svnforum.org/threads/36502-Subversion-1-5-5-on-SCO-OpenServer-5-0
  -5-**SUCCESS**
  OTOH http://gcc.gnu.org/ml/gcc-patches/1999-02n/msg00781.html 
  asserts _init and _fini are provided by crt1.o -- in unspecified version -- 
  while other messages assert crti.o is needed (as well?).

  HTH.

  ______________________________________________________________________
  OpenSSL Project                                 http://www.openssl.org
  User Support Mailing List                    openssl-users@openssl.org
  Automated List Manager                           majord...@openssl.org

Reply via email to