Fossil

View Ticket
Login

View Ticket

2010-09-10
16:13 Fixed ticket [5207b03861]: Build failure plus 1 other change ... (artifact: 3d4afaed36 user: wolfgang)
16:11
fixed ticket [5207b03861]: use correct type for index variable ... (check-in: 4887a1da84 user: wolfgang tags: wolfgangFormat2CSS)
11:16 Ticket [5207b03861] Build failure status still Open with 1 other change ... (artifact: 489a137d60 user: wolfgang)
08:03 Ticket [5207b03861]: 1 change ... (artifact: 4f65f1e417 user: anonymous)
06:02 Ticket [5207b03861]: 1 change ... (artifact: ac627f22d0 user: wolfgang)
02:59 Ticket [5207b03861]: 2 changes ... (artifact: 8f6d330edc user: rwilson)
02:07 New ticket [5207b03861]. ... (artifact: 34edf49efe user: anonymous)

Ticket Hash: 5207b038615ee087e99513de1e26b7b5544f2437
Title: Build failure
Status: Fixed Type: Build_Problem
Severity: Critical Priority:
Subsystem: Resolution: Open
Last Modified: 2010-09-10 16:13:00
15.56 years ago
Created: 2010-09-10 02:07:28
15.56 years ago
Version Found In:
Description:
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