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

[Condor-users] Linking problems with condor_compile



Hello,

I am attempting to compile for the standard universe and are getting the
linking problems listed below. I tried already including explicitly the
C++ standard library, based on a mailing list suggestion, but the
results were the same. 

I am running Fedora Core 6, kernel version 2.6.22.9-61.fc6, g++ (GCC)
4.1.2, and condor versions 6.8.5 (condor submit) and 6.7.12 (condor manager and pool machines). 

Would you please help me? I have spent a lot of time already searching
through mailing lists and documentations for an answer without any luck.

Thank you very much in advance,

Andrea
__________________________________________________________________________
/opt/condor-6.8.5/bin/condor_compile g++ BPFGenAlg.o BPFSemantics.o
BPFInstruction.o BPFProgramGenome.o Packet.o Location.o MemoryScratch.o
BPFProgram.o UserData.o Message.o TrafficSample.o Metrics.o CAPReader.o
CAPExtractor.o Flow.o TCPFlow.o PaylFlow.o -ggdb -o BPFGenAlg.condor
-L/usr/local/lib  -lstdc++ -lpcap -lm -lga -lc 
LINKING FOR CONDOR : /usr/bin/ld -L/opt/condor-6.8.5/lib
-L/opt/condor-6.8.5/lib -Bstatic --eh-frame-hdr -m elf_i386
--hash-style=gnu -dynamic-linker /lib/ld-linux.so.2 -o
BPFGenAlg.condor /opt/condor-6.8.5/lib/condor_rt0.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbeginT.o -L/usr/local/lib -L/opt/condor-6.8.5/lib -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. BPFGenAlg.o BPFSemantics.o BPFInstruction.o BPFProgramGenome.o Packet.o Location.o MemoryScratch.o BPFProgram.o UserData.o Message.o TrafficSample.o Metrics.o CAPReader.o CAPExtractor.o Flow.o TCPFlow.o PaylFlow.o /opt/condor-6.8.5/lib/libcondorzsyscall.a /opt/condor-6.8.5/lib/libcondor_z.a /opt/condor-6.8.5/lib/libcomp_libstdc++.a /opt/condor-6.8.5/lib/libcomp_libstdc++.a -lpcap -lga /opt/condor-6.8.5/lib/libcomp_libstdc++.a -lm -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c /opt/condor-6.8.5/lib/libcomp_libgcc.a /opt/condor-6.8.5/lib/libcomp_libgcc_eh.a -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c /opt/condor-6.8.5/lib/libcomp_libgcc.a /opt/condor-6.8.5/lib/libcomp_libgcc_eh.a /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o
/opt/condor-6.8.5/lib/libcondorzsyscall.a(condor_file_agent.o): In
function `CondorFileAgent::open(char const*, int, int)':
(.text+0x250): warning: the use of `tmpnam' is dangerous, better use
`mkstemp'
/opt/condor-6.8.5/lib/libcondorzsyscall.a(switches.o): In function
`__gets_chk':
(.text+0x5fc5): warning: the `gets' function is dangerous and should not
be used.

Message.o: In function `Message::setLength()':
/home/andrea/research/ps/condor/bpfgenalg
/Message.C:110: undefined
reference to `std::basic_istream<char, std::char_traits<char>
>::seekg(long long, std::_Ios_Seekdir)'
/home/andrea/research/ps/condor/bpfgenalg/Message.C:112: undefined
reference to `std::basic_istream<char, std::char_traits<char>
>::seekg(long long, std::_Ios_Seekdir)'
Metrics.o: In function `std::_Base_bitset<1u>::_M_do_count() const':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bitset:422: undefined reference 
to `__popcountsi2'
PaylFlow.o: In function `std::_Rb_tree_iterator<std::pair<int const,
int> >::operator--()':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:197: undefined reference to
`std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
PaylFlow.o: In function `std::_Rb_tree_iterator<std::pair<PaylFlow
const, int> >::operator--()':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:197: undefined reference to
`std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
PaylFlow.o: In function `std::_Rb_tree_iterator<std::pair<int const,
int> >::operator++()':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:182: undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
PaylFlow.o: In function `std::_Rb_tree_iterator<std::pair<int const,
int> >::operator++(int)':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:190: undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
PaylFlow.o: In function `std::_Rb_tree_iterator<std::pair<PaylFlow
const, int> >::operator++()':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:182: undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_no
de_base*)'
PaylFlow.o: In function `std::_Rb_tree_iterator<std::pair<PaylFlow
const, int> >::operator++(int)':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:190: undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
PaylFlow.o: In function `std::_Rb_tree<in
t, std::pair<int const, int>,
std::_Select1st<std::pair<int const, int> >, std::less<int>,
std::allocator<std::pair<int const, int> >
>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::pair<int const, int> const&)':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:821: undefined r
eference to
`std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
PaylFlow.o: In function `std::_Rb_tree<PaylFlow, std::pair<PaylFlow
const, int>, std::_Select1st<std::pair<PaylFlow const, int> >,
std::less<PaylFlow>, std::allocator<std::pair<PaylFlow const, int> >
>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
std::pair<PaylFlow const, int> const&)':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c
++/4.1.2/bits/stl_tree.h:821: undefined reference to
`std::_Rb_tree_insert_and_rebalance(bool,
 std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
collect2: ld returned 1 exit status
make: *** [BPFGenAlg.condor] Error 1