On Apr 12, 2008, at 1:27 PM, Stefan Westmeier wrote:
> Compiling it under cygwin results in:
>
> ../rpmio/.libs/librpmio.a(rpmrpc.o): In function `Globfree':
> /home/st/SWDevelopment/rpm-5.1b2/rpmio/rpmrpc.c:1765: undefined
> reference to `globfree64'
> /home/st/SWDevelopment/rpm-5.1b2/rpmio/rpmrpc.c:1765: undefined
> reference to `globfree64'
>
You should be using misc/glob.c because rpm depends rather intimately
on a GNU extension that uses these vectors in the glob_t structure:
/* If the GLOB_ALTDIRFUNC flag is set, the following functions
are used instead of the normal file access functions. */
void (*gl_closedir) __PMT ((void *));
struct dirent *(*gl_readdir) __PMT ((void *));
__ptr_t (*gl_opendir) __PMT ((__const char *));
int (*gl_lstat) __PMT ((__const char *, struct stat *));
int (*gl_stat) __PMT ((__const char *, struct stat *));
Guessing from the "64" in globfree64() you have managed to
define _LARGEFILE64_SOURCE, but perhaps are mixing
which glob.h is included, or can see the _LARGEFILE64_SOURCE define.
73 de Jeff
Received on Sat Apr 12 19:36:45 2008