FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 11-03-2008, 12:58 PM
Gilboa Davara
 
Default Semi-OT: makedepend isn't aware of /usr/lib/gcc/$ARCH-redhat-linux/4.3.0/include/

Hello all,

I'm not sure if this is a bug or not, so I'm posting here before I open
up a BZ.

Here's a short test program:

$ cat test.c
#include <stdlib.h>
#include <stdio.h>


int main(int argc, char *argv[])
{
printf("Hello world
");
return 0;
}

$ makedepend -f- test.c
# DO NOT DELETE
makedepend: warning: test.c (reading /usr/include/stdlib.h, line 33): cannot find include file "stddef.h"
not in /usr/include/stddef.h
makedepend: warning: test.c (reading /usr/include/sys/types.h, line 147): cannot find include file "stddef.h"
not in /usr/include/stddef.h
makedepend: warning: test.c (reading /usr/include/alloca.h, line 25): cannot find include file "stddef.h"
not in /usr/include/stddef.h
makedepend: warning: test.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h"
not in /usr/include/stddef.h
makedepend: warning: test.c (reading /usr/include/_G_config.h, line 15): cannot find include file "stddef.h"
not in /usr/include/stddef.h
makedepend: warning: test.c (reading /usr/include/wchar.h, line 52): cannot find include file "stddef.h"
not in /usr/include/stddef.h
makedepend: warning: test.c (reading /usr/include/libio.h, line 53): cannot find include file "stdarg.h"
not in /usr/include/stdarg.h

.. But once I add the missing include. (/usr/lib/gcc/xxx)

$ makedepend -f- test.c -I/usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/
# DO NOT DELETE
test.o: /usr/include/stdlib.h /usr/include/features.h
test.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
test.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h
test.o: /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/stddef.h
test.o: /usr/include/sys/types.h /usr/include/bits/types.h
test.o: /usr/include/bits/typesizes.h /usr/include/time.h
test.o: /usr/include/endian.h /usr/include/bits/endian.h
test.o: /usr/include/sys/select.h /usr/include/bits/select.h
test.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
test.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
test.o: /usr/include/alloca.h /usr/include/stdio.h /usr/include/libio.h
test.o: /usr/include/_G_config.h /usr/include/wchar.h
test.o: /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/stdarg.h
test.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h

Shouldn't makedepend be aware of the hardware coded include
path /usr/lib/gcc/$ARCH-redhat-linux/xxx?

- Gilboa

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 05:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org