View Ticket
Not logged in
Ticket UUID: 5207b038615ee087e99513de1e26b7b5544f2437
Title: Build failure
Status: Fixed Type: Build_Problem
Severity: Critical Priority:
Subsystem: Resolution: Open
Last Modified: 2010-09-10 16:13:00
Version Found In:
Description & Comments:
After doing a fresh fossil clone and open of the source code, I get the below build failure on mac os x 10.6:
gcc -g -Os -Wall -DFOSSIL_ENABLE_SSL  -I. -I./src -o ./obj/style.o -c style_.c
style_.c: In function ‘cgi_append_default_css’:
style_.c:521: error: storage size of ‘i’ isn’t known
style_.c:521: warning: unused variable ‘i’
style_.c: In function ‘page_style_css’:
style_.c:533: error: storage size of ‘i’ isn’t known
style_.c:533: warning: unused variable ‘i’
style_.c:532: warning: unused variable ‘zCSSdef’
make: *** [obj/style.o] Error 1

rwilson added on 2010-09-10 02:59:32:
builds fine in windows.


wolfgang added on 2010-09-10 06:02:07:
I´ve changed this part on the branch

wolfgangFormat2CSS

after the first part was merged into the trunk.

But on WinXP and Digital Mars C, i had no problem with this code (old and new version)


anonymous claiming to be renez added on 2010-09-10 08:03:33:
enum cssDefaultItems i; I cannot find this enum in any header. You nust supply a definition enum cssDefaultItems = {None = 0, A, B , C, D};


wolfgang added on 2010-09-10 11:16:26:
after a quick look, i see

1. the trunk version shouldn´t have the problem, ´i´ is defined as int

2. wolfgangFormat2CSS has the problem, but compiles with dm

I´ll correct this in the evening, but it should work, if you update to "trunk"


wolfgang added on 2010-09-10 16:13:00:
changed the undefined enum to int, the trunk version is not affected