conda-forge / pynio-feedstock

A conda-smithy repository for pynio.
BSD 3-Clause "New" or "Revised" License
3 stars 14 forks source link

Pin gdal #8

Closed ocefpaf closed 8 years ago

ocefpaf commented 8 years ago

Testing pynio with latest gdal.

conda-forge-linter commented 8 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

ocefpaf commented 8 years ago

@gillins I am having trouble compiling pynio with gdal 2.x on Linux. (To be fair I am not sure that is gdal's fault.)

Any advice?

error: Command "gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/conda/envs/_build/include -I/opt/conda/envs/_build/include -fPIC -DNeedFuncProto -DNIO_LIB_ONLY -D_POSIX_SOURCE -DByteSwapped -DBuildHDF4 -DUSE_NETCDF4 -DUSE_NETCDF4_FEATURES -DBuildHDFEOS -DBuildGRIB2 -D__64BIT__ -DBuildHDF5 -DBuildHDFEOS5 -DBuildGDAL -I/opt/conda/envs/_build/lib/python2.7/site-packages/numpy/core/include -Ilibsrc -I/opt/conda/envs/_build/include -I/opt/conda/envs/_build/lib/python2.7/site-packages/numpy/core/include -c libsrc/FileSupport.c -o build/temp.linux-x86_64-2.7/libsrc/FileSupport.o -O2 -w" failed with exit status 1
Command failed: /bin/bash -x -e /recipe_root/build.sh
gillins commented 8 years ago

I just pasted the error message below. I can't seem to get hold of the source at the moment, but I think FileSupport.c is missing an #include <sys/stat.h> and may need a patch (See http://www.gnu.org/software/libc/manual/html_node/Testing-File-Type.html).

libsrc/FileSupport.c: In function ‘_NclOpenFile’:
libsrc/FileSupport.c:4169:30: error: ‘S_IFMT’ undeclared (first use in this function)
        ((file_stat.st_mode & S_IFMT) == S_IFREG || (file_stat.st_mode & S_IFMT) == S_IFLNK))
                              ^
libsrc/FileSupport.c:4169:30: note: each undeclared identifier is reported only once for each function it appears in
libsrc/FileSupport.c:4169:41: error: ‘S_IFREG’ undeclared (first use in this function)
        ((file_stat.st_mode & S_IFMT) == S_IFREG || (file_stat.st_mode & S_IFMT) == S_IFLNK))
                                         ^
libsrc/FileSupport.c:4169:84: error: ‘S_IFLNK’ undeclared (first use in this function)
        ((file_stat.st_mode & S_IFMT) == S_IFREG || (file_stat.st_mode & S_IFMT) == S_IFLNK))
                                                                                    ^
libsrc/FileSupport.c: In function ‘_NclOpenFile’:
libsrc/FileSupport.c:4169:30: error: ‘S_IFMT’ undeclared (first use in this function)
        ((file_stat.st_mode & S_IFMT) == S_IFREG || (file_stat.st_mode & S_IFMT) == S_IFLNK))
                              ^
libsrc/FileSupport.c:4169:30: note: each undeclared identifier is reported only once for each function it appears in
libsrc/FileSupport.c:4169:41: error: ‘S_IFREG’ undeclared (first use in this function)
        ((file_stat.st_mode & S_IFMT) == S_IFREG || (file_stat.st_mode & S_IFMT) == S_IFLNK))
                                         ^
libsrc/FileSupport.c:4169:84: error: ‘S_IFLNK’ undeclared (first use in this function)
        ((file_stat.st_mode & S_IFMT) == S_IFREG || (file_stat.st_mode & S_IFMT) == S_IFLNK))
                                                                                    ^
ocefpaf commented 8 years ago

I don't believe pynio works with gdal 2.x. Closing this.