Bug 10021 - [makedepend] complains of being unable to find stddef.h, stdarg.h and others
Summary: [makedepend] complains of being unable to find stddef.h, stdarg.h and others
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Build/Monolithic (show other bugs)
Version: 7.2 (2007.02)
Hardware: Other All
: lowest enhancement
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard: 2011BRB_Reviewed
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-18 08:59 UTC by Brice Goglin
Modified: 2018-06-12 19:10 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Brice Goglin 2007-02-18 08:59:02 UTC
Bug reported 2,5 years ago on the Debian BTS by Fred Jean, still applies.

  #include <stdio.h>
  void main(void) {
    printf("Hello World!\n");
  }
and then
  $ makedepends -f- hello.c
makedepend: warning:  prout.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h"
        not in /usr/include/stddef.h
makedepend: warning:  prout.c (reading /usr/include/bits/types.h, line 31): cannot find include file "stddef.h"
        not in /usr/include/stddef.h
makedepend: warning:  prout.c (reading /usr/include/_G_config.h, line 14): cannot find include file "stddef.h"
        not in /usr/include/stddef.h
makedepend: warning:  prout.c (reading /usr/include/wchar.h, line 48): cannot find include file "stddef.h"
        not in /usr/include/stddef.h
makedepend: warning:  prout.c (reading /usr/include/gconv.h, line 31): cannot find include file "stddef.h"
        not in /usr/include/stddef.h
makedepend: warning:  prout.c (reading /usr/include/libio.h, line 53): cannot find include file "stdarg.h"
        not in /usr/include/stdarg.h

It has been claimed in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=257142;msg=35 that it was caused by makedepend hardcoding gcc lib path at compile time, but I can't cofirm this.
Comment 1 Daniel Stone 2007-02-27 01:36:31 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 2 Pauli Sundberg 2010-11-19 02:38:44 UTC
I hit this bug while running Ubuntu 10.10.

Downloaded and built "makedepend-1.0.2" that did not help.

What did help was to add
"#define __UNIXOS2__ 1" to makedepend-config.h 

recompile and install, and before running it exporting enviromental variable with proper include paths, for example:

export C_INCLUDE_PATH="/usr/include/;/usr/lib/gcc/x86_64-linux-gnu/4.1/include/"

The 1.0.2 makedepend without any modifications searched only /usr/include path (+parameter specified).
Comment 3 Jeremy Huddleston Sequoia 2011-10-09 03:11:01 UTC
If you want to submit a patch to add this support, we'll certainly consider it, 
but nobody really cares about makedepend any more since we migrated away from 
that build system...
Comment 4 Adam Jackson 2018-06-12 19:10:53 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.


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.