Bug 80263 - 'configure' is called without --enable-clocale option specified while building the package from source rpm
'configure' is called without --enable-clocale option specified while buildin...
Product: Red Hat Linux
Classification: Retired
Component: gcc3 (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2002-12-23 10:59 EST by Andrey
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-26 18:54:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch for gcc32.spec (627 bytes, patch)
2002-12-23 11:01 EST, Andrey
no flags Details | Diff

  None (edit)
Description Andrey 2002-12-23 10:59:30 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Description of problem:
'configure' is invoked without --enable-clocale option specified. By default
clocale is set to 'generic'. Because of this package can't be built from
source-srpm. All 'c++locale.h' (for example
libstdc++-v3/include/i386-redhat-linux/bits) files in build tree are created as
links to libstdc++v3/config/locale/generic/c_locale.h.
'c_locale.h' contains declaration:
namespace std
  typedef int*                  __c_locale;
But due to this declaration I get the following error message:
   static member function `static const short unsigned int*
inux/bits/ctype_noninline.h:58: `
   __ctype_b' undeclared (first use this function)
This error appears because of incompatibility with declaration of '__c_locale'
If I specify option --enable-clocale=gnu for configure then
libstdc++-v3/include/i386-redhat-linux/bits/c++locale.h will point to
libstdc++v3/config/locale/gnu/c_locale.h. This 'c_locale.h' contains another
declaration for __c_locale:
namespace std
  typedef __locale_t            __c_locale;
It allowed me to succesfully build the package.

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

How reproducible:

Steps to Reproduce:
1. rpm -i gcc-3.2-7.src.rpm
2. cd /usr/src/redhat
3. rpmbuild -bb WORK_DIR/SPECS/gcc32.spec

Actual Results:  In file included from ../../../../libstdc++-v3/src/locale.cc:406:
   static member function `static const short unsigned int*
   __ctype_b' undeclared (first use this function)
make[4]: *** [locale.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory
make: *** [bootstrap-lean] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.88985 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.88985 (%build)

Expected Results:  Package must build.

Additional info:
Comment 1 Andrey 2002-12-23 11:01:33 EST
Created attachment 88866 [details]
patch for gcc32.spec

this patch forces configure to be called with option --enable-clocale=gnu
Comment 2 Jakub Jelinek 2002-12-26 18:54:07 EST
clocale gnu is the default actually if all the tests for it succeed.
Some of the configury tests are done using de_DE locale, so you need that
This ishandled by newer gcc rpms in rawhide.

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