[stlport-bugs] [ stlport-Bugs-1842421 ] test/eh/nc_alloc.cpp does not compile on FreeBSD 6
Brought to you by:
complement
From: SourceForge.net <no...@so...> - 2007-12-01 19:33:51
|
Bugs item #1842421, was opened at 2007-12-01 20:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=766244&aid=1842421&group_id=146814 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: 5.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Václav Haisman (wilx) Assigned to: Nobody/Anonymous (nobody) Summary: test/eh/nc_alloc.cpp does not compile on FreeBSD 6 Initial Comment: Hi, I tried to compile STLport 5.1.4's testsuite, the other unit tests compiled fine but this part does not. It ends with the following errors: c++ -pthread -fexceptions -fident -g -fno-inline -fuse-cxa-atexit -D_REENTRANT -D_STLP_NO_CUSTOM_IO -D_STLP_DEBUG_UNINITIALIZED -I../../../stlport -I../../../stlport -c -o obj/gcc/so_g/nc_alloc.o ../../../test/eh/nc_alloc.cpp ../../../test/eh/nc_alloc.cpp: In function `void* operator new(size_t)': ../../../test/eh/nc_alloc.cpp:207: error: declaration of `void* operator new(size_t)' throws different exceptions /usr/include/c++/3.4/new:82: error: than previous declaration `void* operator new(size_t) throw (std::bad_alloc)' ../../../test/eh/nc_alloc.cpp: In function `void operator delete(void*)': ../../../test/eh/nc_alloc.cpp:245: error: declaration of `void operator delete(void*)' throws different exceptions /usr/include/c++/3.4/new:84: error: than previous declaration `void operator delete(void*) throw ()' gmake: *** [obj/gcc/so_g/nc_alloc.o] Error 1 It seems like the build process should use the -DEH_DELETE_HAS_THROW_SPEC define for the platform. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=766244&aid=1842421&group_id=146814 |