[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Condor 7.2.0 and gcc 4.3.2



Hi Matt,

Matthew Farrellee schrieb:
>>> Then unpack a fresh copy of the source and try again, that should work.
>> You will likely stumble across another issue well into the build, I
>> think there is a problem that starting from gcc 4.3 gcc won't pull in
>> certain header files by default and they need to be added explicietly in
>> the sources. I'm not 1005 sure that this is what stopped us from
>> compiling it for Debian lenny so far but I think that's likely. I can
>> try to dig out more if needed.

Sorry for the long delay, busy schedules...

OK, after the libkrb5 problems I ran into this:

[...]
make[1]: Entering directory
`/condor-7.2.0/externals/build/classads-1.0.1/classads-1.0.1'
make  all-am
make[2]: Entering directory
`/condor-7.2.0/externals/build/classads-1.0.1/classads-1.0.1'
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I.   -DUSE_POSIX_REGEX -DCLASSAD_DISTRIBUTION  -Wall -Wextra
-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Winvalid-pch
-Woverloaded-virtual -Wno-system-headers -g -O2 -MT attrrefs.lo -MD -MP
-MF ".deps/attrrefs.Tpo" -c -o attrrefs.lo attrrefs.cpp; \
        then mv -f ".deps/attrrefs.Tpo" ".deps/attrrefs.Plo"; else rm -f
".deps/attrrefs.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I. -DUSE_POSIX_REGEX
-DCLASSAD_DISTRIBUTION -Wall -Wextra -Wshadow -Wpointer-arith
-Wcast-qual -Wcast-align -Winvalid-pch -Woverloaded-virtual
-Wno-system-headers -g -O2 -MT attrrefs.lo -MD -MP -MF
.deps/attrrefs.Tpo -c attrrefs.cpp -o attrrefs.o
In file included from /usr/include/c++/4.3/ext/hash_map:64,
                 from ./classad/classad_stl.h:33,
                 from classad/classad.h:28,
                 from attrrefs.cpp:22:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from ./classad/exprTree.h:26,
                 from classad/classad.h:29,
                 from attrrefs.cpp:22:
./classad/value.h: In member function 'bool Value::IsStringValue(char*,
int) const':
./classad/value.h:413: error: 'strncpy' was not declared in this scope
attrrefs.cpp: In copy constructor
'AttributeReference::AttributeReference(const AttributeReference&)':
attrrefs.cpp:48: warning: base class 'class ExprTree' should be
explicitly initialized in the copy constructor
attrrefs.cpp: In member function 'virtual bool
AttributeReference::SameAs(const ExprTree*) const':
attrrefs.cpp:113: warning: cast from type 'const AttributeReference*' to
type 'AttributeReference*' casts away constness
attrrefs.cpp: In member function 'virtual bool
AttributeReference::_Evaluate(EvalState&, Value&) const':
attrrefs.cpp:207: warning: deprecated conversion from string constant to
'char*'
attrrefs.cpp:207: warning: deprecated conversion from string constant to
'char*'
attrrefs.cpp: In member function 'virtual bool
AttributeReference::_Evaluate(EvalState&, Value&, ExprTree*&) const':
attrrefs.cpp:267: warning: deprecated conversion from string constant to
'char*'
attrrefs.cpp:267: warning: deprecated conversion from string constant to
'char*'
attrrefs.cpp: In member function 'virtual bool
AttributeReference::_Flatten(EvalState&, Value&, ExprTree*&, int*) const':
attrrefs.cpp:365: warning: deprecated conversion from string constant to
'char*'
attrrefs.cpp:365: warning: deprecated conversion from string constant to
'char*'
make[2]: *** [attrrefs.lo] Error 1
make[2]: Leaving directory
`/condor-7.2.0/externals/build/classads-1.0.1/classads-1.0.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/condor-7.2.0/externals/build/classads-1.0.1/classads-1.0.1'
Build failed
ERROR: build_classads-1.0.1 returned: 1
ERROR: unable to build classads-1.0.1
ERROR: aborting
make: *** [/condor-7.2.0/externals/triggers/classads-1.0.1] Error 1


for me it seems that ./classad/value.h:413 needs to include additional
header files, i.e. string.h...

Cheers

Carsten