Hi David,
The above problem was solved when I export these two as variables separately:
CPPFLAGS & LDFLAGS
but after a lots of warnings I the installation terminated.
Checking for C++ library NumericalRecipes... no
Checking for C++ library cppunit... no
Not building #/bin/x86_64/optimizer.x86_64-standard because library NumericalRecipes is missing.
Not building #/bin/x86_64/unitTests.x86_64-standard because library cppunit is missing.
scons: done reading SConscript files.
scons: Building targets ...
scons: `options.bash' is up to date.
scons: `options.zsh' is up to date.
scons: `queueSettings.bash' is up to date.
scons: `queueSettings.zsh' is up to date.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/Translation/RandLMInterface.hh:4,
from src/Translation/LMInterface.cc:5:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMPreproc.h:25,
from src/RandLM/RandLMPreproc.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMStats.h:22,
from src/RandLM/RandLMStats.cpp:18:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMPreproc.h:25,
from src/RandLM/RandLMStruct.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMStats.h:22,
from src/RandLM/RandLMQuantiser.cpp:23:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMPreproc.h:25,
from src/RandLM/LogFreqBloomFilter.h:23,
from src/RandLM/LogFreqBloomFilter.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMPreproc.h:25,
from src/RandLM/LogFreqBloomFilter.h:23,
from src/RandLM/LogFreqSketch.h:21,
from src/RandLM/LogFreqSketch.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMPreproc.h:25,
from src/RandLM/LogFreqBloomFilter.h:23,
from src/RandLM/BloomMap.h:21,
from src/RandLM/BloomMap.cpp:19:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/BloomierFilter.h:20,
from src/RandLM/BloomierFilter.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLM.cpp:19:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMPreproc.h:25,
from src/RandLM/RandLMParams.cpp:19:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLM.h:25,
from src/RandLM/RandLMPreproc.h:25,
from src/RandLM/RandLMPipeline.h:20,
from src/RandLM/RandLMPipeline.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28: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 /usr/include/c++/4.5/ext/hash_map:60:0,
from src/RandLM/RandLMHashCache.h:18,
from src/RandLM/RandLMHashCache.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28: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.
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `Translation::SriLMInterface::lmLookAheadScore(unsigned int&)':
SriLMInterface.cc:(.text+0x5f): undefined reference to `SArray<unsigned int, float>::find(unsigned int, bool&) const'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `Translation::SriLMInterface::prepareLMLookAhead(unsigned int*)':
SriLMInterface.cc:(.text+0x11a): undefined reference to `SArray<unsigned int, Trie<unsigned int, BOnode> >::find(unsigned int, bool&) const'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `LM::pplFloatCountsFile(File&, unsigned int, TextStats&, char const*, bool)':
SriLMInterface.cc:(.text._ZN2LM18pplFloatCountsFileER4FilejR9TextStatsPKcb[LM::pplFloatCountsFile(File&, unsigned int, TextStats&, char const*, bool)]+0x11): undefined reference to `double LM::pplCountsFile<double>(File&, unsigned int, TextStats&, char const*, bool, NgramCounts<double>*)'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `LM::pplCountsFile(File&, unsigned int, TextStats&, char const*, bool)':
SriLMInterface.cc:(.text._ZN2LM13pplCountsFileER4FilejR9TextStatsPKcb[LM::pplCountsFile(File&, unsigned int, TextStats&, char const*, bool)]+0x11): undefined reference to `unsigned long LM::pplCountsFile<unsigned long>(File&, unsigned int, TextStats&, char const*, bool, NgramCounts<unsigned long>*)'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o):(.rodata._ZTVN11Translation13NgramExtendedE[vtable for Translation::NgramExtended]+0x170): undefined reference to `Ngram::pruneProbs(double, unsigned int, LM*)'
collect2: ld returned 1 exit status
scons: *** [bin/jane.x86_64-standard] Error 1
scons: building terminated because of errors.
On Thu, Feb 2, 2012 at 12:18 PM, somayeh bakhshaei
<s.bak...@gmail.com> wrote:
Thank you David,
I change my script as you said but the error changed to:
CPPFLAGS="-I /Share/HLT-14/bakhshaei/ITRC/jane/jane2/include/" LDFLAGS="-L /Share/HLT-14/bakhshaei/ITRC/jane/jane2/lib/" CXX=gcc-4.5.1 scons -j3