Bug 29108 - the same compiler options should be used for generating and compiling sdksyms.c
Summary: the same compiler options should be used for generating and compiling sdksyms.c
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-16 05:20 UTC by Michael Olbrich
Modified: 2018-06-12 18:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Michael Olbrich 2010-07-16 05:20:00 UTC
for generating hw/xfree86/loader/sdksyms.c the following command line is used:
CPP='$(CPP)' AWK='$(AWK)' $(srcdir)/sdksyms.sh $(top_srcdir) $(AM_CFLAGS) $(CFLAGS) $(INCLUDES)

however when sdksyms.c is combiled $(CPPFLAGS) are added as well.
I am cross-compiling and use CPPFLAGS="-isystem <mysysroot>/usr/include -isystem <mysysroot>/include"

"-I<mysysroot>/usr/include" is also added via pkg-config results. Without the CPPFLAGS the search order is messed up and <mysysroot>/usr/include/os.h" is used instead of <xorg-server>/include/os.h
as a result I get
sdksyms.c:1072: error: 'limitDataSpace' undeclared here (not in a function)
sdksyms.c:1073: error: 'limitStackSpace' undeclared here (not in a function)
sdksyms.c:1074: error: 'limitNoFile' undeclared here (not in a function)
make[5]: *** [sdksyms.lo] Error 1

I'm not sure what the correct commandline to generate sdksyms.c is but CPPFLAGS should be added.
Comment 1 Adam Jackson 2018-06-12 18:43:55 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.