Bug 73117 - error when compiling rpmdb.c (fnmatch)
error when compiling rpmdb.c (fnmatch)
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2002-08-30 18:00 EDT by DaClink
Modified: 2007-04-18 12:46 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-09-15 08:50:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description DaClink 2002-08-30 18:00:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.0)

Description of problem:
Following error occurs when trying to run make on rpm 4.0.4
having run
>./autogen.sh -noconfigure (completes)
>./configure (completes)
>make (produces following error)

rpmdb.c: In function `miregexec':
rpmdb.c:1654: warning: implicit declaration of function `fnmatch'
make[2]: *** [rpmdb.lo] Error 1
make[2]: Leaving directory `/usr/src/working/rpm-4.0.4/rpmdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/working/rpm-4.0.4'
make: *** [all-recursive-am] Error 2

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Run autogen.sh + Configure
2.Run Make

Actual Results:  Installation stops

Expected Results:  Installation to go OK

Additional info:
Comment 1 Jeff Johnson 2002-08-31 10:05:47 EDT
What platform?

FWIW, there's a fnmatch in the misc directory.
Adding -I$(top_srcdir)/misc to INCLUDES in the Makefile,
and -lmisc to linkage lines will be the fix.
Comment 2 DaClink 2002-08-31 16:49:17 EDT
Platform: It's LFS 3.2 (see www.linuxfromscratch.org) running kernel 2.4.19 
(ext3 filesystem). Running on a single Pentium 3.
Comment 3 Jeff Johnson 2003-09-15 08:50:49 EDT
add fnmatch from the misc directory to build.

Note You need to log in before you can comment on or make changes to this bug.