[Insight-users] ITK Build Error

Luis Ibanez luis . ibanez at kitware . com
Mon, 26 May 2003 23:10:27 -0400


Hi Jimmy,

It looks a bit like a problem we have seen in the SGIs.

Could you please perform a test for us ?

Check if in this compiler the type

      "char"

is assumed by default to be

     "unsigned char"

or

     "signed char"


A simple program like


    int main()
    {
    char a = -128;
    return 0;
    }

may reproduce the error message that you posted:


 > /Insight/Code/Common/itkNumericTraits.h:118
 > : warning: return of negative value `-128' to `char'



Please let us know what you find.


Thanks


    Luis


----------------------------------------
Jimmy Dias wrote:
> Hey all,
> 
> I'm trying to build the latest stable release of ITK on an IBM AIX 5.2L p670
> and I get the following error. I'm using g++-2.9.aix51.020209-3. Any
> suggestions on how to proceed?
> 
> Thanks in advance,
> Jimmy
> 
> --BEGIN PASTE--
> Building object file itkNumericsHeaderTest.o...
> In file included from
> /usr/local/sys/inst.images/source/Insight/Code/Numerics/itkSingleValuedCostF
> unction.h:23,
>                  from
> /usr/local/sys/inst.images/source/Insight/Code/Numerics/itkSingleValuedNonLi
> nearOptimizer.h:21,
>                  from
> /usr/local/sys/inst.images/source/Insight/Code/Numerics/itkSingleValuedNonLi
> nearVnlOptimizer.h:20,
>                  from
> /usr/local/sys/inst.images/source/Insight/Code/Numerics/itkAmoebaOptimizer.h
> :20,
>                  from
> /usr/local/sys/inst.images/source/Insight/Testing/Code/Numerics/itkNumericsH
> eaderTest.cxx:24:
> /usr/local/sys/inst.images/source/Insight/Code/Common/itkNumericTraits.h: In
> function `char itk::NumericTraits<char>::min ()':
> /usr/local/sys/inst.images/source/Insight/Code/Common/itkNumericTraits.h:118
> : warning: return of negative value `-128' to `char'
> Building executable /home/dias/insite_bin/bin/itkNumericsHeaderTest...
> ld: 0711-317 ERROR: Undefined symbol: basic_string<char,
> string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<true,
> 0>::_S_free_list
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<true,
> 0>::_S_node_allocator_lock
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<true,
> 0>::_S_end_free
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<true,
> 0>::_S_start_free
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<true,
> 0>::_S_heap_size
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> 
> --END PASTE--
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at public . kitware . com
> http://public . kitware . com/mailman/listinfo/insight-users
>