Bug 154626 - Requires pcre, pcre-devel >= 3.9-10 to build cleanly
Requires pcre, pcre-devel >= 3.9-10 to build cleanly
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: grep (Show other bugs)
3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-13 00:38 EDT by Sivasankar Chander
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-13 05:17:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Sivasankar Chander 2005-04-13 00:38:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20050209

Description of problem:
Rebuilding grep-2.5.1-31.4 from SRPM fails with pcre-devel-3.9-2 (from RedHat7.3); updating pcre & pcre-devel to 3.9-10 or later gives a clean build. 

This kind of configuration can occur on custom upgrades (on selected RPMs) from RedHat 7.3 to Fedora Core 3. 

The easy fix is to modify the pre-requisites to add pcre-devel >= 3.9-10 to BuildRequires and pcre >= 3.9-10 to Requires in grep.spec (for grep-2.5.1-31.4).

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

How reproducible:
Always

Steps to Reproduce:
1. Install pcre-3.9-2.i386.rpm and pcre-devel-3.9-2.i386.rpm
2. rpmbuild --rebuild grep-2.5.1-31.4.src.rpm
3.
  

Actual Results:  The rebuild failed with miscellaneous errors related to pcre_maketables.

Expected Results:  The build should have succeeded.

Additional info:

The relevant build error messages follow:

...
gcc  -O2 -g -march=i386 -mcpu=i686 -I/usr/include/pcre   -o grep  grep.o dfa.o kwset.o search.o grepmat.o ../lib/libgreputils.a -lpcre  -L/usr/lib -lpcre
/usr/lib/libpcre.a(maketables.o)(.text+0x3e): In function `pcre_maketables':
: undefined reference to `__ctype_tolower'
/usr/lib/libpcre.a(maketables.o)(.text+0x61): In function `pcre_maketables':
: undefined reference to `__ctype_b'
/usr/lib/libpcre.a(maketables.o)(.text+0x7d): In function `pcre_maketables':
: undefined reference to `__ctype_toupper'
/usr/lib/libpcre.a(maketables.o)(.text+0x94): In function `pcre_maketables':
: undefined reference to `__ctype_tolower'
/usr/lib/libpcre.a(maketables.o)(.text+0xc5): In function `pcre_maketables':
: undefined reference to `__ctype_b'
/usr/lib/libpcre.a(maketables.o)(.text+0xfa): In function `pcre_maketables':
: undefined reference to `__ctype_b'
/usr/lib/libpcre.a(maketables.o)(.text+0x128): In function `pcre_maketables':
: undefined reference to `__ctype_b'
/usr/lib/libpcre.a(maketables.o)(.text+0x165): In function `pcre_maketables':
: undefined reference to `__ctype_b'
/usr/lib/libpcre.a(maketables.o)(.text+0x189): In function `pcre_maketables':
: undefined reference to `__ctype_b'
/usr/lib/libpcre.a(maketables.o)(.text+0x1ae): more undefined references to `__ctype_b' follow
collect2: ld returned 1 exit status
Comment 1 Tim Waugh 2005-04-13 05:17:56 EDT
Fixed in CVS.

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