tail -f has blessed us with this snippet:
chared.c:751: error: dereferencing pointer to incomplete type
chared.c:752: error: dereferencing pointer to incomplete type
chared.c:755: error: dereferencing pointer to incomplete type
make[3]: *** [chared.o] Error 1
make[3]: Leaving directory `c:/example/mysql-4.1.22/cmd-line-utils/libedit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `c:/example/mysql-4.1.22/cmd-line-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `c:/example/mysql-4.1.22'
make: *** [all] Error 2
anno2log error2.anno.xml | grep 'error'

chared.o rule gives us more information:
chared.c:35:20: config.h: No such file or directorygcc is complaining about - it's not always clear, with system includes, relative paths, etc - but let's also take into account the subsequent errors:
...
In file included from chared.c:41:
el.h:131: error: parse error before "el_history_t"
...
chared.c:73: error: syntax error before "void"
chared.c: In function `cv_yank':
chared.c:76: error: dereferencing pointer to incomplete type
...
gcc, it's a little suspicious:
if gcc -MT chared.o -MD -MP -MF ".deps/chared.Tpo" -c -o chared.o chared.c; \
then mv -f ".deps/chared.Tpo" ".deps/chared.Po"; else rm -f ".deps/chared.Tpo"; exit 1; fi
-I include paths in the compiler call, (and our first error is a missing header). This is the source of the compiler error - but why was the command-line malformed? To investigate further, we'll need to look at the makefile.Trying to identify the line of a makefile which defines a relevant rule is a pain in the console if all you've got is the stdout log - many rules will be patterns and searching for source file names or command-line arguements is an exercise in manual variable expansion. SparkBuild Insight makes it easy on us, however. If you have a local copy of the code, you could simply click the 'Makefile:0,446-447' link to have SparkBuild Insight open up the relevant lines. (Instead, for your convenience, here's the rule at line 446:).c.o: if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
(download cmd-line-utils/libedit/Makefile)$(COMPILE):COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)\ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
COMPILE = $(CC)
© 2012 Created by Electric Cloud Administrator.
You need to be a member of SparkBuild Community to add comments!
Join SparkBuild Community