Bug 475935 - the trable with -O2 and -D_FORTIFY_SOURCE=2 options
the trable with -O2 and -D_FORTIFY_SOURCE=2 options
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: gcc4 (Show other bugs)
10
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-11 01:04 EST by Butyaev Aleksey
Modified: 2008-12-15 04:31 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-12-15 04:31:46 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)

  None (edit)
Description Butyaev Aleksey 2008-12-11 01:04:18 EST
Description of problem:
Do not compile the packet libraw1394-2.0.0 with using gcc-4.3.2 and glibc-2.9-2 . 

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

I am try build this is packet under FC10 x86_64 and i386 platforms.. this problem do not appears under FC7(x86_64, i386) with gcc-4.1.2 and glibc-2.6

How reproducible:

rpmbuild --rebuild libraw1394-2.0.0-4.fc10.src.rpm
under root or another users..

Steps to Reproduce:
1.
2.
3.
  
Actual results:

make[2]: Entering directory `/home/alexsy/redhat/BUILD/libraw1394-2.0.0/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I -O2 -g -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I -O2 -g -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o
In function 'open',
inlined from 'ieee1394_new_handle' at main.c:128:
/usr/include/bits/fcntl2.h:45: error: call to '__open_too_many_args' declared with attribute error: open can be called either with 2 or 3 arguments, not more
In function 'open',
inlined from 'ieee1394_new_handle' at main.c:131:
/usr/include/bits/fcntl2.h:45: error: call to '__open_too_many_args' declared with attribute error: open can be called either with 2 or 3 arguments, not more
In function 'open',
inlined from 'ieee1394_new_handle' at main.c:142:
/usr/include/bits/fcntl2.h:45: error: call to '__open_too_many_args' declared with attribute error: open can be called either with 2 or 3 arguments, not more
make[2]: *** [main.lo] Error 1

Expected results:


Additional info:

if do not use options -O2 or do not use macros -D_FORTIFY_SOURCE=2 the result of building is success..
Comment 1 Jakub Jelinek 2008-12-15 04:31:46 EST
Builds just fine here (x86_64, F10), with and without -O2 -Wp,-D_FORTIFY_SOURCE=2.

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