Mail Archives: cygwin/2000/09/28/22:02:59
Hello,
I have searched the archives but didn't find any ports of the
Berkeley DB libraries to cygwin. I'm trying to build some
software which requires the libdb.a library. I have tried to
build BDB myself from the source code and always run into
trouble. So far, I have tried to build version 3.1.17 with no
luck.
As I'm not very good in C/C++, any help would be appreciated.
Got this mistake:
$ make
gcc -c -O -I. -I/src/bdb/db-3.1.17/dist/../include
/src/bdb/db-
3.1.17/dist/../mutex/mut_tas.c
In file included from db_int.h:378,
from /src/bdb/db-
3.1.17/dist/../mutex/mut_tas.c:23:
/src/bdb/db-3.1.17/dist/../include/os.h:18: parse error
before
`HANDLE'
/src/bdb/db-3.1.17/dist/../include/os.h:18: warning: no
semicolon at
end of struct or union
/src/bdb/db-3.1.17/dist/../include/os.h:27: parse error
before `}'
make: *** [mut_tas.o] Error 1
os.h:
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997, 1998, 1999, 2000
* Sleepycat Software. All rights reserved.
*
* $Id: os.h,v 11.4 2000/05/17 01:17:52 dda Exp $
*/
#if defined(__cplusplus)
extern "C" {
#endif
/*
* Filehandle.
*/
struct __fh_t {
#if defined(_WIN32)
HANDLE handle; /* Windows/32 file handle. */
#endif
int fd; /* POSIX file descriptor. */
u_int32_t log_size; /* XXX: Log file size. */
#define DB_FH_NOSYNC 0x01 /* Handle doesn't need to be sync'd. */
#define DB_FH_VALID 0x02 /* Handle is valid. */
u_int8_t flags;
};
/*
* We group certain seek/write calls into a single function so that we
* can use pread(2)/pwrite(2) where they're available.
*/
#define DB_IO_READ 1
#define DB_IO_WRITE 2
typedef struct __io_t {
DB_FH *fhp; /* I/O file handle. */
MUTEX *mutexp; /* Mutex to lock. */
size_t pagesize; /* Page size. */
db_pgno_t pgno; /* Page number. */
u_int8_t *buf; /* Buffer. */
size_t bytes; /* Bytes read/written. */
} DB_IO;
#if defined(__cplusplus)
}
#endif
After commenting out some lines in this file, I got an error
in some other file, which sounds equal, so I tried no more.
I will install autoconf and libtools (recommended I think)
tomorrow and try again, maybe I could do better.
Gerrit
--
Gerrit Peter Haase
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -