RPM Community Forums

Mailing List Message of <rpm-users>

Re: RPM 5.1b2 available for testing

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 12 Apr 2008 - 19:36:07 CEST
Message-Id: <9866E235-3D75-404F-BCA5-9BC661143F8D@mac.com>

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
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.