Martin Michlmayr wrote:
Package: dicomnifti
Version: 2.28.10-2
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  There's some more information about this at
http://gcc.gnu.org/gcc-4.3/porting_to.html

You can reproduce this problem with gcc-4.3 or gcc-snapshot from
unstable.

Automatic build of dicomnifti_2.28.10-2 on em64t by sbuild/amd64 0.53
...
[ 40%] Building CXX object CMakeFiles/dicomhead.dir/src/dicomInfo.o
/usr/bin/c++   -Wall -g -O2 -I/build/tbm/dicomnifti-2.28.10/include 
-I/usr/include/ctn -I/usr/include/nifti   
-DARCHITECTURE=LITTLE_ENDIAN_ARCHITECTURE -DLINUX -DOS=LINUX -DHAVE_ZLIB 
-DSHORTSIZE=2*8 -DINTSIZE=4*8 -DLONGSIZE=8*8 -o 
CMakeFiles/dicomhead.dir/src/dicomInfo.o -c 
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc
In file included from /usr/include/ctn/dicom.h:61,
                 from /build/tbm/dicomnifti-2.28.10/include/dicomInfo.h:31,
                 from /build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:24:
/usr/include/ctn/intsizes.h:8:1: warning: "INTSIZE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/include/ctn/intsizes.h:9:1: warning: "LONGSIZE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/include/ctn/intsizes.h:10:1: warning: "SHORTSIZE" redefined
<command-line>: warning: this is the location of the previous definition
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In constructor 
'DICOMImage::DICOMImage(const char*)':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:86: warning: unused variable 
'retValues'
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetManufacturer()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:224: error: 'strcmp' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetPhaseEncoding()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:296: error: 'strcmp' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetACQDescription()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:437: error: 'memset' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:468: error: 'strchr' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetImgOrientation()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:858: error: 'strtok' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetMosaic()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:906: error: 'strstr' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetD3()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:941: error: 'strstr' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetFOV()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1127: warning: suggest explicit 
braces to avoid ambiguous 'else'
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1143: error: 'strtok' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'char* 
DICOMImage::GetShadowSet()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1192: error: 'strncmp' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1203: error: 'memcpy' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1209: error: 'strlen' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1212: error: 'memcpy' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetNumGroups()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1245: error: 'strtok' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1248: error: 'strncmp' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1250: error: 'strstr' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetNumSlices()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1307: error: 'strtok' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1312: error: 'strncmp' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1314: error: 'strstr' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1322: error: 'strncmp' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1324: error: 'strstr' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetPosNorm()':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1411: error: 'strtok' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::GetPosNormSiemens(char*)':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1454: error: 'strtok' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1461: error: 'memset' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1466: error: 'strncmp' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1472: error: 'strstr' was not 
declared in this scope
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1448: warning: unused variable 
'found'
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc: In member function 'bool 
DICOMImage::ReadSlice(U16*, int)':
/build/tbm/dicomnifti-2.28.10/src/dicomInfo.cc:1735: error: 'memcpy' was not 
declared in this scope
make[3]: *** [CMakeFiles/dicomhead.dir/src/dicomInfo.o] Error 1
make[3]: Leaving directory `/build/tbm/dicomnifti-2.28.10/build'
make[2]: *** [CMakeFiles/dicomhead.dir/all] Error 2
make[2]: Leaving directory `/build/tbm/dicomnifti-2.28.10/build'
The file dicominfo.cc explicitly sets "using namespace std", which includes all of the above functions, such as 'stncmp'. Does this mean that in 4.3 you can no longer do that ? Do I have to set "using std:strcmp", etc. ?

--
Valerio Luccio                  (212) 998-8736
Center for Brain Imaging        4 Washington Place, Room 156
New York University             New York, NY 10003

       "In an open world, who needs windows or gates?"




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to