Summary: | sci-visualisation/opendx fails to build with _FORTIFY_SOURCE=2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | 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)
![]() Created attachment 184129 [details]
Build log
Created attachment 184755 [details, diff]
fix for O_CREAT bug in src/exec/libdx/plock.c
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. 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.
Forgot, here is the link to the upstream bug: http://www.opendx.org/bugs/view.php?id=246 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. fix now in main tree. thanks. |