Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261438 - sci-visualisation/opendx fails to build with _FORTIFY_SOURCE=2
Summary: sci-visualisation/opendx fails to build with _FORTIFY_SOURCE=2
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
Depends on:
Blocks: fortify-source
  Show dependency tree
Reported: 2009-03-06 12:07 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-10-09 04:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Build log (opendx-4.4.4:20090306-112347.log,56.32 KB, text/plain)
2009-03-06 12:08 UTC, Diego Elio Pettenò (RETIRED)
fix for O_CREAT bug in src/exec/libdx/plock.c (opendx_open_mode.patch,670 bytes, patch)
2009-03-11 22:11 UTC, Magnus Granberg
Details | Diff
upstream patch for both problems (dx-open.patch,1.63 KB, patch)
2009-04-15 09:35 UTC, François Bissey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:
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.