[
https://issues.apache.org/jira/browse/DAEMON-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17845279#comment-17845279
]
Michael Osipov commented on DAEMON-463:
---------------------------------------
I can confirm the issue on:
{noformat}
$ make
(cd native; make all)
cc -g -O2 -DOS_FREEBSD -DDSO_DLFCN -D_THREAD_SAFE -pthread -DCPU=\"amd64\"
-Wall -Wstrict-prototypes -I/usr/local/openjdk8/include
-I/usr/local/openjdk8/include/freebsd -c jsvc-unix.c -o jsvc-unix.o
jsvc-unix.c:1311:20: error: incompatible function pointer types assigning to
'void (*)(int)' from 'void (int, siginfo_t *, void *)' (aka 'void (int, struct
__siginfo *, void *)') [-Wincompatible-function-pointer-types]
1311 | act.sa_handler = controller;
| ^ ~~~~~~~~~~
1 error generated.
*** Error code 1
Stop.
make[1]: stopped in /tmp/commons-daemon/src/native/unix/native
*** Error code 1
Stop.
make: stopped in /tmp/commons-daemon/src/native/unix
osipovmi@deblndw011x:/tmp/commons-daemon/src/native/unix (master =)
$ cc --version
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-17.0.6-0-g6009708b4367)
Target: x86_64-unknown-freebsd13.3
Thread model: posix
InstalledDir: /usr/bin
{noformat}
> Daemon fails to build on macOS with XCode 15.3
> ----------------------------------------------
>
> Key: DAEMON-463
> URL: https://issues.apache.org/jira/browse/DAEMON-463
> Project: Commons Daemon
> Issue Type: Bug
> Components: Jsvc
> Affects Versions: 1.3.4
> Environment:
> Clang: 15.0.0 build 1500
> macOS: 14.4.1-arm64
> CLT: 15.3.0.0.1.1708646388
> Xcode: 15.3
> Rosetta 2: false
> Reporter: Sean Molenaar
> Priority: Major
>
> When building jsvc on macOS with XCode 15.3 (for Homebrew), the build fails
> with the following error:
>
> {code:java}
> jsvc-unix.c:1311:20: error: incompatible function pointer types assigning to
> 'void (*)(int)' from 'void (int, siginfo_t *, void *)' (aka 'void (int,
> struct __siginfo *, void *)') [-Wincompatible-function-pointer-types] 90
> act.sa_handler = controller; 91 ^ ~~~~~~~~~~ {code}
>
> For more details see:
> https://github.com/Homebrew/homebrew-core/actions/runs/8967899390/job/24626304630
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)