[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnats/129: pthread-related link problem
From: |
jle |
Subject: |
gnats/129: pthread-related link problem |
Date: |
17 Jan 2001 11:15:45 -0000 |
>Number: 129
>Category: gnats
>Synopsis: pthread-related link problem
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 17 03:24:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jacque Leroy address@hidden
>Release: gcc-2.95.2
>Organization:
>Environment:
hppa2.0-hp-hpux10.20
>Description:
Depending on the existence of the file :
/usr/include/pthread.h
libstdc++.sl and libgcc.a may contain several undefined externals or not:
pthread_once()
pthread_setspecific()
pthread_getspecific()
pthread_createkey()
So it may be necessary to add -lcma or -ldce to the link line to prevent
undefined externals
As a result, old executables (hppa1.1-hp-hpux9.XX) may start or not (undefined
symbol error)
We are in
>How-To-Repeat:
Assumed you have a hppa2.0-hp-hpux10.20 at your fingertips
1) check you have pthread.h
2) rename pthread.h into something different
3) build your gcc-2.95.2 and install it
4) build any C++ application using iostream
(a simple cout << "Hello World !"; is enough)
but do not link with -ldce or -lcma
5) check your app is running
6) bring back pthread.h
7) reconfigure, rebuild and reinstall your compiler gcc-2.95.2
8) the previoulsly running app won't start, saying that there are undefined
symbols ...
>Fix:
HELP !
>Release-Note:
>Audit-Trail:
>Unformatted:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnats/129: pthread-related link problem,
jle <=