Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 455376

Summary: Building perl without threading fails
Product: Red Hat Enterprise Linux 5 Reporter: Roman Sozinov <sozinov>
Component: perlAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED WONTFIX QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.2   
Target Milestone: rc   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-21 10:16:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
rpm tmp file none

Description Roman Sozinov 2008-07-15 08:39:03 UTC
Description of problem:
Building perl-5.8.8-8 without threading fails with a error:
proto.h:1623: error: ‘void’ must be the only parameter
perl.c:4744: error: ‘void’ must be the only parameter
make: *** [perl.o] Error 1

Version-Release number of selected component (if applicable):
perl-5.8.8-10.el5_2.3

How reproducible:
Easy

Steps to Reproduce:
1. In perl.spec change %define threading 0 
2. rpmbuild -ba perl.spec

  
Actual results:
...
+ make -j2
`sh  cflags "optimize='-O2 -g -march=i386 -mcpu=i686'" miniperlmain.o` -fPIC
miniperlmain.c
`sh  cflags "optimize='-O2 -g -march=i386 -mcpu=i686'" perl.o` -fPIC perl.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -march=i386 -mcpu=i686  -Wall
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -march=i386 -mcpu=i686  -Wall
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from perl.h:3950,
                 from perl.c:82:
proto.h:1623: error: ‘void’ must be the only parameter
perl.c:4744: error: ‘void’ must be the only parameter
make: *** [perl.o] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.16966 (%build)

Additional info:
File rpm-tmp.16966 is attached.
It was similar bug in Fedora https://bugzilla.redhat.com/show_bug.cgi?id=200440

Comment 1 Roman Sozinov 2008-07-15 08:39:03 UTC
Created attachment 311796 [details]
rpm tmp file

Comment 2 Marcela Mašláňová 2008-07-21 10:16:14 UTC
The character of the requested change does not justify modifying an Enterprise
product. 

We are also not supporting this feature in next releases of Fedora.