Opened 6 weeks ago
Last modified 5 weeks ago
#71092 assigned defect
tecla @1.6.3: error: incompatible function pointer types passing 'TputsRetType (TputsArgType)' (aka 'void (int)') to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types]
Reported by: | 2-of-1 | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | sequoia | Cc: | |
Port: | tecla |
Description
Hello.
Tried to install GQRX using Mac Ports on Sonoma but the installation fails due to the inability to download and install the Tecla sources. Even the -b switch didn't solve the problem.
Thanks in advance,
2of1
Attachments (2)
Change History (7)
comment:1 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sonoma added |
---|---|
Owner: | set to michaelld |
Port: | tecla added; gqrx removed |
Status: | new → assigned |
Summary: | Unable to install GQRX because of Tecla can't be build → tecla: Fetch failure |
Changed 6 weeks ago by 2-of-1
Attachment: | main_gqrx.log added |
---|
Changed 6 weeks ago by 2-of-1
Attachment: | main_tecla.log added |
---|
comment:3 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sequoia added; sonoma removed |
---|---|
Summary: | tecla: Fetch failure → tecla @1.6.3: error: incompatible function pointer types passing 'TputsRetType (TputsArgType)' (aka 'void (int)') to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] |
Ok, so the failure to fetch precompiled archives is not the bug; see #60756. The real problem is that the port doesn't build:
./getline.c:3931:34: error: incompatible function pointer types passing 'TputsRetType (TputsArgType)' (aka 'void (int)') to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] 3931 | tputs((char *)string, nline, gl_tputs_putchar); | ^~~~~~~~~~~~~~~~ /opt/local/include/term.h:848:60: note: passing argument to parameter here 848 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^ 1 error generated.
Just to get the correct info into the bug: You said you're using macOS Sonoma but the log shows macOS 15 which is Sequoia.
comment:4 Changed 6 weeks ago by 2-of-1
Thanks for filing the ticket under the right hashtags. You are right, its Sequoia, not Sonoma. Any idea how to fix this compilation Error?
comment:5 Changed 5 weeks ago by ryandesign (Ryan Carsten Schmidt)
The project's code evidently contains a mistake where one type of information is being passed to a function that expects a different type of information. Compilers have issued warnings about incompatible function pointer types for years. Now, the latest compilers no longer tolerate such mistakes and consider them to be errors. Ideally, someone would fix the problem so that the correct type of information is being passed. Less ideally, the error could be downgraded back to a warning.
Usually mistakes in a project's code should be reported to its developers so they can fix it. I'm not sure if this project is still being developed though, since the last version was released ten years ago.
Please attach the main.log file.