Skip to content

[libxcrypt] build failure #41695

@WentsingNee

Description

@WentsingNee

Operating system

Linux

Compiler

gcc (GCC) 15.0.0 20241005 (experimental)

Steps to reproduce the behavior

vcpkg install libxcrypt

Failure logs

./../src/v4.4.36-645fb55159.clean/lib/util-base64.c:24:3: error: initializer-string for array of ‘unsigned char’ is too long [-Werror=unterminated-string-initialization]
   24 |   "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:2116: lib/libcrypt_la-util-base64.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1349: all] Error 2

lib/util-base64.c:

/* Base64-related utility functions and data.  */

#include "crypt-port.h"

const unsigned char ascii64[65] =
  "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
/* 0000000000111111111122222222223333333333444444444455555555556666 */
/* 0123456789012345678901234567890123456789012345678901234567890123 */
  "\x00";
>>> len("./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")
64

Additional context

No response

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions