#55963 closed defect (fixed)
wgrib2 build fail - log shows errors when compiling gctpc.c
Reported by: | GeneralDuke9 | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | wgrib2 |
Description
I was updating MacPorts when building wgrib2 failed. It is a dependency for ncarg.
Going through the main.log (attached) it shows that it fails when compiling gctpc.c, it throws some errors about undeclared identifiers and then exits. I've tried installing an older version of both ncarg and wgrib2 (by downloading the git repo and checking out the appropriate commit) but it didn't work.
I'm running macOS High Sierra 10.13.3 (latest) and the latest version of MacPorts 2.4.2. I'm using gcc7 as default variant.
Attachments (1)
Change History (5)
Changed 7 years ago by GeneralDuke9
comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)
Cc: | tenomoto removed |
---|---|
Owner: | set to tenomoto |
Status: | new → assigned |
comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign added |
---|
The missing symbols are defined in /opt/local/include/gctpc/proj.h.
The problem is that wgrib2 depends on proj, and proj provides the completely unrelated file /opt/local/include/proj.h which doesn't define those symbols, and the build system finds this file first, because the portfile supplies the -I
flags to the build system in the wrong order.
proj was recently updated to version 5.0.0. Previous versions of proj did not provide a file called /opt/local/include/proj.h so the problem did not exist before.
comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Debug log of building wgrib2