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

[BUG] incompatible function pointer types #560

Open
Schamschula opened this issue Jun 7, 2024 · 0 comments
Open

[BUG] incompatible function pointer types #560

Schamschula opened this issue Jun 7, 2024 · 0 comments
Labels

Comments

@Schamschula
Copy link

Describe the bug
While building fsearch under macOS Sonoma, I get the following error

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to install

Expected behavior
Successful build.

Screenshots

:info:build [56/107] /usr/bin/clang -Isrc/libfsearch.a.p -Isrc -I../fsearch-0.2.3/src -I. -I../fsearch-0.2.3 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/atk-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=c11 -O0 -g -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ src/libfsearch.a.p/fsearch_query_parser.c.o -MF src/libfsearch.a.p/fsearch_query_parser.c.o.d -o src/libfsearch.a.p/fsearch_query_parser.c.o -c ../fsearch-0.2.3/src/fsearch_query_parser.c
:info:build FAILED: src/libfsearch.a.p/fsearch_query_parser.c.o 
:info:build /usr/bin/clang -Isrc/libfsearch.a.p -Isrc -I../fsearch-0.2.3/src -I. -I../fsearch-0.2.3 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/atk-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=c11 -O0 -g -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ src/libfsearch.a.p/fsearch_query_parser.c.o -MF src/libfsearch.a.p/fsearch_query_parser.c.o.d -o src/libfsearch.a.p/fsearch_query_parser.c.o -c ../fsearch-0.2.3/src/fsearch_query_parser.c
:info:build ../fsearch-0.2.3/src/fsearch_query_parser.c:320:35: error: incompatible function pointer types passing 'bool (const char *, time_t *, time_t *)' (aka 'bool (const char *, long *, long *)') to parameter of type 'FsearchQueryIntegerParserFunc *' (aka 'bool (*)(const char *, long long *, long long *)') [-Wincompatible-function-pointer-types]
:info:build                                   fsearch_date_time_parse_interval);
:info:build                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ../fsearch-0.2.3/src/fsearch_query_parser.c:223:54: note: passing argument to parameter 'parse_value_func' here
:info:build                        FsearchQueryIntegerParserFunc parse_value_func) {
:info:build                                                      ^
:info:build 1 error generated.

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.5 23F79 arm64

  • Xcode 15.2 15C500b

  • How you installed FSearch: MacPorts

  • Version 0.2.3

Additional context
/usr/bin/clang --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)

Full log
fsearch-main.log.gz

@Schamschula Schamschula added the bug label Jun 7, 2024
Schamschula added a commit to Schamschula/macports that referenced this issue Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant