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


sr #107896: gnutls 3.0.8 fails to compile with clang

Submitted by:  Elias Pipping <pipping>
Submitted on:  Wed 30 Nov 2011 12:38:29 PM UTC  
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: Simon Josefsson <jas>
Open/Closed: ClosedOperating System: None

Add a New Comment(Rich Markup)

You are not logged in

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


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

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


Simon Josefsson <jas>
Project AdministratorIn charge of this item.
Wed 30 Nov 2011 12:38:29 PM UTC, original submission:

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

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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by nmav (Updated the item)
  • -unavailable- added by jas (Posted a comment)
  • -unavailable- added by pipping (Submitted the item)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 06 Feb 2014 09:57:17 AM UTCnmavOpen/ClosedOpen=>Closed
    Fri 02 Dec 2011 08:37:09 AM UTCjasAssigned toNone=>jas

    Back to the top

    Powered by Savane 3.1-cleanup1