Cannot compile Postler with Vala 0.11.6

Bug #725706 reported by Stéphane Marguet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Postler
New
Undecided
Unassigned

Bug Description

Using Ubuntu Natty the compilation failed with :
../postler/postler-accounts.vala:69.44-69.44: error: Value must be constant

    const MailFolder[] localized_folders = {
        { "INBOX", STOCK_INBOX, N_("Inbox"), null, 0, FolderType.INBOX, 0 },
        { "Sent", STOCK_SENT_MAIL, N_("Sent"), sent_folders, sent_folders.length, FolderType.SENT, 1 },
        { "Drafts", null, N_("Drafts"), drafts_folders, drafts_folders.length, FolderType.DRAFTS, 2 },
        { "Queue", STOCK_OUTBOX, N_("Outbox"), queue_folders, queue_folders.length, FolderType.QUEUE, 3 },
        { "Trash", STOCK_USER_TRASH, N_("Trash"), trash_folders, trash_folders.length, FolderType.TRASH, 4 },
        { "Archive", STOCK_ARCHIVE, N_("Archive"), archive_folders, archive_folders.length, FolderType.ARCHIVE, 5 },
        /* i18n: Junk, unsolicited bulk mail, spam */
        { null, null, N_("Junk"), junk_folders, junk_folders.length, FolderType.JUNK, 6 },
        { null, Gtk.STOCK_DIRECTORY, null, null, 0, FolderType.GENERIC, 7 }
    };

Revision history for this message
Sergio Spinatelli (spinatelli) wrote :

The only solution is to downgrade to 0.11.4 (at least),since there have been some changes in the vala compiler.
0.11.5 and 0.11.6 don't work.

Revision history for this message
Stéphane Marguet (stemp) wrote :

@Sergio, the valac version in Natty is 0.11.6. I can't do anything about it. As long as this bug is not fixed, there cannot be a version of Postler for the next version of Ubuntu ;)

Revision history for this message
Sergio Spinatelli (spinatelli) wrote :

We already filed a bug in vala,unfortunately i don't know any other solution..maybe Christian can tell you more,let's see what he says.. =)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.