This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

target/5383: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads



>Number:         5383
>Category:       target
>Synopsis:       3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 14 13:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Donner
>Release:        3.0.3
>Organization:
>Environment:
HP-UX tango B.11.00 A 9000/785,
hppa2.0w-hp-hpux11.00,
binutils 2.11.2,
(jpararas@tango ~ >as --version
GNU assembler 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `hppa2.0w-hp-hpux11.00'.
)
>Description:
jpararas@tango ~ >gcc -v
Reading specs from /usr/local/gcc303/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.3/specs
Configured with: ../gcc-3.0.3/configure --prefix=/usr/local/gcc303 --with-gnu-as --with-as=/usr/local/bin/as --with-ld=/usr/ccs/bin/ld --enable-threads=posix
Thread model: posix
gcc version 3.0.3


This was compiled with thread support.  However, a simple
Hello World app, Foo.cpp fails to link, as follows:

jpararas@tango ~ >g++ Foo.cpp
/usr/ccs/bin/ld: Unsatisfied symbols:
   pthread_once (code)
   pthread_key_create (code)
   pthread_setspecific (code)
   pthread_mutex_unlock (code)
   pthread_getspecific (code)
   pthread_mutex_lock (code)
collect2: ld returned 1 exit status


And even:

jpararas@tango ~ >g++ -threads Foo.cpp
/usr/ccs/bin/ld: Unsatisfied symbols:
   pthread_key_create (code)
collect2: ld returned 1 exit status

A precompiled, single-thread gcc 3.0.1 (binary from HP)

jpararas@tango ~ >gcc -v
Reading specs from /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/specs
Configured with: ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure 
Thread model: single
gcc version 3.0.1

compiles & runs fine:
jpararas@tango ~ >g++ Foo.cpp
jpararas@tango ~ >./a.out
Hello world

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]