| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0007947 | ITK | public | 2008-11-05 12:51 | 2010-10-21 12:32 | |||||
| Reporter | Michal Sofka | ||||||||
| Assigned To | Julien Finet | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | Unix | OS | FreeBSD | OS Version | 6.3 | ||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ITK-3-10 | |||||||
| Summary | 0007947: compiler error on Code/Common/itkMemoryUsageObserver.cxx | ||||||||
| Description | Compiler error: Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkMemoryUsageObserver.o In file included from Insight/Code/Common/itkMemoryUsageObserver.cxx:46: /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>" Insight/Code/Common/itkMemoryUsageObserver.cxx: In member function `virtual long unsigned int itk::MallinfoMemoryUsageObserver::GetMemoryUsage()': Insight/Code/Common/itkMemoryUsageObserver.cxx:422: error: variable `itk::mallinfo minfo' has initializer but incomplete type Insight/Code/Common/itkMemoryUsageObserver.cxx:422: error: invalid use of undefined type `struct itk::mallinfo' Insight/Code/Common/itkMemoryUsageObserver.cxx:422: error: forward declaration of `struct itk::mallinfo' gmake[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkMemoryUsageObserver.o] Error 1 Reason: malloc.h does not define mallinfo malloc.h listing: /* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien Exp $ */ #if __STDC__ #error "<malloc.h> has been replaced by <stdlib.h>" #else #include <stdlib.h> #endif Also note: stdlib.h does not define mallinfo either. | ||||||||
| Tags | No tags attached. | ||||||||
| Resolution Date | |||||||||
| Sprint | |||||||||
| Sprint Status | |||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0014677) Julien Finet (developer) 2009-01-25 18:00 |
Now MallinfoMemoryUsageObserver is not used in FreeBSD applications. SysResourceMemoryUsageObserver is used instead. However, SysResourceMemoryUsageObserver is far from being an accurate way of querying the memory usage; some alternatives would be to parse the output of * "sysctl vm.vmtotal" or "sysctl -a | grep -i memory" |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2008-11-05 12:51 | Michal Sofka | New Issue | |
| 2009-01-24 11:26 | Luis Ibanez | Status | new => assigned |
| 2009-01-24 11:26 | Luis Ibanez | Assigned To | => Julien Jomier |
| 2009-01-24 14:42 | Luis Ibanez | Assigned To | Julien Jomier => Julien Finet |
| 2009-01-25 18:00 | Julien Finet | Note Added: 0014677 | |
| 2009-01-25 18:00 | Julien Finet | Status | assigned => resolved |
| 2009-01-25 18:00 | Julien Finet | Fixed in Version | => ITK-3-10 |
| 2009-01-25 18:00 | Julien Finet | Resolution | open => fixed |
| 2010-10-21 12:32 | Gabe Hart | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |