Alexander Pyhalov via illumos-discuss писал 26.11.2014 11:52:
Hello.
Once again I'm thinking about cpp blob in OI and look at Joyent /
OmniOS cpp versions. The only difference between them is that Joyent
removed some unused code in cpp.c. Last time I asked about them Rich
Lowe mentioned some patches which he sent to Joshua M. Clulow. These
patches presumable make cpp behavior more comparable to Sun (OI) cpp.
Are these patches available somewhere? Has someone tested them?
Hello.
I've tried to compile and test Joyent cpp with Richard Lowe's fixes -
https://github.com/richlowe/illumos-extra/tree/cpp/compat/cpp
I've run test.sh (comparing output of Sun cpp and Joyent cpp on all
include files) and found a lot of differences.
For example, for yaz includes
(http://buildzone.oi-build.r61.net/cpp/yaz.includes.tar).
It seems, Joyent cpp can't parse them. If I run it on yaz-util.h, I
receive
/usr/include/sys/isa_defs.h: 372: undefined control
/usr/include/sys/isa_defs.h: 469: undefined control
/usr/include/sys/isa_defs.h: 476: undefined control
/usr/include/sys/isa_defs.h: 480: undefined control
/usr/include/sys/isa_defs.h: 372: undefined control
/usr/include/sys/isa_defs.h: 469: undefined control
/usr/include/sys/isa_defs.h: 476: undefined control
/usr/include/sys/isa_defs.h: 480: undefined control
/usr/include/sys/isa_defs.h: 372: undefined control
/usr/include/sys/isa_defs.h: 469: undefined control
/usr/include/sys/isa_defs.h: 476: undefined control
/usr/include/sys/isa_defs.h: 480: undefined control
/usr/include/sys/feature_tests.h: 218: undefined control
/usr/include/sys/feature_tests.h: 225: undefined control
/usr/include/sys/feature_tests.h: 371: undefined control
/usr/include/sys/feature_tests.h: 387: undefined control
/usr/include/sys/feature_tests.h: 391: undefined control
/usr/include/sys/feature_tests.h: 218: undefined control
/usr/include/sys/feature_tests.h: 225: undefined control
/usr/include/sys/feature_tests.h: 371: undefined control
/usr/include/sys/feature_tests.h: 387: undefined control
/usr/include/sys/feature_tests.h: 391: undefined control
/usr/include/sys/isa_defs.h: 372: undefined control
/usr/include/sys/isa_defs.h: 469: undefined control
/usr/include/sys/isa_defs.h: 476: undefined control
/usr/include/sys/isa_defs.h: 480: undefined control
/usr/include/sys/va_list.h: 99: undefined control
/usr/include/sys/isa_defs.h: 372: undefined control
/usr/include/sys/isa_defs.h: 469: undefined control
/usr/include/sys/isa_defs.h: 476: undefined control
/usr/include/sys/isa_defs.h: 480: undefined control
/usr/include/yaz/wrbuf.h: 36: xmalloc: argument mismatch
/usr/include/sys/feature_tests.h: 218: undefined control
/usr/include/sys/feature_tests.h: 225: undefined control
/usr/include/sys/feature_tests.h: 371: undefined control
/usr/include/sys/feature_tests.h: 387: undefined control
/usr/include/sys/feature_tests.h: 391: undefined control
/usr/include/yaz/odr.h: 338: xmalloc: argument mismatch
/usr/include/yaz/yaz-util.h: 155: If-less endif
(note the last line)
Sun cpp emits only one warning:
"/usr/include/sys/isa_defs.h", line 476: undefined control
And diff is essential: http://buildzone.oi-build.r61.net/cpp/yaz.diff,
several structures are not defined...
---
System Administrator of Southern Federal University Computer Center
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com