[bug #18963] -include suppressing errors for too long?

2007-04-21 Thread Tobias Blomberg

Follow-up Comment #4, bug #18963 (project make):

Is this really the way it is supposed to work. It didn't work like that in
previous releases of make. To exemplify, I want a makefile with automatic
dependencies. If I write it like this:

--- Makefile ---
all:hello

include hello.d

%.d:%.c
$(CC) -M -MG -MT $*.o $@ -MF $@ $
--

--- hello.c ---
#include stdio.h

int main()
{
  printf(Hello\n);
}
--

I will get the following output if hello.d does not exist.

Makefile:6: hello.d: No such file or directory
cc -M -MG -MT hello.o hello.d -MF hello.d hello.c
cc-c -o hello.o hello.c
cc   hello.o   -o hello

I want to get rid of the error message (because it isn't an error) so I put a
- infront of the include directive in the makefile. Everything looks fine
until I try to include a file that does not exist (e.g. hello.h) in hello.c.
Then I will get the following output:

cc -M -MG -MT hello.o hello.d -MF hello.d hello.c

The compilation just stops with no error message. The exit code is 2 if one
checks it. What I expect is a row like:

make: *** No rule to make target `hello.h', needed by `hello.d'.  Stop.

This was the way it worked in earlier releases of make. Maybe there is
another way around this but I cannot find it.

Regards,
Tobias


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18963

___
  Message sent via/by Savannah
  http://savannah.gnu.org/



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make


[bug #19656] strcmpi does not exist on my system, better use strcasecmp instead

2007-04-21 Thread Paul D. Smith

Follow-up Comment #1, bug #19656 (project make):

Can you please provide the error messages you received?  As far as I know GNU
make sources don't use strcmpi() except when compiling for non-POSIX systems.

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?19656

___
  Message sent via/by Savannah
  http://savannah.gnu.org/



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make


[bug #19656] strcmpi does not exist on my system, better use strcasecmp instead

2007-04-21 Thread Colin Finck

Follow-up Comment #2, bug #19656 (project make):

Yes, you're right, the problem does not occur if I only run the configure
script without any parameters.

But when I add the parameter --enable-case-insensitive-file-system, it does
not build.
Here is the error message:


gcc -DLOCALEDIR=\/usr/local/share/locale\ -DLIBDIR=\/usr/local/lib\
-DINCLUDEDIR=\/usr/local/include\ -DHAVE_CONFIG_H -I. -Wall -Wextra
-Wdeclaration-after-statement -Wshadow -Wpointer-arith -Wbad-function-cast -g
-O2 -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.c
mv -f .deps/hash.Tpo .deps/hash.Po
gcc -Wall -Wextra -Wdeclaration-after-statement -Wshadow -Wpointer-arith
-Wbad-function-cast -g -O2   -o make ar.o arscan.o commands.o default.o dir.o
expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o
read.o remake.o remote-stub.o rule.o signame.o strcache.o variable.o
version.o vpath.o hash.o   -lrt 
dir.o: In function `dir_contents_file_exists_p':
/home/colin/Desktop/Downloads/make-cvs/make/dir.c:712: undefined reference to
`strcmpi'
dir.o: In function `dirfile_hash_cmp':
/home/colin/Desktop/Downloads/make-cvs/make/dir.c:404: undefined reference to
`strcmpi'
dir.o: In function `directory_hash_cmp':
/home/colin/Desktop/Downloads/make-cvs/make/dir.c:361: undefined reference to
`strcmpi'
file.o: In function `file_hash_cmp':
/home/colin/Desktop/Downloads/make-cvs/make/file.c:58: undefined reference to
`strcmpi'
strcache.o: In function `str_hash_cmp':
/home/colin/Desktop/Downloads/make-cvs/make/strcache.c:118: undefined
reference to `strcmpi'


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?19656

___
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make