tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Rick Beebe <BEEBE () BIOMED ! MED ! YALE ! EDU>
To: tru64-unix-managers
Subject: Need help linking with pthreads
Date: Fri, 09 Jan 1998 13:56:59 +0000	[thread overview]
Message-ID: <96078654410728.tru64-unix-managers.marc@archive.invalid> (raw)

I'm trying to compile a C++ application (mysql) which requires pthreads on a
DU 4.0 machine. There is no libpthreads.a on the machine, only
libpthreads.so (a search through the archives showed that this is 'normal'
for this version of the OS though it would hopefully be corrected in future
versions. I'll be looking at 4.0d when it comes out).

During my initial compilation attempts, linking failed with unresolved
symbol 'pthread_self'. I added -call_shared and it compiled and linked
without error. But when I try to run the application it dies with
'unresolvable symbol: pthread_self_Xv'.

The actual compile lines look similar to:

cxx -pthread -call_shared -O -c mysqld.cc

with the link:

cxx -pthread -call_shared -O -o mysqld mysqld.o -lpthread -lmach -lexc -lc

(I've removed some -DDefine 's and some -Iincludes for readability. I
believe they're all application specific I'm also only showing one
source/object file when in reality there are 45).

Anyone have any suggestions? I'm using cxx 5.1-1.

  _______________________________________________________________________

    Rick Beebe                                           (203) 785-4566
    Network Engineering Manager                     FAX: (203) 737-4037
    ITS-Med Technology Operations                Richard.Beebe@yale.edu   
    Yale University School of Medicine                                 
    P.O. Box 208089, New Haven, CT 06520-8089
  _______________________________________________________________________

                 reply	other threads:[~1998-01-09 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox