2012-02-01 13:32:34 |
devzero2000 |
description |
Reported from Michael Baudisch on the rpm5 users mailing list
Hello, I try to compile Rpm535 in a Cygwin environment. In file rpmdir.c ther...
i try to compile Rpm535 in a Cygwin environment. In file rpmdir.c there are many errors in combination with DIR structure. I examined a litte further. In rpmdir. h we include <dirent.h> with includes <sys/dirent.h>. There I find DIR defined as
typedef struct __DIR
{
/* This is first to set alignment in non _COMPILING_NEWLIB case. */
unsigned long __d_cookie;
struct dirent *__d_dirent;
char *__d_dirname; /* directory name with trailing '*' */
long __d_position; /* used by telldir/seekdir */
int __d_fd;
unsigned __d_internal;
void *__handle;
void *__fh;
unsigned __flags;
} DIR;
This leed during compilation to
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../ [long command line]
rpmdir.c: In function 'avClosedir':
rpmdir.c:120: error: 'DIR' has no member named 'lock'
rpmdir.c: In function 'avOpendir':
rpmdir.c:158: error: 'DIR' has no member named 'fd'
rpmdir.c:160: error: 'DIR' has no member named 'data'
rpmdir.c:162: error: 'DIR' has no member named 'allocation'
rpmdir.c:163: error: 'DIR' has no member named 'size'
rpmdir.c:164: error: 'DIR' has no member named 'offset'
rpmdir.c:166: error: 'DIR' has no member named 'filepos'
rpmdir.c:170: error: 'DIR' has no member named 'lock'
[...]
Searching the WWW leads to many totally different headers with various different definitions. Which all do not match the necessarry structure layout. Any ideas how to get rid of the error? |
Reported from Michael Baudisch on the rpm5 users mailing list
Hello, I try to compile Rpm535 in a Cygwin environment. In file rpmdir.c ther...
i try to compile Rpm535 in a Cygwin environment. In file rpmdir.c there are many errors in combination with DIR structure. I examined a litte further. In rpmdir. h we include <dirent.h> with includes <sys/dirent.h>. There I find DIR defined as
typedef struct __DIR
{
/* This is first to set alignment in non _COMPILING_NEWLIB case. */
unsigned long __d_cookie;
struct dirent *__d_dirent;
char *__d_dirname; /* directory name with trailing '*' */
long __d_position; /* used by telldir/seekdir */
int __d_fd;
unsigned __d_internal;
void *__handle;
void *__fh;
unsigned __flags;
} DIR;
This leed during compilation to
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../ [long command line]
rpmdir.c: In function 'avClosedir':
rpmdir.c:120: error: 'DIR' has no member named 'lock'
rpmdir.c: In function 'avOpendir':
rpmdir.c:158: error: 'DIR' has no member named 'fd'
rpmdir.c:160: error: 'DIR' has no member named 'data'
rpmdir.c:162: error: 'DIR' has no member named 'allocation'
rpmdir.c:163: error: 'DIR' has no member named 'size'
rpmdir.c:164: error: 'DIR' has no member named 'offset'
rpmdir.c:166: error: 'DIR' has no member named 'filepos'
rpmdir.c:170: error: 'DIR' has no member named 'lock'
[...]
Searching the WWW leads to many totally different headers with various different definitions. Which all do not match the necessarry structure layout. Any ideas how to get rid of the error? |
|