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
Fixed in CVS.