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...
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: gcc3 (Show other bugs)
8.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2002-12-26 18:54:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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:
....
/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/include/i386-redhat-linux/bits/ctype_noninline.h:
In
   static member function `static const short unsigned int*
   std::ctype<char>::classic_table()':
/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/include/i386-redhat-l
inux/bits/ctype_noninline.h:58: `
   __ctype_b' undeclared (first use this function)
....
This error appears because of incompatibility with declaration of '__c_locale'
above.
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:
Always

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:
/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/include/i386-redhat-linux/bits/ctype_noninline.h:
In
   static member function `static const short unsigned int*
   std::ctype<char>::classic_table()':
/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/include/i386-redhat-linux/bits/ctype_noninline.h:58:
`
   __ctype_b' undeclared (first use this function)
....
make[4]: *** [locale.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory
`/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory
`/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory
`/usr/src/redhat/BUILD/gcc-3.2-20020903/obj-i386-redhat-linux'
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
installed.
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.