Red Hat Bugzilla – Bug 123042
glibc-2.3.3-24 doesn't compile
Last modified: 2007-11-30 17:10:42 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4.2)
Description of problem:
Somewhere between glibc-2.3.3-18 & glibc-2.3.3-24 a change occurred
that causes glibc not to successfully compile anymore. I get these errors:
../sysdeps/unix/sysv/linux/llseek.c:46: warning: `used' attribute ignored
gconv_stubs.c:83: conflicting types for `__gconv_close_transform'
../iconv/gconv_int.h:232: previous declaration of
gconv_stubs.c:85: conflicting types for `__gconv_close'
../iconv/gconv_int.h:172: previous declaration of `__gconv_close'
This is only 2, there are many.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpmbuild -bb /usr/src/redhat/SPEC/glibc.spec
Actual Results: make: ***
make: *** [c_stubs/others] Error 2
make: *** [all] Error 2
error: Bad exit status from /home/build/working/tmp/rpm-tmp.31687 (%build)
Bad exit status from /home/build/working/tmp/rpm-tmp.31687 (%build)
Expected Results: A message indicating that it wrote the rpm.
I will attach a patch that fixes the problem.
Created attachment 100159 [details]
A patch that fixes the problem
Works just fine for me. What GCC are you using?
I am using gcc-3.2.2-5.
The problem is that gconv_stubs.c is including an internal header,
gconv_int.h, that has prototypes that are different than the stubs.
All that the stubs file needs is gconv.h in order to declare a couple
of structures. glibc-2.3.3-18 compiles fine.
This will show up in glibc-2.3.3-31.