Hi, all,
I am trying to link my program with the condor library, condor library
is used for process checkpointing. It works fine in the past 12 months.
The current problem is we just added a new feature which invokes
dlopen/dlsym/dlerror/dlclose functions and we have problem to link with
the condor library. We got the following error msg:
LINKING FOR CONDOR : /usr/bin/ld -L/home/users/lni/condor/lib -Bstatic
--eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o speaker
/home/users/lni/condor/lib/condor_rt0.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../crti.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/crtbeginT.o
-L/home/p2p/members/lni/lib/MPICH-OPeN//lib -L/home/users/lni/condor/lib
-L/usr/lib/gcc/i386-redhat-linux/3.4.3
-L/usr/lib/gcc/i386-redhat-linux/3.4.3
-L/usr/lib/gcc/i386-redhat-linux/3.4.3/../../.. speaker.o stub.o -ldl
-lmpich /home/users/lni/condor/lib/libcondorzsyscall.a
/home/users/lni/condor/lib/libcondor_z.a
/home/users/lni/condor/lib/libcomp_libstdc++.a
/home/users/lni/condor/lib/libcomp_libgcc.a
/home/users/lni/condor/lib/libcomp_libgcc_eh.a --as-needed
--no-as-needed -lcondor_c -lcondor_nss_files -lcondor_nss_dns
-lcondor_resolv -lcondor_c -lcondor_nss_files -lcondor_nss_dns
-lcondor_resolv -lcondor_c /home/users/lni/condor/lib/libcomp_libgcc.a
/home/users/lni/condor/lib/libcomp_libgcc_eh.a --as-needed
--no-as-needed /usr/lib/gcc/i386-redhat-linux/3.4.3/crtend.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../crtn.o
stub.o(.text+0xa9): In function `glibc_original_puts':
: warning: Using 'dlopen' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/home/users/lni/condor/lib/libcondorzsyscall.a(condor_file_agent.o)(.text+0x250):
In function `CondorFileAgent::open(char const*, int, int)':
/home/condor/execute/dir_30581/userdir/src/condor_ckpt/condor_file_agent.C:99:
warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libdl.a(dlopen.o)(.text+0x10):
In function `dlopen':
: undefined reference to `__dlopen'
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libdl.a(dlclose.o)(.text+0x5):
In function `dlclose':
: undefined reference to `__dlclose'
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libdl.a(dlsym.o)(.text+0xd):
In function `dlsym':
: undefined reference to `__dlsym'
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libdl.a(dlerror.o)(.text+0x5):
In function `dlerror':
: undefined reference to `__dlerror'
collect2: ld returned 1 exit status
make: *** [speaker] Error 1
I will be very appreciate for any suggestion/help on the above problem.
Thanks!
Cheers,
Lei Ni
_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users