Closed nextstopsun closed 8 years ago
I'm getting this too.
Me to when doing brew install qgis-28 --with-saga-gis
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
?
anyone figure this out?
FWIW, I just brew edit saga-gis
and replace the "Expected" hash with the "Actual" one and I'm able to install.
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
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
Formula updated to 2.2.7. Please try now.
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
Closing. Please reopen if needed.
I get a SHA1 mismatch on
projects.h
file when trying to install saga-gis.