[Box Backup] Cygwin build
Paul Arch
boxbackup@fluffy.co.uk
Fri, 16 Apr 2004 12:31:56 +0800
> I seem to be having this problem (which relates to LinuxWorkaround
somehow
> ? )
> RaidFileRead.cpp: In static member function `static bool
> RaidFileRead::ReadDirectoryContents(int, const std::string&, int,
> std::vector<std::string, std::allocator<std::string> >&)':
> RaidFileRead.cpp:1597: error: 'struct dirent' has no member named 'd_type'
> RaidFileRead.cpp:1597: error: `DT_REG' undeclared (first use this
function)
> RaidFileRead.cpp:1597: error: (Each undeclared identifier is reported only
> once
>
> for each function it appears in.)
> RaidFileRead.cpp:1625: error: 'struct dirent' has no member named 'd_type'
> RaidFileRead.cpp:1625: error: `DT_DIR' undeclared (first use this
function)
> make[1]: *** [../../debug/lib/raidfile/RaidFileRead.o] Error 1
> make[1]: Leaving directory `/boxbackup-0.05/lib/raidfile'
> make: *** [dep_modules] Error 2
>
>
> Urgh ! Something to do with Cygwin and it determining difference between
DIR
> and FILEs.
> Anyway, I added a definition for "d_type" ( ** WARNING - I DONT KNOW WHAT
I
> AM DOING ;) )for my dirent structure in /usr/include/sys/dirent.h, since
it
> didnt seem to exist, and LinuxWorkaround_FinishDirentStruct was attempting
> to set it. I do believe this is correct, I have read elsewhere you need
to
> use 'stat' within cygwin for DIR/FILE type.
> struct dirent
> {
> long d_version;
> ino_t d_ino;
> long d_fd;
> unsigned long __ino32;
> char d_name[256];
> int d_type;
> };
>
OK, this is getting me stuck. I am doing well, I have setup a server on a
linux box, and run commands like 'bbackupd' and 'bbackupctl' from within
cygwin, and it 'seems' to be talking. But I think I need to resolve the
above issue before I can proceed, since I am getting from the server:
Apr 16 12:55:49 sdmgbackup bbstored[4280]: Certificate CN: BACKUP-2
Apr 16 12:55:49 sdmgbackup bbstored[4280]: Receive Version(0x1)
Apr 16 12:55:49 sdmgbackup bbstored[4280]: Send Version(0x1)
Apr 16 12:55:49 sdmgbackup bbstored[4280]: Receive Login(0x2,0x1)
Apr 16 12:55:49 sdmgbackup bbstored[4280]: Login: Client ID 00000002,
Read-only
Apr 16 12:55:49 sdmgbackup bbstored[4280]: Send
LoginConfirmed(0x0,0x2,0x7d000,0xbb800)
Apr 16 12:55:51 sdmgbackup bbstored[4280]: Receive
ListDirectory(0x100000000000000,0xffffffff,0xc,true)
Apr 16 12:55:51 sdmgbackup bbstored[4280]: in server child, exception
RaidFile RaidFileDoesntExist (2/11) -- terminating child
I can only guess that this is where my problem is at. I will have a look
closer, but I am in over my head ;)
cheers
Paul