Bug 21205 - rpcgen chokes on #define lines
Summary: rpcgen chokes on #define lines
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: build (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-28 20:13 UTC by Mike Frysinger
Modified: 2017-03-27 11:09 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2017-02-28 20:13:52 UTC
depending on the build settings, the preprocessor might emit #define lines which causes rpcgen to choke

for example, with gcc-5.4, -ggdb3 will include #define lines:
$ CPP='gcc -ggdb3 -E -x c-header' rpcgen -Y ../scripts/ -h rpcsvc/rex.x -o foo
#define __STDC__ 1

rpcsvc/rex.x, line 1: preprocessor error

this can come up if the user tries to put -ggdb3 into their CFLAGS.