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

 
 

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

Submitter:  Ryan Carsten Schmidt <ryandesign>
Submitted:  Fri 03 Jul 2020 08:00:06 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 12 May 2024 09:57:18 AM UTC, comment #1: 

I applied the patch to the git repo.

James Youngman <jay>
Group administrator
Fri 03 Jul 2020 08:00:06 AM UTC, original submission:  

cssc 1.4.1 fails to build on OS X 10.10:


In file included from version.cc:2:
In file included from ./version.h:18:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstdio:99:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__config:23:
../gl/lib/unistd.h:135:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
../gl/lib/unistd.h:137:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
../gl/lib/unistd.h:620:1: error: expected unqualified-id
_GL_CXXALIAS_SYS (close, int, (int fd));
^
../gl/lib/stdio.h:276:5: note: expanded from macro '_GL_CXXALIAS_SYS'
    _GL_EXTERN_C int _gl_cxxalias_dummy
    ^
../gl/lib/stdio.h:189:23: note: expanded from macro '_GL_EXTERN_C'
# define _GL_EXTERN_C extern "C"
                      ^
In file included from version.cc:2:
In file included from ./version.h:18:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstdio:99:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__config:23:
../gl/lib/unistd.h:1894:1: error: unknown type name '_GL_INLINE_HEADER_END'
_GL_INLINE_HEADER_END
^
In file included from version.cc:2:
In file included from ./version.h:18:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstdio:99:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__config:368:1: error: expected unqualified-id
namespace std {
^
5 errors generated.


I reported this once before in #43360 and it was believed to have been fixed in 1.4.1, but evidently is not.

The patch I provided in that ticket in 2014 still fixes it:

https://trac.macports.org/browser/trunk/dports/devel/cssc/files/patch-src-version.cc.in.diff?rev=126199

Ryan Carsten Schmidt <ryandesign>

 

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

Attach Files:
   
   
Comment:
   

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 (Posted a comment)
  • -email is unavailable- added by ryandesign (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-12 jay StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code