Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/sshnpd/srv/src/srv.c:273:13: error: incompatible pointer to integer conversion initializing 'pthread_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion] #1524

Closed
cpswan opened this issue Nov 12, 2024 · 0 comments · Fixed by #1526
Assignees
Labels
bug Something isn't working

Comments

@cpswan
Copy link
Member

cpswan commented Nov 12, 2024

Describe the bug

When building C sshnpd for linux/amd64 (glibc) as action for release c0.2.4

#9 15.95 [ 38%] Building C object _deps/srv-lib-build/CMakeFiles/srv-lib.dir/src/srv.c.o
#9 16.01 /sshnpd/srv/src/srv.c:273:13: error: incompatible pointer to integer conversion initializing 'pthread_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
#9 16.01   273 |   pthread_t tid = NULL;
#9 16.01       |             ^     ~~~~
#9 16.01 1 error generated.
#9 16.01 make[2]: *** [_deps/srv-lib-build/CMakeFiles/srv-lib.dir/build.make:104: _deps/srv-lib-build/CMakeFiles/srv-lib.dir/src/srv.c.o] Error 1
#9 16.01 make[1]: *** [CMakeFiles/Makefile2:3375: _deps/srv-lib-build/CMakeFiles/srv-lib.dir/all] Error 2
#9 16.01 make: *** [Makefile:136: all] Error 2

Steps to reproduce

  1. First I created a new release c0.2.4 to incorporate fix: clang-tidy using private macos headers #1521 and fix: undo sys/wait removal #1522
  2. Then the C_Release_Automation workflow was triggered and run
  3. And then the docker_build (linux/amd64, sshnpd-linux-x64) job failed emitting the log snippet pasted above

Expected behavior

Clean build with no warnings

Additional context

musl_build (linux/amd64, sshnpd-linux-x64-musl) succeeded, so this likely relates to gcc and glibc

@cpswan cpswan added the bug Something isn't working label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants