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

[Condor-users] Problems compiling 7.0.1 on openSUSE 10.2


While 7.0.0 compiled quite well on openSUSE 10.2 (I had to define HZ
manually) compiling 7.0.1 fails when it comes to
telling me that redefining the system function
int utimes(const char*, const timeval*)
(as defined in /usr/include/sys/time.h)
with the "condor-version"
int utimes(char*, timeval*)
is an error (see below).

This replacement ist managed in switches.C by the if-clause

#if defined( SYS_utimes )
extern "C" int REMOTE_CONDOR_utimes( char *  , struct timeval * );
int   utimes ( char *path, struct timeval *times )

I do not see where SYS_utimes is defined (although I tried to find out).
I can easily circumvent this statement/clause but what does this mean to
the resulting condor system? :-)

I would really like to have a "generic" SUSE-version of condor.



 -DREMOTE_SYSCALLS    -I../condor_includes syscall.tmpl | ./stub_gen
-mode switches -p switches.prologue -e switches.epilogue > switches.C
g++ -I.. -I../.. -I../h -I../condor_includes -I../condor_c++_util
-I../condor_daemon_client -DHAVE_CONFIG_H -DI386=I386 -DLINUX=LINUX
-g  -g -Wall -W -Wextra -Wfloat-equal -Wshadow -Wendif-labels
-Wpointer-arith -Wcast-qual -Wcast-align -Wvolatile-register-var
-fstack-protector  -march=i486 -DGLIBC=GLIBC -DGLIBC25=GLIBC25
 -fno-implicit-templates -Wno-deprecated    -DFILE_TABLE
 -DREMOTE_SYSCALLS -DSAVE_SIGSTATE -I../condor_ckpt -fno-exceptions
-DHEADER_DES_LOCL_H -c switches.C -o switches.o
../condor_includes/condor_fix_sys_stat.h:71: warning: ‘int stat(const
char*, stat*)’ hides constructor for ‘struct stat’
switches.C: In function ‘int utimes(char*, timeval*)’:
switches.C:1823: error: declaration of C function ‘int utimes(char*,
timeval*)’ conflicts with
/usr/include/sys/time.h:141: error: previous declaration ‘int
utimes(const char*, const timeval*)’ here

 Dr. Uwe Kahlert           |  Tel.   : +49 241 80 27042
 Inst. f. Theor. Physik A  |  UMS    : +49 241 80 627042
 Sommerfeldstr.            |  Fax.   : +49 241 80 22188
 52074 Aachen              |  e-mail : Kahlert@xxxxxxxxxxxxxxxxxxxxx