rdiff-backup-users
[Top][All Lists]
Advanced

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

[rdiff-backup-users] windows compiling cmodule.c


From: David Kempe
Subject: [rdiff-backup-users] windows compiling cmodule.c
Date: Tue, 30 Dec 2003 15:45:39 +1100

Hi,
I am trying to compile 0.13.3 on wndows using mingw32 instead of cygwin.
I can get pretty far, but get stuck at the point where gcc complains about
the cmodule.c file.
here is the output:

building 'rdiff_backup.C' extension
c:\work\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\work\python23\incl
ude
-Ic:\work\python23\PC -c cmodule.c -o build\temp.win32-2.3\Release\cmodule.o
cmodule.c: In function `c_make_file_dict':
cmodule.c:93: warning: implicit declaration of function `lstat'
cmodule.c:129: warning: implicit declaration of function `S_ISSOCK'
cmodule.c:133: parse error before "S_ISSOCK"
cmodule.c:133: parse error before "strcpy"
cmodule.c:147: parse error before "S_ISLNK"
cmodule.c:147: warning: implicit declaration of function `S_ISLNK'
cmodule.c:147: parse error before '{' token
cmodule.c:150: warning: implicit declaration of function `readlink'
cmodule.c:150: `linkname' undeclared (first use in this function)
cmodule.c:150: (Each undeclared identifier is reported only once
cmodule.c:150: for each function it appears in.)
cmodule.c: At top level:
cmodule.c:167: parse error before "else"
cmodule.c:174: `sbuf' undeclared here (not in a function)
cmodule.c:175: initializer element is not constant
cmodule.c:177: initializer element is not constant
cmodule.c:178: parse error before "if"
cmodule.c:180: warning: type defaults to `int' in declaration of
`return_val'
cmodule.c:182: `size' undeclared here (not in a function)
cmodule.c:183: `perms' undeclared here (not in a function)
cmodule.c:184: `sbuf' undeclared here (not in a function)
cmodule.c:185: `sbuf' undeclared here (not in a function)
cmodule.c:186: `inode' undeclared here (not in a function)
cmodule.c:187: `devloc' undeclared here (not in a function)
cmodule.c:188: `sbuf' undeclared here (not in a function)
cmodule.c:189: `devtype' undeclared here (not in a function)
cmodule.c:190: warning: initialization makes integer from pointer without a
cast

cmodule.c:190: initializer element is not constant
cmodule.c:190: warning: data definition has no type or storage class
cmodule.c:191: parse error before "if"
cmodule.c:195: warning: type defaults to `int' in declaration of
`return_val'
cmodule.c:195: redefinition of `return_val'
cmodule.c:180: `return_val' previously defined here
cmodule.c:195: warning: initialization makes integer from pointer without a
cast

cmodule.c:195: warning: data definition has no type or storage class
cmodule.c:196: parse error before '}' token
cmodule.c: In function `my_sync':
cmodule.c:228: warning: implicit declaration of function `sync'
error: command 'gcc' failed with exit status 1


does anyone know how to get around these problems?
can I use a cmodule.c file that was created with cygwin instead?  - I don't
think so but I have one from 0.12.5

thanks

dave





reply via email to

[Prev in Thread] Current Thread [Next in Thread]