[SAOC 2026] ImportC Weekly Update #8

AndyC andy at squeakycode.net
Tue Nov 17 02:22:05 UTC 2026


On Sunday, 15 November 2026 at 10:20:08 UTC, Niyati Jain wrote:
>> AndyC wrote:
>> Thanks for the update! Including `<systemd/sd-journal.h>` 
>> fails under DMD v2.113.0 because static array parameters like 
>> `char s[static 33U]` aren't supported. I worked around it by 
>> copying the functions I needed, everything else has worked 
>> well.
>
> Good news, that one's already fixed, [PR 
> #23955](https://github.com/dlang/dmd/pull/23955) from Milestone 
> 1 in October. It's in 
> [2.114.0](https://github.com/dlang/dmd/releases/tag/v2.114.0) 
> which is already out, so upgrading should let that header work 
> without needing to copy functions out. I'm glad the rest has 
> been going well for you.
> Thanks.
>

Well..  it doesn't, sorry.  Just updated, hopefully I updated 
correctly:

```bash
$ dmd main.d journald_c.c
/usr/include/systemd/sd-id128.h(38): Error: static array 
parameters are not supported
char* sd_id128_to_string(sd_id128_t id, char s[static 33U]);
                                                           ^
/usr/include/systemd/sd-id128.h(39): Error: static array 
parameters are not supported
char* sd_id128_to_uuid_string(sd_id128_t id, char s[static 37U]);
                                                                ^
$ dmd --version
DMD64 D Compiler v2.114.0
Copyright (C) 1999-2026 by The D Language Foundation, All Rights 
Reserved written by Walter Bright

$ more journald_c.c
#include <systemd/sd-journal.h>

$ more main.d
module main;

import journald_c;

void main() {

}

```

-Andy


More information about the Digitalmars-d mailing list