[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

3428.0. "GLOBAL BSS / GLOBAL OBJECT warning ?" by TAEC::FLAUW (Marc Flauw, TeMIP Technical Office, VBO) Tue Feb 04 1997 12:40

Hello,

env: D-Unix V3.2G, cxx V5.5

One of our customer has the following warning message:  

Warning: theVerbModuleSMTest defined as GLOBAL BSS but is defined in a
shared lib as a GLOBAL OBJECT

theVerbModuleSMTest is an instance of one of our classes defined as a
global variable in one of our shared libraries.

We haven't seen this message so far and I haven't received any additional
info yet from our customer.

Is it a well known message and would it be possible to get some more info
on the meaning of this warning ?

Thanks and regards,

Marc.
T.RTitleUserPersonal
Name
DateLines
3428.1one thing to look at...DECC::J_WARDTue Feb 04 1997 13:2528
When I see this error message it means that
I'm trying to link with both an archive (non-shared)
version of a library and a shared version of
the same library.

For example if you explicitly link with the
archive libcxx.a you get the errors because
the cxx driver already links with the shared
version. You can probably look at the linker (ld) 
documentation for more info.

cosf.zko.dec.com> cxx -all t.cxx $aosf_bld/libcxx.a
ld:
Warning: __Complex_Error_Mutex defined as GLOBAL BSS but is defined in a shared
lib as a GLOBAL OBJECT
Warning: __Message_Mutex defined as GLOBAL BSS but is defined in a shared lib as
a GLOBAL OBJECT
Warning: __cxxl_lock_array defined as GLOBAL BSS but is defined in a shared lib
as a GLOBAL OBJECT
Warning: __pcout defined as GLOBAL BSS but is defined in a shared lib as a
GLOBAL OBJECT
Warning: __pcin defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL
OBJECT
Warning: __pcerr defined as GLOBAL BSS but is defined in a shared lib as a
GLOBAL OBJECT
Warning: __pclog defined as GLOBAL BSS but is defined in a shared lib as a
GLOBAL OBJECT
3428.2ThanksTAEC::FLAUWMarc Flauw, TeMIP Technical Office, VBOTue Feb 04 1997 14:508
Thanks,

I have reproduced it that way. Another way I found was to redeclare the same
variable both in my shared lib and in one of the source file of the executable.

Best regards,

Marc.