[MacPorts] #71966: ncview @2.1.11 build error: file_netcdf.c: error: ‘for’ loop initial declaration used outside C99 mode
MacPorts
noreply at macports.org
Tue Jan 28 18:44:42 UTC 2025
#71966: ncview @2.1.11 build error: file_netcdf.c: error: ‘for’ loop initial
declaration used outside C99 mode
--------------------------+--------------------------
Reporter: barracuda156 | Owner: thiagoveloso
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: ncview
--------------------------+--------------------------
{{{
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..
-DNCVIEW_LIB_DIR=\"/opt/local/share/ncview\" -I/opt/local/include
-I/opt/local/include/udunits2 -I/opt/local/include -I/opt/local/include
-I/opt/local/include -pipe -Os -arch ppc -MT file_netcdf.o -MD -MP -MF
.deps/file_netcdf.Tpo -c -o file_netcdf.o file_netcdf.c
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..
-DNCVIEW_LIB_DIR=\"/opt/local/share/ncview\" -I/opt/local/include
-I/opt/local/include/udunits2 -I/opt/local/include -I/opt/local/include
-I/opt/local/include -pipe -Os -arch ppc -MT view.o -MD -MP -MF
.deps/view.Tpo -c -o view.o view.c
file_netcdf.c: In function ‘netcdf_title’:
file_netcdf.c:981: error: ‘for’ loop initial declaration used outside C99
mode
make[2]: *** [file_netcdf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
}}}
It needs `-std=c99`.
--
Ticket URL: <https://trac.macports.org/ticket/71966>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list