[gnutls-devel] GnuTLS | Build failure error: expected ')' in crau/crau.h (#1880)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Apr 30 14:32:21 CEST 2026



Marius Schamschula created an issue: https://gitlab.com/gnutls/gnutls/-/work_items/1880



## Description of problem:
See https://trac.macports.org/ticket/73942

```
In file included from audit.c:26:
In file included from ./audit.h:22:
./crau/crau.h:263:60: error: expected ')'
void crau_push_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
                                                           ^
./crau/crau.h:263:23: note: to match this '('
void crau_push_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
                      ^
./crau/crau.h:263:6: error: conflicting types for 'crau_push_context'
void crau_push_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
     ^
./crau/crau.h:86:6: note: previous declaration is here
void crau_push_context(struct crau_context_stack_st *stack,
     ^
./crau/crau.h:269:54: error: expected ')'
crau_pop_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED)
                                                     ^
./crau/crau.h:269:17: note: to match this '('
crau_pop_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED)
                ^
./crau/crau.h:275:58: error: expected ')'
crau_current_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED)
                                                         ^
./crau/crau.h:275:21: note: to match this '('
crau_current_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED)
                    ^
./crau/crau.h:280:71: error: expected ')'
void crau_push_context_with_datav(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
                                                                      ^
./crau/crau.h:280:34: note: to match this '('
void crau_push_context_with_datav(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
                                 ^
./crau/crau.h:280:6: error: conflicting types for 'crau_push_context_with_datav'
void crau_push_context_with_datav(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
     ^
./crau/crau.h:109:6: note: previous declaration is here
void crau_push_context_with_datav(struct crau_context_stack_st *stack,
     ^
./crau/crau.h:286:70: error: expected ')'
void crau_push_context_with_data(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
                                                                     ^
./crau/crau.h:286:33: note: to match this '('
void crau_push_context_with_data(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
                                ^
./crau/crau.h:286:6: error: conflicting types for 'crau_push_context_with_data'
void crau_push_context_with_data(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
     ^
./crau/crau.h:106:6: note: previous declaration is here
void crau_push_context_with_data(struct crau_context_stack_st *stack,
     ^
./crau/crau.h:291:53: error: expected ')'
void crau_datav(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
                                                    ^
./crau/crau.h:291:16: note: to match this '('
void crau_datav(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
               ^
./crau/crau.h:291:6: error: conflicting types for 'crau_datav'
void crau_datav(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
     ^
./crau/crau.h:140:6: note: previous declaration is here
void crau_datav(struct crau_context_stack_st *stack, va_list ap);
     ^
./crau/crau.h:296:52: error: expected ')'
void crau_data(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED, ...)
                                                   ^
./crau/crau.h:296:15: note: to match this '('
void crau_data(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED, ...)
              ^
./crau/crau.h:296:6: error: conflicting types for 'crau_data'
void crau_data(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED, ...)
     ^
./crau/crau.h:138:6: note: previous declaration is here
void crau_data(struct crau_context_stack_st *stack, ...);
     ^
12 errors generated.
```

## Version of gnutls used:
8.3.13 (also reproduced on 8.3.12)

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
MacPorts

## How reproducible:

Steps to Reproduce:
Normal build process on platforms with clang older than version 17 (or Apple equivalent).

## Actual results:
See above

## Expected results:
Clean build

## Workaround
Require newer compiler, i.e. clang-17 or more recent

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/work_items/1880
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/4-8p3mjaq2bjuftp2osviakkzr7-a84t7/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260430/b0885687/attachment-0001.html>


More information about the Gnutls-devel mailing list