Bug#158581: g++-3.2: problem location header files
> g++-3.2 -g -Wall -O3 AcceptanceRateBin.o AlarmClock.o BlockedIntervalList.o BlockedIntervalListManager.o DP.o DP2CDSClient.o DPComm.o DP_Config.o FlowManager.o FlowSchedule.o MFSequence.o RateList.o SO.o SchedulerFig36.o TGUIProxy.o TimeReferencePointList.o main.o ../lib/libsassmsg.a ../lib/libsassutil.a -o DP
> main.o: In function `std::basic_streambuf<char, std::char_traits<char> >::setg(char*, char*, char*)':
> /usr/include/g++-v3/bits/stl_map.h(.gnu.linkonce.t._ZNSt13_Format_cacheIcE6_S_getERSt8ios_base+0x75): undefined reference to `std::_Format_cache<char>::_Format_cache[in-charge]()'
> main.o: In function `main':
> /home/afong/xwave/SASS/SRC/SASS/SASSCDS/sass/DP_new/DP.h:101: undefined reference to `std::_Format_cache<char>::_Format_cache[in-charge]()'
> collect2: ld returned 1 exit status
I assume main.o is compiled with g++-3.0. Although this part of the
log is missing.
Amy Fong writes:
> > Amy Fong writes:
> > > Upon linking my app, I get the following error:
> >
> > please send the complete command, including all compiler options,
> > which produced this error.
> >
>
> Log of entire build attached.
> Script started on Wed Aug 28 06:39:23 2002
> afong@natsumi:~/work/SASS/SASSCDS/sass/DP_new$ make
> (cd ../sassutil && make CXX=g++-3.2 CPPFLAGS="-I`pwd`/.. -g -Wall -O3")
> make[1]: Entering directory `/home/afong/xwave/SASS/SRC/SASS/SASSCDS/sass/sassutil'
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassutil/.. -g -Wall -O3 -c -o SassTrace.o SassTrace.C
> ar ru ../lib/libsassutil.a SassTrace.o
> make[1]: Leaving directory `/home/afong/xwave/SASS/SRC/SASS/SASSCDS/sass/sassutil'
> (cd ../sassmsg && make CXX=g++-3.2 CPPFLAGS="-I`pwd`/.. -g -Wall -O3")
> make[1]: Entering directory `/home/afong/xwave/SASS/SRC/SASS/SASSCDS/sass/sassmsg'
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o SassBuffer.o SassBuffer.C
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o SassMsg.o SassMsg.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from SassMsg.C:2:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> SassMsg.C: In member function `virtual std::string SassMsg::toString()':
> SassMsg.C:88: warning: enumeration value `ETrackInfoMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `ENfdpsMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EConnectionMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlightPriorityMsg' not handled
> in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlightActivationMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlightAssignmentMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlowDefinitionsMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `ERescheduleFlightMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `ESpecifyBlockedIntervalMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `ESpecifyBlockedSlotMsg' not handled
> in switch
> SassMsg.C:88: warning: enumeration value `EDeleteFlightMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EProcessEventsMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `ESetFlightAircraftTypeMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `EUpdateFlightTimeMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EGetRARFlowNamesMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EChangeFlowScheduleMsg' not handled
> in switch
> SassMsg.C:88: warning: enumeration value `EChangeAARScheduleMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `ETextMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EFlightPlanMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EReferencePointETAMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EOvercrossingTimeMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EAirportRecordMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EQueryDPMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EQueryFPMMsg' not handled in switch
> SassMsg.C: In function `std::ostream& operator<<(std::ostream&, EMsgType)':
> SassMsg.C:88: warning: enumeration value `ETrackInfoMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `ENfdpsMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EConnectionMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlightPriorityMsg' not handled
> in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlightActivationMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlightAssignmentMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `EChangeFlowDefinitionsMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `ERescheduleFlightMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `ESpecifyBlockedIntervalMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `ESpecifyBlockedSlotMsg' not handled
> in switch
> SassMsg.C:88: warning: enumeration value `EDeleteFlightMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EProcessEventsMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `ESetFlightAircraftTypeMsg' not
> handled in switch
> SassMsg.C:88: warning: enumeration value `EUpdateFlightTimeMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EGetRARFlowNamesMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EChangeFlowScheduleMsg' not handled
> in switch
> SassMsg.C:88: warning: enumeration value `EChangeAARScheduleMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `ETextMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EFlightPlanMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EReferencePointETAMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EOvercrossingTimeMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EAirportRecordMsg' not handled in
> switch
> SassMsg.C:88: warning: enumeration value `EQueryDPMsg' not handled in switch
> SassMsg.C:88: warning: enumeration value `EQueryFPMMsg' not handled in switch
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o SassSocket.o SassSocket.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from SassSocket.C:7:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o ServerSocket.o ServerSocket.C
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o ClientSocket.o ClientSocket.C
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o MsgClientSocket.o MsgClientSocket.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/MsgClientSocket.h:5,
> from MsgClientSocket.C:3:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o PubSubMsgClientSocket.o PubSubMsgClientSocket.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/MsgClientSocket.h:5,
> from ../sassmsg/PubSubMsgClientSocket.h:4,
> from PubSubMsgClientSocket.C:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o CdsMsgClientSocket.o CdsMsgClientSocket.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/MsgClientSocket.h:5,
> from ../sassmsg/PubSubMsgClientSocket.h:4,
> from ../sassmsg/CdsMsgClientSocket.h:4,
> from CdsMsgClientSocket.C:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o SocketManager.o SocketManager.C
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o MsgFactory.o MsgFactory.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/MsgFactory.h:6,
> from MsgFactory.C:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o ErrorMsg.o ErrorMsg.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/ErrorMsg.h:5,
> from ErrorMsg.C:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o PingMsg.o PingMsg.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/PingMsg.h:5,
> from PingMsg.C:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o PingReplyMsg.o PingReplyMsg.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/PingReplyMsg.h:5,
> from PingReplyMsg.C:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -Wall -pedantic -g -DSASSTRACE -I. -I.. -I/home/afong/work/SASS/SASSCDS/sass/sassmsg/.. -g -Wall -O3 -c -o SubscribeMsg.o SubscribeMsg.C
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../sassmsg/SubscribeMsg.h:4,
> from SubscribeMsg.C:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> ar ru ../lib/libsassmsg.a SassBuffer.o SassMsg.o SassSocket.o ServerSocket.o ClientSocket.o MsgClientSocket.o PubSubMsgClientSocket.o CdsMsgClientSocket.o SocketManager.o MsgFactory.o ErrorMsg.o PingMsg.o PingReplyMsg.o SubscribeMsg.o
> make[1]: Leaving directory `/home/afong/xwave/SASS/SRC/SASS/SASSCDS/sass/sassmsg'
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c AcceptanceRateBin.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c AlarmClock.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c BlockedIntervalList.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c BlockedIntervalListManager.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c DP.cpp
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../common/AirportRecordMsg.h:5,
> from DP2CDSClient.h:4,
> from TGUIProxy.h:13,
> from DPComm.h:21,
> from DP.cpp:2:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c DP2CDSClient.cpp
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../common/AirportRecordMsg.h:5,
> from DP2CDSClient.h:4,
> from DP2CDSClient.cpp:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c DPComm.cpp
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../common/AirportRecordMsg.h:5,
> from DP2CDSClient.h:4,
> from TGUIProxy.h:13,
> from DPComm.h:21,
> from DPComm.cpp:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c DP_Config.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c FlowManager.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c FlowSchedule.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c MFSequence.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c RateList.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c SO.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c SchedulerFig36.cpp
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c TGUIProxy.cpp
> In file included from /usr/include/c++/3.2/backward/iostream.h:31,
> from ../sassmsg/SassMsg.h:4,
> from ../common/AirportRecordMsg.h:5,
> from DP2CDSClient.h:4,
> from TGUIProxy.h:13,
> from TGUIProxy.cpp:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> g++-3.2 -g -Wall -O3 -DSASSTRACE -I.. -I../sassmsg -I../sassutil -I../common -I../TGUI/src -c TimeReferencePointList.cpp
> g++-3.2 -g -Wall -O3 AcceptanceRateBin.o AlarmClock.o BlockedIntervalList.o BlockedIntervalListManager.o DP.o DP2CDSClient.o DPComm.o DP_Config.o FlowManager.o FlowSchedule.o MFSequence.o RateList.o SO.o SchedulerFig36.o TGUIProxy.o TimeReferencePointList.o main.o ../lib/libsassmsg.a ../lib/libsassutil.a -o DP
> main.o: In function `std::basic_streambuf<char, std::char_traits<char> >::setg(char*, char*, char*)':
> /usr/include/g++-v3/bits/stl_map.h(.gnu.linkonce.t._ZNSt13_Format_cacheIcE6_S_getERSt8ios_base+0x75): undefined reference to `std::_Format_cache<char>::_Format_cache[in-charge]()'
> main.o: In function `main':
> /home/afong/xwave/SASS/SRC/SASS/SASSCDS/sass/DP_new/DP.h:101: undefined reference to `std::_Format_cache<char>::_Format_cache[in-charge]()'
> collect2: ld returned 1 exit status
> make: *** [DP] Error 1
> afong@natsumi:~/work/SASS/SASSCDS/sass/DP_new$ exit
>
> Script done on Wed Aug 28 06:41:28 2002
Reply to: