eh_globals.cc compilation errors with -threads under hpux 10.20

John David Anglin dave@hiauly1.hia.nrc.ca
Tue May 15 17:27:00 GMT 2001


> The following errors occured compiling eh_globals.cc:
> 
> /xxx/gnu/gcc-3.0/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.0/objdir/gcc/ -nostdinc++ -L/xxx/gnu/gcc-3.0/objdir/hppa1.1-hp-hpux10.20/threads/libstdc++-v3/src -L/xxx/gnu/gcc-3.0/objdir/hppa1.1-hp-hpux10.20/threads/libstdc++-v3/src/.libs -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -B/usr/local/hppa1.1-hp-hpux10.20/lib/ -isystem /usr/local/hppa1.1-hp-hpux10.20/include -threads -I../../../../../libstdc++-v3/../gcc -I../../../../../libstdc++-v3/../include -I../../../../../libstdc++-v3/include -I../../../../../libstdc++-v3/include/std -I../../../../../libstdc++-v3/include/c_std -I../include -I../../../../../libstdc++-v3/libsupc++ -g -O2 -threads -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../../libstdc++-v3/libsupc++/eh_globals.cc  -fPIC -DPIC -o eh_globals.o
> ../../../../../libstdc++-v3/libsupc++/eh_globals.cc: In function 
>    `__cxxabiv1::__cxa_eh_globals* __cxa_get_globals()':
> ../../../../../libstdc++-v3/libsupc++/eh_globals.cc:102: `eh_threads_initialize'
>    undeclared (first use this function)

Here is what happens, currently:

# gcc -v -threads
Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0/specs
Configured with: ../configure --with-gnu-as --enable-shared
Thread model: single
gcc version 3.0 20010503 (prerelease)

This should be be `dce' and not `single' but this doesn't affect the
compilation problem.  When `-threads' is specified gthr.h includes
gthr-dce.h rather than gthr-single.h.  This defines __GTHREADS as 1 
and causes the thread code in eh_globals.cc to compile.

As far as I can tell, the identifiers eh_threads_initialize and
eh_context_key no longer exist anywhere.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Libstdc++ mailing list