Opened 4 years ago

Closed 4 years ago

#62032 closed defect (fixed)

py27-pygrib @2.0.4: error: implicit declaration of function 'g2_unpack1' is invalid in C99

Reported by: temeo31 Owned by: jswhit (Jeff Whitaker)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: py-pygrib

Description

Hi,

Here is my configuration : Mac OS 11.1 (Big Sur) - Xcode 12.3 - Macports 2.6.4

I'm trying to install py27-pygrib but I got an issue during the build step :

--->  Computing dependencies for py27-pygrib
--->  Fetching archive for py27-pygrib
--->  Attempting to fetch py27-pygrib-2.0.4_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/py27-pygrib
--->  Attempting to fetch py27-pygrib-2.0.4_0.darwin_20.x86_64.tbz2 from http://atl.us.packages.macports.org/py27-pygrib
--->  Attempting to fetch py27-pygrib-2.0.4_0.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/py27-pygrib
--->  Fetching distfiles for py27-pygrib
--->  Verifying checksums for py27-pygrib
--->  Extracting py27-pygrib
--->  Configuring py27-pygrib
--->  Building py27-pygrib
Error: Failed to build py27-pygrib: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pygrib/py27-pygrib/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py27-pygrib failed

Attachments (1)

py27-pygrib.log (169.5 KB) - added by temeo31 4 years ago.
py27-pygrib install log file

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by temeo31

Attachment: py27-pygrib.log added

py27-pygrib install log file

comment:1 Changed 4 years ago by jmroot (Joshua Root)

Keywords: py27-pygrib removed
Owner: set to jswhit
Port: py-pygrib added; py27-pygrib removed
Status: newassigned

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur added; BigSur removed
Summary: py27-pygrib : build failurepy27-pygrib @2.0.4: error: implicit declaration of function 'g2_unpack1' is invalid in C99

The first error in the log:

:info:build g2clib.c:1802:18: error: implicit declaration of function 'g2_unpack1' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build   __pyx_v_ierr = g2_unpack1(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_ids), (&__pyx_v_idslen));
:info:build                  ^

So this is the well-known implicit function problem with Xcode 12 and later that will need to be fixed in the usual way. (Declare a function before you use it.)

comment:3 Changed 4 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In f00b8f61c0fbc949a82123427f57fa52e8a5a886/macports-ports (master):

py-pygrib: update to 2.1.3, add py3{7,8,9} subports

Closes: #62032

Note: See TracTickets for help on using tickets.