OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
363 stars 111 forks source link

saga-gis SHA mismatch #108

Closed nextstopsun closed 8 years ago

nextstopsun commented 9 years ago

I get a SHA1 mismatch on projects.h file when trying to install saga-gis.

brew install --with-app --with-liblas --with-postgresql --with-python osgeo/osgeo4mac/saga-gis
==> Installing saga-gis from osgeo/homebrew-osgeo4mac
==> Downloading https://downloads.sourceforge.net/project/saga-gis/SAGA%20-%202.1/SAGA%202.1.2/saga_2.1.2.tar.gz
==> Downloading from http://netassist.dl.sourceforge.net/project/saga-gis/SAGA%20-%202.1/SAGA%202.1.2/saga_2.1.2.tar.gz
######################################################################## 100.0%
==> Downloading http://trac.osgeo.org/proj/export/2409/branches/4.8/proj/src/projects.h
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 867367a8ef097d5ff772b7f50713830d2d4bc09c
Actual: df11e80bc6c3d8cd96fcfb1c1db48772f31a4ee6
Archive: /Library/Caches/Homebrew/saga-gis--projects-4.8.0.h
turboladen commented 9 years ago

I'm getting this too.

dollarklavs commented 9 years ago

Me to when doing brew install qgis-28 --with-saga-gis

mmoraleda commented 9 years ago

We're looking at http://trac.osgeo.org/proj/log/branches/4.8/proj/src/projects.h and no version matches this expected hash.

Trying with the last version (and overriding the hash) we get

In file included from MLB_Interface.cpp:101:
In file included from ./PROJ4_Shapes.h:68:
In file included from ./PROJ4_Base.h:70:
./projects.h:380:7: error: functions that differ only in their return type cannot be overloaded
FILE *pj_open_lib(projCtx, char *, char *);
~~~~~~^
/usr/local/include/proj_api.h:148:8: note: previous declaration is here
PAFile pj_open_lib(projCtx, const char *, const char *);
~~~~~~ ^
In file included from crs_transform.cpp:64:
./projects.h:380:7: error: functions that differ only in their return type cannot be overloaded
FILE *pj_open_lib(projCtx, char *, char *);
~~~~~~^
/usr/local/include/proj_api.h:148:8: note: previous declaration is here
PAFile pj_open_lib(projCtx, const char *, const char *);
~~~~~~ ^
1 error generated.
In file included from crs_base.cpp:64:
./projects.h:380:7: error: functions that differ only in their return type cannot be overloaded
FILE *pj_open_lib(projCtx, char *, char *);
~~~~~~^
/usr/local/include/proj_api.h:148:8: note: previous declaration is here
PAFile pj_open_lib(projCtx, const char *, const char *);
~~~~~~ ^
1 error generated.

Any idea where we can get the correct projects.h?

dschneiderch commented 8 years ago

anyone figure this out?

turboladen commented 8 years ago

FWIW, I just brew edit saga-gis and replace the "Expected" hash with the "Actual" one and I'm able to install.

dschneiderch commented 8 years ago

didn't work for me but thanks

==> Installing saga-gis from osgeo/homebrew-osgeo4mac
==> Downloading https://downloads.sourceforge.net/project/saga-gis/SAGA%20-%202.1/SAGA%202.1.2/saga_2.1.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/saga-gis-2.1.2.tar.gz
==> Downloading http://trac.osgeo.org/proj/export/2409/branches/4.8/proj/src/projects.h
Already downloaded: /Library/Caches/Homebrew/saga-gis--projects-4.8.0.h
==> autoreconf -i
==> ./configure --prefix=/usr/local/Cellar/saga-gis/2.1.2 --disable-openmp
==> make install
Last 15 lines from /Users/dosc3612/Library/Logs/Homebrew/saga-gis/03.make:
PAFile pj_open_lib(projCtx, const char *, const char *);
~~~~~~ ^
1 error generated.
make[4]: *** [crs_transform.lo] Error 1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c crs_assign.cpp -o crs_assign.o >/dev/null 2>&1
1 error generated.
make[4]: *** [crs_base.lo] Error 1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c crs_indicatrix.cpp -o crs_indicatrix.o >/dev/null 2>&1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c crs_transform_shapes.cpp -o crs_transform_shapes.o >/dev/null 2>&1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c gcs_graticule.cpp -o gcs_graticule.o >/dev/null 2>&1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c  crs_transform_grid.cpp -o crs_transform_grid.o >/dev/null 2>&1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1 
make: *** [install-recursive] Error 1
turboladen commented 8 years ago

Actually, you're right @dschneiderch --I was thinking of my experience with saga probably something like a year ago. Even after changing the hash value, I haven't been able to install for months. I'm on OSX 10.11.1, but haven't been able install since 10.10.x. My backtrace is almost the same as what you get:

~ ❯ brew install saga-gis                                                                                                                                                                                                                                                                                                                                      [ruby-2.2.2]
==> Installing saga-gis from osgeo/homebrew-osgeo4mac
==> Downloading https://downloads.sourceforge.net/project/saga-gis/SAGA%20-%202.1/SAGA%202.1.2/saga_2.1.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/saga-gis-2.1.2.tar.gz
==> Downloading http://trac.osgeo.org/proj/export/2409/branches/4.8/proj/src/projects.h
Already downloaded: /Library/Caches/Homebrew/saga-gis--projects-4.8.0.h
==> autoreconf -i
==> ./configure --prefix=/usr/local/Cellar/saga-gis/2.1.2 --disable-openmp
==> make install
Last 15 lines from /Users/sloveless/Library/Logs/Homebrew/saga-gis/03.make:
make[4]: *** [crs_transform.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
1 error generated.
make[4]: *** [MLB_Interface.lo] Error 1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c crs_assign.cpp -o crs_assign.o >/dev/null 2>&1
1 error generated.
make[4]: *** [crs_base.lo] Error 1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c crs_transform_shapes.cpp -o crs_transform_shapes.o >/dev/null 2>&1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c crs_indicatrix.cpp -o crs_indicatrix.o >/dev/null 2>&1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c gcs_graticule.cpp -o gcs_graticule.o >/dev/null 2>&1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../.. -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -O2 -c crs_transform_grid.cpp -o crs_transform_grid.o >/dev/null 2>&1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
dakcarto commented 8 years ago

Formula updated to 2.2.7. Please try now.

turboladen commented 8 years ago

Works for me!

On Apr 17, 2016, at 3:31 PM, Larry Shaffer notifications@github.com wrote:

Formula updated to 2.2.7. Please try now.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/OSGeo/homebrew-osgeo4mac/issues/108#issuecomment-211124650

dakcarto commented 8 years ago

Closing. Please reopen if needed.