Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 261438

Summary: sci-visualisation/opendx fails to build with _FORTIFY_SOURCE=2
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: frp.bissey, patrick, spock
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259417    
Attachments: Build log
fix for O_CREAT bug in src/exec/libdx/plock.c
upstream patch for both problems

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-03-06 12:07:37 UTC
Check attached build log.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-03-06 12:08:29 UTC
Created attachment 184129 [details]
Build log
Comment 2 Magnus Granberg gentoo-dev 2009-03-11 22:11:45 UTC
Created attachment 184755 [details, diff]
fix for O_CREAT bug in src/exec/libdx/plock.c
Comment 3 Patrick Lauer gentoo-dev 2009-04-03 15:09:50 UTC
With the above patch applied:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -Dlinux -O2 -pipe -fno-strength-reduce -D_GNU_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c -o fileio.o
In function 'open',
    inlined from '_dxffile_open' at fileio.c:266:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[4]: *** [fileio.lo] Error 1


incomplete fix.
Comment 4 François Bissey 2009-04-15 09:35:58 UTC
Created attachment 188407 [details, diff]
upstream patch for both problems

This is the patch I found in the upstream bug database fixing both
issues. The patch originated from redhat.
The part for the Plock problem is quite different.
Comment 5 François Bissey 2009-04-15 09:37:04 UTC
Forgot, here is the link to the upstream bug:
http://www.opendx.org/bugs/view.php?id=246
Comment 6 François Bissey 2009-04-17 10:36:09 UTC
I just posted a opendx-4.4.4-r1 ebuild in the science overlay with
a patch to solve this bug included. There is a number of other patches
included or revised. 
I also switched to EAPI2 to get rid of "built-with-use"
You are welcome to test and report problems.
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2009-10-09 04:08:02 UTC
fix now in main tree. thanks.