On Sat, Aug 25, 2012 at 6:51 AM, Roland Mainz <[email protected]> wrote: > Attached (as "astopen_o_search_001.diff.txt") is a prototype patch for > ast-open.2012-08-24 to get |O_search| defined (e.g. it's either > pointing to POSIX's |O_SEARCH|, Linux's |O_PATH| or is not defined) > and _used_ ... > ... the bug problem with it is... it works on Solaris+AIX (which both > have |O_SEARCH|) ... but it does not work on Linux unless I compile > ast-open with $ (CC='gcc -D_GNU_SOURCE=1' nice ksh ./bin/package make) > #. The problem is that |O_PATH| is only defined if |_GNU_SOURCE| is > set... and something seems to undefine it somehow in the sources > unless it's set globally for all source files... > > Glenn: Can you have a look, please ?
Attached (as "astksh20130503_use_o_path_as_o_search001.diff.gz") is a fully working version of the patch. Notes: - Please keep the Linux-specific #error ASSERT in src/lib/libast/features/fcntl.c intact... it took some time to figure out that the Linux includes have issues with |_GNU_SOURCE| vs. |_USE_GNU| and I don't want to hunt such "ghost bugs" in that area again ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)
astksh20130503_use_o_path_as_o_search001.diff.gz
Description: GNU Zip compressed data
_______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
