From: Martin C. <cos...@wa...> - 2010-08-12 09:43:06
|
Abe, Sumiko wrote: > Hi Martin, > > Thank you so much for your great information. I run the grep command and it show same result with yours. > > sh-3.2# > sh-3.2# grep "ASCPPPOST " /sw/src/fink.build/gzip-1.4-2/gzip-1.4/lib/Makefile > ASCPPPOST = sed '/^ *#/d; s,//.*,,; s/% /%/g; s/\. /./g' So your sed is OK, and I suppose even your make is OK, and this is simply bad makefile syntax. Make apparently considers # as comment character, even inside quotes, and interprets the above line as equivalent to ASCPPPOST = sed '/^ * So this is a real bug in the gzip build system. They should have escaped the # character. Indeed, writing \# instead of # in lib/Makefile makes the bug go away. But the bug usually does not show up, see below. > sh-3.2# > > Also, Please take a look at the attached config.log file of gzip package. The main difference appears to be that you get configure:22627: checking for an assembler syntax supported by this package configure:22657: result: yes whereas I have result: no. This accounts for the fact that later on your build process tries to handle this "match" stuff where it fails. It looks like this part really is buggy, but the bug has never been encountered, because everyone else has "no" at the above test. Staring at the configure script for a while, I get the following strong suspicion: You have a file named "config.h" in either /sw/include/ or /usr/local/include/ . If you remove this, you will get the same result (no) for the assembler syntax test as me and everyone else, and the build will proceed. This is a situation where one bug (#include <config.h> in lib/match.c) masks another (the make syntax error), and you only see the latter because of a third bug, namely your stray config.h. Since gzip is so basic for fink, I think something should be done about this, like predefining the result of the above assembler test as "no", so that it does not depend on the existence of a stray config.h. Or define it as "yes", and fix lib/Makefile and lib/match.c. Better yet, we should remove the completely superfluous gzip package from Fink, together with the other equally superfluous unzip and bzip2 packages. This would speed up bootstrapping considerably (but I know that this is a dream...) -- Martin |