bugGNU CSSC - Bugs: bug #43360, #error "Please include...


bug #43360: #error "Please include config.h first."

Submitted by:  Ryan Schmidt <ryandesign>
Submitted on:  Sun 05 Oct 2014 08:15:35 AM UTC  
Votes:  1  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Open/Closed:  Closed

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 11 May 2019 06:38:15 AM UTC, comment #1: 

I believe this is fixed in CSSC release 1.4.1.

James Youngman <jay>
Project AdministratorIn charge of this item.
Sun 05 Oct 2014 08:15:35 AM UTC, original submission:  

CSSC 1.4.0 builds on OS X 10.7 and later, but fails on OS X 10.6 (and possibly earlier) due to the same problem reported on the bug mailing list:

../gl/lib/unistd.h:135:3: error: #error "Please include config.h first."


and supposedly fixed with this commit:


I backported that to 1.4.0 and it now failed to build with a very similar error message with a different source file, version.cc. version.cc doesn't directly include unistd.h, but does include stdio.h; perhaps on this version of OS X stdio.h eventually includes unistd.h. In any case making a similar change to version.cc.in allowed the build to succeed:


Side note: I'm unclear why you're sometimes writing:

#include <config.h>

Since it's a file local to your source directory, shouldn't it always be:

#include "config.h"

Ryan Schmidt <ryandesign>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jay (Updated the item)
  • -email is unavailable- added by egallager (Voted in favor of this item)
  • -email is unavailable- added by ryandesign (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-11 jay Open/ClosedOpen => Closed
    2019-05-05 jay StatusNone => Fixed
        Assigned toNone => jay
    2014-10-11 egallager Carbon-Copy- => Added egallager

    Back to the top

    Powered by Savane 3.5