issues with hard compiler settings
Mantis Issue 780, reported by rkanavath, assigned to rkanavath, created: 2013-09-27
I am getting some compile errors with a custom CFLAGS
[ 81%] Building C object Utilities/otb6S/CMakeFiles/otb6S.dir/sixs_test__com.c.o
Linking C shared library ../../bin/libotb6S.so
CMakeFiles/otb6S.dir/6SV1.0B/DISCOM.c.o:(.bss+0x0): multiple definition of sixs_polar__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_polar__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/6SV1.0B/AEROSO.c.o:(.bss+0x0): multiple definition of
sixs_coef__'
CMakeFiles/otb6S.dir/6SV1.0B/sixs_coef__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/6SV1.0B/AEROSO.c.o:(.bss+0x75e60): multiple definition of sixs_aerbas__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_aerbas__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/6SV1.0B/sixs_phase__com.c.o:(.bss+0x0): multiple definition of
sixs_phase__'
CMakeFiles/otb6S.dir/6SV1.0B/AEROSO.c.o:(.bss+0xb60): first defined here
CMakeFiles/otb6S.dir/6SV1.0B/sixs_aer__com.c.o:(.bss+0x0): multiple definition of sixs_aer__' CMakeFiles/otb6S.dir/6SV1.0B/AEROSO.c.o:(.bss+0x7a0): first defined here CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x4e50): multiple definition of
multorder_'
CMakeFiles/otb6S.dir/6SV1.0B/multorder_com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x5720): multiple definition of sixs_ier__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_ier__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x19f0): multiple definition of
sixs_del__'
CMakeFiles/otb6S.dir/6SV1.0B/sixs_del__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x0): multiple definition of sixs_disc__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_disc__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x48f8): multiple definition of
sixs_test__'
CMakeFiles/otb6S.dir/6SV1.0B/sixs_test__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x14a0): multiple definition of sixs_atm__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_atm__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x4e60): multiple definition of
mie_in__'
CMakeFiles/otb6S.dir/6SV1.0B/mie_in__com.c.o:(.bss+0x0): first defined here
/usr/bin/ld: Warning: size of symbol mie_in__' changed from 1128 in CMakeFiles/otb6S.dir/6SV1.0B/mie_in__com.c.o to 2240 in CMakeFiles/otb6S.dir/otb_main6S_function.c.o CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x60c0): multiple definition of
num_quad__'
CMakeFiles/otb6S.dir/6SV1.0B/num_quad__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x1a00): multiple definition of sixs_ffu__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_ffu__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x5740): multiple definition of
aeroprof_'
CMakeFiles/otb6S.dir/6SV1.0B/aeroprof_com.c.o:(.bss+0x0): first defined here
/usr/bin/ld: Warning: size of symbol aeroprof_' changed from 1224 in CMakeFiles/otb6S.dir/6SV1.0B/aeroprof_com.c.o to 2432 in CMakeFiles/otb6S.dir/otb_main6S_function.c.o CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x10e0): multiple definition of
sixs_aer__'
CMakeFiles/otb6S.dir/6SV1.0B/AEROSO.c.o:(.bss+0x7a0): first defined here
CMakeFiles/otb6S.dir/otb_main6S_function.c.o:(.bss+0x4900): multiple definition of sixs_planesim__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_planesim__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/aeroprof_com.c.o:(.bss+0x0): multiple definition of
aeroprof_'
CMakeFiles/otb6S.dir/6SV1.0B/aeroprof_com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/multorder_com.c.o:(.bss+0x0): multiple definition of multorder_' CMakeFiles/otb6S.dir/6SV1.0B/multorder_com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/sixs_del__com.c.o:(.bss+0x0): multiple definition of
sixs_del__'
CMakeFiles/otb6S.dir/6SV1.0B/sixs_del__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/sixs_ier__com.c.o:(.bss+0x0): multiple definition of sixs_ier__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_ier__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/num_quad__com.c.o:(.bss+0x0): multiple definition of
num_quad__'
CMakeFiles/otb6S.dir/6SV1.0B/num_quad__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/sixs_aer__com.c.o:(.bss+0x0): multiple definition of sixs_aer__' CMakeFiles/otb6S.dir/6SV1.0B/AEROSO.c.o:(.bss+0x7a0): first defined here CMakeFiles/otb6S.dir/sixs_disc__com.c.o:(.bss+0x0): multiple definition of
sixs_disc__'
CMakeFiles/otb6S.dir/6SV1.0B/sixs_disc__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/sixs_planesim__com.c.o:(.bss+0x0): multiple definition of sixs_planesim__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_planesim__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/mie_in__com.c.o:(.bss+0x0): multiple definition of
mie_in__'
CMakeFiles/otb6S.dir/6SV1.0B/mie_in__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/6SV1.0B/sixs_atm__com.c.o:(.bss+0x0): first defined here
CMakeFiles/otb6S.dir/sixs_ffu__com.c.o:(.bss+0x0): multiple definition of sixs_ffu__' CMakeFiles/otb6S.dir/6SV1.0B/sixs_ffu__com.c.o:(.bss+0x0): first defined here CMakeFiles/otb6S.dir/sixs_test__com.c.o:(.bss+0x0): multiple definition of
sixs_test__'
CMakeFiles/otb6S.dir/6SV1.0B/sixs_test__com.c.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [bin/libotb6S.so.3.18.1] Error 1
1381478189 - rashadkmchanging to proper compiler settings shows ok and errors comes from external lib