paamand / GDAL4Android

Building GDAL as a *.AAR for android
Other
59 stars 25 forks source link

install.sh script results in rpc/rpc.h not found errors #19

Open piceaglauca opened 3 years ago

piceaglauca commented 3 years ago

~/piceadev/android/GDAL/gdal% ./../submodules/install.sh ~/piceadev/android/sdk/ndk-bundle 24 2>&1 | tee install.log install.log

See below for summary of errors. I tried symlinking /usr/include/rpc into /usr/include/ogdi, which solved the rpc/rpc.h not found error, but then there were a bunch of unknown type errors: quad_t, u_quad_t

% uname -a Linux hostname 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Results in the following errors:

~/piceadev/android/GDAL/gdal% grep error: install.log
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
libtool:   error: 'lib*jni.la' is not a valid libtool archive
clang: error: no such file or directory: './.libs/libproj.so'
clang: error: no such file or directory: './.libs/libproj.so'
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
libtool:   error: 'lib*jni.la' is not a valid libtool archive
clang: error: no such file or directory: './.libs/libproj.so'
clang: error: no such file or directory: './.libs/libproj.so'
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
libtool:   error: 'lib*jni.la' is not a valid libtool archive
clang: error: no such file or directory: './.libs/libproj.so'
clang: error: no such file or directory: './.libs/libproj.so'
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
libtool:   error: 'lib*jni.la' is not a valid libtool archive
clang: error: no such file or directory: './.libs/libproj.so'
clang: error: no such file or directory: './.libs/libproj.so'

With lines of context:

~/piceadev/android/GDAL/gdal% grep -n -C 3 error: install.log
12025-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -stdlib=libc++  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
12026-In file included from ogrogdidriver.cpp:30:
12027-In file included from ./ogrogdi.h:40:
12028:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
12029-#include <rpc/rpc.h>
12030-         ^~~~~~~~~~~
12031-1 error generated.
--
12587-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -stdlib=libc++  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
12588-In file included from ogrogdidriver.cpp:30:
12589-In file included from ./ogrogdi.h:40:
12590:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
12591-#include <rpc/rpc.h>
12592-         ^~~~~~~~~~~
12593-1 error generated.
--
12618-make: *** [../SWIGmake.base:10: gdal_wrap.cpp] Error 127
12619-Usage: /home/scott/piceadev/android/GDAL/gdal/../submodules/gdal/gdal/libtool [OPTION]... [MODE-ARG]...
12620-Try 'libtool --help' for more information.
12621:libtool:   error: 'lib*jni.la' is not a valid libtool archive
12622-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86/lib/lib*jni.so': No such file or directory
12623-Running aclocal
12624-Running autoheader
--
13929-libtool: link: ( cd ".libs" && rm -f "libproj.la" && ln -s "../libproj.la" "libproj.la" )
13930-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
13931-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86/lib
13932:clang: error: no such file or directory: './.libs/libproj.so'
13933-make[2]: *** [Makefile:954: proj] Error 1
13934-make[2]: Leaving directory '/home/scott/piceadev/android/GDAL/submodules/proj4/src'
13935-make[1]: *** [Makefile:779: all] Error 2
--
13937-make: *** [Makefile:450: all-recursive] Error 1
13938-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
13939-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86/lib
13940:clang: error: no such file or directory: './.libs/libproj.so'
13941-make: *** [Makefile:954: proj] Error 1
13942-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86/lib/libproj.so': No such file or directory
13943-#########  x86_64 : x86_64-linux-android  ##########
--
26214-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -stdlib=libc++  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
26215-In file included from ogrogdidriver.cpp:30:
26216-In file included from ./ogrogdi.h:40:
26217:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
26218-#include <rpc/rpc.h>
26219-         ^~~~~~~~~~~
26220-1 error generated.
--
26780-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -stdlib=libc++  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
26781-In file included from ogrogdidriver.cpp:30:
26782-In file included from ./ogrogdi.h:40:
26783:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
26784-#include <rpc/rpc.h>
26785-         ^~~~~~~~~~~
26786-1 error generated.
--
26811-make: *** [../SWIGmake.base:10: gdal_wrap.cpp] Error 127
26812-Usage: /home/scott/piceadev/android/GDAL/gdal/../submodules/gdal/gdal/libtool [OPTION]... [MODE-ARG]...
26813-Try 'libtool --help' for more information.
26814:libtool:   error: 'lib*jni.la' is not a valid libtool archive
26815-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86_64/lib/lib*jni.so': No such file or directory
26816-Running aclocal
26817-Running autoheader
--
28125-libtool: link: ( cd ".libs" && rm -f "libproj.la" && ln -s "../libproj.la" "libproj.la" )
28126-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
28127-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86_64/lib
28128:clang: error: no such file or directory: './.libs/libproj.so'
28129-make[2]: *** [Makefile:954: proj] Error 1
28130-make[2]: Leaving directory '/home/scott/piceadev/android/GDAL/submodules/proj4/src'
28131-make[1]: *** [Makefile:779: all] Error 2
--
28133-make: *** [Makefile:450: all-recursive] Error 1
28134-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
28135-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86_64/lib
28136:clang: error: no such file or directory: './.libs/libproj.so'
28137-make: *** [Makefile:954: proj] Error 1
28138-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/x86_64/lib/libproj.so': No such file or directory
28139-#########  armeabi-v7a : armv7a-linux-androideabi  ##########
--
40132-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -mthumb  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
40133-In file included from ogrogdidriver.cpp:30:
40134-In file included from ./ogrogdi.h:40:
40135:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
40136-#include <rpc/rpc.h>
40137-         ^~~~~~~~~~~
40138-1 error generated.
--
40694-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -mthumb  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
40695-In file included from ogrogdidriver.cpp:30:
40696-In file included from ./ogrogdi.h:40:
40697:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
40698-#include <rpc/rpc.h>
40699-         ^~~~~~~~~~~
40700-1 error generated.
--
40725-make: *** [../SWIGmake.base:10: gdal_wrap.cpp] Error 127
40726-Usage: /home/scott/piceadev/android/GDAL/gdal/../submodules/gdal/gdal/libtool [OPTION]... [MODE-ARG]...
40727-Try 'libtool --help' for more information.
40728:libtool:   error: 'lib*jni.la' is not a valid libtool archive
40729-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/armeabi-v7a/lib/lib*jni.so': No such file or directory
40730-Running aclocal
40731-Running autoheader
--
42036-libtool: link: ( cd ".libs" && rm -f "libproj.la" && ln -s "../libproj.la" "libproj.la" )
42037-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -mthumb -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
42038-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -mthumb -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/armeabi-v7a/lib
42039:clang: error: no such file or directory: './.libs/libproj.so'
42040-make[2]: *** [Makefile:954: proj] Error 1
42041-make[2]: Leaving directory '/home/scott/piceadev/android/GDAL/submodules/proj4/src'
42042-make[1]: *** [Makefile:779: all] Error 2
--
42044-make: *** [Makefile:450: all-recursive] Error 1
42045-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -mthumb -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
42046-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -mthumb -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/armeabi-v7a/lib
42047:clang: error: no such file or directory: './.libs/libproj.so'
42048-make: *** [Makefile:954: proj] Error 1
42049-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/armeabi-v7a/lib/libproj.so': No such file or directory
42050-#########  arm64-v8a : aarch64-linux-android  ##########
--
54208-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -stdlib=libc++  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
54209-In file included from ogrogdidriver.cpp:30:
54210-In file included from ./ogrogdi.h:40:
54211:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
54212-#include <rpc/rpc.h>
54213-         ^~~~~~~~~~~
54214-1 error generated.
--
54770-/bin/bash /home/scott/piceadev/android/GDAL/submodules/gdal/gdal/libtool --mode=compile --silent --tag=CXX /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gcore -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/alg -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/ogr/ogrsf_frmts -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/gnm -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/apps -stdlib=libc++  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/ogdi  -DGNM_ENABLED -I/home/scott/piceadev/android/GDAL/submodules/gdal/gdal/port  -DGDAL_COMPILATION -c -o ../o/ogrogdidriver.lo ogrogdidriver.cpp
54771-In file included from ogrogdidriver.cpp:30:
54772-In file included from ./ogrogdi.h:40:
54773:/usr/include/ogdi/ecs.h:9:10: fatal error: 'rpc/rpc.h' file not found
54774-#include <rpc/rpc.h>
54775-         ^~~~~~~~~~~
54776-1 error generated.
--
54801-make: *** [../SWIGmake.base:10: gdal_wrap.cpp] Error 127
54802-Usage: /home/scott/piceadev/android/GDAL/gdal/../submodules/gdal/gdal/libtool [OPTION]... [MODE-ARG]...
54803-Try 'libtool --help' for more information.
54804:libtool:   error: 'lib*jni.la' is not a valid libtool archive
54805-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/arm64-v8a/lib/lib*jni.so': No such file or directory
54806-Running aclocal
54807-Running autoheader
--
56115-libtool: link: ( cd ".libs" && rm -f "libproj.la" && ln -s "../libproj.la" "libproj.la" )
56116-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
56117-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/arm64-v8a/lib
56118:clang: error: no such file or directory: './.libs/libproj.so'
56119-make[2]: *** [Makefile:954: proj] Error 1
56120-make[2]: Leaving directory '/home/scott/piceadev/android/GDAL/submodules/proj4/src'
56121-make[1]: *** [Makefile:779: all] Error 2
--
56123-make: *** [Makefile:450: all-recursive] Error 1
56124-/bin/bash ../libtool  --tag=CC   --mode=link /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1   -o proj proj.o gen_cheb.o p_series.o libproj.la -lm 
56125-libtool: link: /home/scott/piceadev/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DHAVE_C99_MATH=1 -o .libs/proj proj.o gen_cheb.o p_series.o  ./.libs/libproj.so -lm -L/home/scott/piceadev/android/GDAL/gdal/../submodules/build/arm64-v8a/lib
56126:clang: error: no such file or directory: './.libs/libproj.so'
56127-make: *** [Makefile:954: proj] Error 1
56128-cp: cannot stat '/home/scott/piceadev/android/GDAL/gdal/../submodules/build/arm64-v8a/lib/libproj.so': No such file or directory
56129-mkdir: cannot create directory ‘/home/scott/piceadev/android/GDAL/gdal/src/main/cpp’: File exists
piceaglauca commented 3 years ago

After digging deeper, it looks as is rpc.h is not part of the NDK's version of libc6, and the install.sh script doesn't explicitly look for it in /usr/include/rpc or /usr/include/tirpc/rpc. If the script is modified to set those as explicit includes for OGDI, it errors out with the unknown type errors. Those types are specified in rpc/types.h, but only on Apple or FreeBSD architecture.

From /usr/include/rpc/types.h

 72 #if defined __APPLE_CC__ || defined __FreeBSD__
 73 # define __u_char_defined
 74 # define __daddr_t_defined
 75 #endif
 76 
 77 #ifndef __u_char_defined
 78 typedef __u_char u_char;
 79 typedef __u_short u_short;
 80 typedef __u_int u_int;
 81 typedef __u_long u_long;
 82 typedef __quad_t quad_t;
 83 typedef __u_quad_t u_quad_t;
 84 typedef __fsid_t fsid_t;
 85 # define __u_char_defined
 86 #endif