Hmm, conversation suggest that this is not bug in the code but trivial user error. OK! The problem is that it is 100% reproducible on Solaris with installed Sun C by:
mkdir obj cd obj ../src/configure --prefix=/opt/fossil-head gmake and you will get: cc -I. -I../src/src -Ibld -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -DFOSSIL_DYNAMIC_BUILD=1 -g -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H -o bld/doc.o -c bld/doc_.c "../src/src/doc.c", line 732: void function cannot return value cc: acomp failed for bld/doc_.c gmake: *** [bld/doc.o] Error 2 if however you do (and use GNU C): export CC=gcc export CXX=g++ mkdir obj cd obj ../src/configure --prefix=/opt/fossil-head gmake the compilation will finish fine. So either this is C language level incompatibility between fossil source code and Sun C, or simply Sun C is buggy here. The version of compiler is: $ cc -V cc: Sun C 5.13 SunOS_i386 2014/10/20 Thanks, Karel On Mon, Aug 29, 2016 at 4:19 PM, Richard Hipp <[email protected]> wrote: > On 8/29/16, Warren Young <[email protected]> wrote: >> >> That’s only a partial fix. You also need to add a prototype for >> uvstat_page() to one of the header files that src/doc.c includes, so the >> compiler would catch that. > > The header files in Fossil are automatically generated. (See the > description of "makeheaders" at > https://www.fossil-scm.org/fossil/doc/trunk/www/makefile.wiki) > > Sometimes the makefile gets confused and it is necessary to do "make > clean fossil" in order to regenerate the header files correctly. > Probably this is a bug in the makefile, but the problem comes up so > rarely and the workaround so easy that nobody has taken the time to > track down the bug and fix it. > -- > D. Richard Hipp > [email protected] > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

