When PIDL calls out to C preprocessor to expand IDL files and parse the output, it filters out linemarkers and line control information as described in http://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html and http://gcc.gnu.org/onlinedocs/cpp/Line-Control.html#Line-Control With gcc 4.8 stdc-predef.h is included automatically and linemarker for the file has extended flags that PIDL can't parse ('system header that needs to be extern "C" protected for C++'). The following patch fixes the problem.
Created attachment 8533 [details] v4-0-test patch
Comment on attachment 8533 [details] v4-0-test patch Works on Fedora Rawhide and F18.
Karolin, please add the patch to v4-0-test.
Pushed to autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks!
This problem is also present in Samba 3.6 PIDL. @Karolin, please merge the same patch to the 3.6 branch.
Created attachment 9020 [details] Patch with cherry-pick information for v3-6-test Patch with cherry-pick information for v3-6-test
(In reply to comment #6) > This problem is also present in Samba 3.6 PIDL. > @Karolin, please merge the same patch to the 3.6 branch. The patch applies cleanly, but I need 2 review flags to be able to push it to v3-6-test. Thanks!
Comment on attachment 9020 [details] Patch with cherry-pick information for v3-6-test Ok for me.
Karolin, please add the patch to v3-6-test.
Pushed to v3-6-test. Closing out bug report. Thanks!