Skip to content

Conversation

@FrederikLauber
Copy link

On arch linux, this project did not compile due to

CC libpal_la-palDfltin.lo
palDfltin.c: In function 'palDfltin':
palDfltin.c:185:3: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
185 | strlcpy( tempbuf, &(string[*nstrt-1]), sizeof(tempbuf) );
| ^~~~~~~
| strncpy

After some debugging, the issue seems that HAVE_BSD_STRING_H was never set and thus the include never happens.

On arch linux, this project did not compile due to 

  CC       libpal_la-palDfltin.lo
palDfltin.c: In function 'palDfltin':
palDfltin.c:185:3: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
  185 |   strlcpy( tempbuf, &(string[*nstrt-1]), sizeof(tempbuf) );
      |   ^~~~~~~
      |   strncpy

After some debugging, the issue seems that HAVE_BSD_STRING_H was never set and thus the include never happens.
@dsschult
Copy link
Member

dsschult commented May 6, 2025

Just an FYI that we don't use this repo anymore. You should use upstream https://github.com/Starlink/pal

@FrederikLauber
Copy link
Author

Rgr, I will check if the issues also exist on the upstream PAL and open pull requests there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants