>> Local Products Rules ..... started
>> Local Products Rules ..... done
>> Building CMSSW version CMSSW_3_5_X_2010-03-08-0200 ----
>> Entering Package PhysicsTools/PatExamples
>> Compiling /home/nasera/cms/CMSSW_3_5_X_2010-03-08-0200/src/PhysicsTools/PatExamples/bin/PatMcMatchFWLiteAnalyzer.cc
In file included from /usr/include/stdio.h:907,
from /afs/cern.ch/cms/sw/slc5_amd64_gcc434/external/gcc/4.3.4/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.4/../../../../include/c++/4.3.4/cstdio:50,
from /afs/cern.ch/cms/sw/slc5_amd64_gcc434/external/gcc/4.3.4/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.4/../../../../include/c++/4.3.4/bits/char_traits.h:48,
from /afs/cern.ch/cms/sw/slc5_amd64_gcc434/external/gcc/4.3.4/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.4/../../../../include/c++/4.3.4/string:47,
from /home/nasera/cms/CMSSW_3_5_X_2010-03-08-0200/src/PhysicsTools/PatExamples/bin/PatMcMatchFWLiteAnalyzer.cc:2:
/usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)':
/usr/include/bits/stdio.h:118: error: '__getdelim' was not declared in this scope
gmake: *** [tmp/slc5_amd64_gcc434/src/PhysicsTools/PatExamples/bin/PatMcMatchFWLiteAnalyzer/PatMcMatchFWLiteAnalyzer.o] Error 1
This is a bug about confusing between GCC 4.3 and GCC 4.4.
So, I fixed the problem using temporary solution.
Edit the
stdio.h
#ifdef __USE_GNU
/* This function does the same as `fgets' but does not lock the stream.
This function is not part of POSIX and therefore no official
cancellation point. But due to similarity with an POSIX interface
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
extern char *fgets_unlocked (char *__restrict __s, int __n,
FILE *__restrict __stream) __wur;
#endif
-->
#ifdef __USE_GNU
/* This function does the same as `fgets' but does not lock the stream.
This function is not part of POSIX and therefore no official
cancellation point. But due to similarity with an POSIX interface
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
extern char *fgets_unlocked (char *__restrict __s, int __n,
FILE *__restrict __stream) __wur;
extern _IO_ssize_t __getdelim (char **__restrict __lineptr,
size_t *__restrict __n, int __delimiter,
FILE *__restrict __stream) __wur;
#endif
It is a
temporary fixed. so, We need to patch the CMSSW gcc version.
--
GunmoRyu - 08 Mar 2010