mainGnuTLS - Support: sr #107896, gnutls 3.0.8 fails to compile with...

 
 

sr #107896: gnutls 3.0.8 fails to compile with clang

Submitter:  Elias Pipping <pipping>
Submitted:  Wed 30 Nov 2011 12:38:29 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  jas
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 02 Dec 2011 08:37:09 AM UTC, comment #1: 

Interesting -- I'll forward this to the gnulib list.

/Simon

Simon Josefsson <jas>
Group administrator
Wed 30 Nov 2011 12:38:29 PM UTC, original submission:  

Earlier versions worked. (My theory for) the reason this version does not work
for:

gl/argp-parse.c uses alignof(); for that, <stdalign.h> is included. a usable stdalign.h is also shipped with gnutls for use with compilers that don't
come with such a header yet.

clang does have such a header but it only defines alignas(), not alignof().

here is the actual error:

argp-parse.c:490:41: error: expected expression
  csum = alignto (gsum + clen, alignof (struct option));
                                        ^

And this is what /usr/lib64/clang/3.1/include/stdalign.h contains for me
(aside from the copyright header and the include guards):

#define alignas _Alignas
#define __alignas_is_defined 1

Elias Pipping <pipping>

 

(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 nmav (Updated the item)
  • -email is unavailable- added by jas (Posted a comment)
  • -email is unavailable- added by pipping (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-06 nmav Open/ClosedOpen Closed
    2011-12-02 jas Assigned toNone jas

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code