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

Re: [Condor-users] condor_compile problem

OK, I'll answer my own question. I can fix the problem by passing the the extra arguments "-Xlinker -zmuldefs ". Hence, the following works:

% condor_compile gcc -o simple-guile simple-guile.c -Xlinker -zmuldefs  -lguile -lgmp -lcrypt -lltdl -ldl -lm

Have a great weekend,

On 21 May 2010, at 17:39, Mark Calleja wrote:


I'm trying to link a standard universe version of the "simple" GNU Guile example given at:


On my x86_64 Debian Lenny box (with corresponding version of dynamically linked Condor 7.4.2 distro installed) I issue:

% condor_compile gcc -o simple-guile simple-guile.c -lguile -lgmp -lcrypt -lltdl -ldl -lm

and apart from several warnings, the build fails with the error:

/Condor/x86_64/condor/lib/libcondor_c.a(truncate.o): In function `truncate64':
(.text+0x0): multiple definition of `truncate'
/Condor/x86_64/condor/lib/libcondorsyscall.a(switches.o):/home/condor/execute/dir_18056/userdir/src/condor_syscall_lib/switches.cpp:1691: first defined here

There appears to be a conflict between two of Condor's libraries, unless I'm misinterpreting the error being reported. Either way, can anyone indicate what I'm doing wrong, and ideally suggest a solution?

Note that all system libraries being linked in have been installed via the Debian repository (i.e. they're not customised libraries that I've built).


The Cavendish Laboratory, University of Cambridge,
J J Thomson Avenue, Cambridge, CB3 0HE, UK
Tel. (+44/0) 1223 746627