#61483 closed defect (fixed)
neon @0.30.2: configure failure due to implicit declaration of functions
Reported by: | AP1010 | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | catalina bigsur | Cc: | jungx098, ShadSterling (Shad Sterling), jboydon (John Boydon), michaellass (Michael Lass), hapaguy (Brian Kurt Fujikawa), cooljeanius (Eric Gallager), horasio (Samuel Hornus), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
Port: | neon |
Description
configure stage fails with:
... checking for library containing socket... not found configure: error: could not find library containing socket ...
Attachments (2)
Change History (29)
comment:1 Changed 4 years ago by mf2k (Frank Schima)
Keywords: | socket removed |
---|
comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Changed 4 years ago by AP1010
Changed 4 years ago by AP1010
Attachment: | config.log added |
---|
comment:4 follow-up: 5 Changed 4 years ago by AP1010
Indeed, it does seem to be the "implicit declaration invalid in C99 issue". The port builds with configure.compiler=macports-clang-9.0
comment:5 Changed 4 years ago by Tatsh (Andrew Udvare)
Replying to AP1010:
Indeed, it does seem to be the "implicit declaration invalid in C99 issue". The port builds with configure.compiler=macports-clang-9.0
Also works with macports-clang-11
.
comment:6 Changed 4 years ago by jungx098
Cc: | jungx098 added |
---|
comment:7 Changed 4 years ago by ShadSterling (Shad Sterling)
Cc: | ShadSterling added |
---|
comment:8 follow-up: 9 Changed 4 years ago by jungx098
The root cause is that clang 12 enables -Werror
by default. Not sure if Apple will roll back this feature.
One workaround is to add -Wno-error=all
to CFLAGS
.
I made a quick patch: https://github.com/macports/macports-ports/compare/master...jungx098:neon
comment:9 Changed 4 years ago by kencu (Ken)
Replying to jungx098:
The root cause is that clang 12 enables
-Werror
by default. Not sure if Apple will roll back this feature.
I don't think it's a blanket -Werror
, but they do generate an error on implicit function definitions, by default, as of Xcode12.
One workaround is to add
-Wno-error=all
toCFLAGS
.
Turning off the error can be done more specifically for that error as well, or you can build with a non-Apple clang compiler like macports-clang-10, however apparently if you fix the build that way, it remains broken on all the new Apple Silicon machines, that require a proper header and a proper function definition for every function.
So MacPorts is not accepting the fix of turning off the error or building with a non-Apple clang compiler as a fix for this issue, as we'll all just have to come right back to this same issue again in a few months and fix it properly anyway.
As a fix for your own personal system, no problem of course -- it's your system, you can do anything you want with it!
comment:10 follow-up: 11 Changed 4 years ago by kencu (Ken)
See this message for many gory details <https://lists.macports.org/pipermail/macports-dev/2020-November/042648.html>
comment:11 Changed 4 years ago by jungx098
Replying to kencu:
See this message for many gory details <https://lists.macports.org/pipermail/macports-dev/2020-November/042648.html>
Thanks for the details. It feels like non-trivial.
comment:13 Changed 4 years ago by jboydon (John Boydon)
I am struggling with neon installation. Can someone tell me the proper way to specify CFLAGS=-Wno-error=all
in the command line?
I have tried with the following without success:
sudo port -v install configure.cflags="-Wno-error=all" sudo port -v install configure.cflags-append="-Wno-error=all"
Thanks
john
comment:14 Changed 4 years ago by sdguip
Compiled with success:
sudo port install neon configure.cflags=-Wno-error=all
comment:15 Changed 4 years ago by michaellass (Michael Lass)
Cc: | michaellass added |
---|
comment:16 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | catalina bigsur added |
---|---|
Owner: | set to ryandesign |
Status: | new → accepted |
Summary: | neon @0.30.2 does not build on Big Sur (11.0.1) → neon @0.30.2: configure failure due to implicit declaration of functions |
After an unsuccessful initial attempt to fix it myself, I've reported the problem to the developers.
comment:17 Changed 4 years ago by hapaguy (Brian Kurt Fujikawa)
Cc: | hapaguy added |
---|
comment:18 Changed 4 years ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:19 Changed 4 years ago by cooljeanius (Eric Gallager)
Note that this blocks installation of a bunch gnome, xfce, and gimp-related ports. On my system port echo rdepends:neon | wc -l
returns 175 ports.
comment:20 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Sure. Upstream should fix it. Then we can update to a fixed version.
comment:21 Changed 4 years ago by horasio (Samuel Hornus)
Cc: | horasio added |
---|
comment:22 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | MarcusCalhoun-Lopez added |
---|
comment:23 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
There is a pull request that attempts to fix this problem.
comment:24 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:25 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
I've submitted a PR to neon that should fix this properly:
https://github.com/notroj/neon/pull/57
It won't apply to 0.31.2 unless this commit is applied first:
https://github.com/notroj/neon/commit/43a9b7e0d72ee97dcdbc102254ada20278eac80b
comment:26 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
comment:27 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Whoops, wrong URL on the clipboard. That commit should have referenced #63227.
Could be the ubiquitous implicit declaration of function error. Please attach the config.log.