Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 154626 - Requires pcre, pcre-devel >= 3.9-10 to build cleanly
Summary: Requires pcre, pcre-devel >= 3.9-10 to build cleanly
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: grep
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-04-13 04:38 UTC by Sivasankar Chander
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-13 09:17:56 UTC


Attachments (Terms of Use)

Description Sivasankar Chander 2005-04-13 04:38:18 UTC
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 09:17:56 UTC
Fixed in CVS.


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