librasterlite2 make fails

38 views
Skip to first unread message

Caiden Kehrer

unread,
Aug 18, 2022, 1:13:43 PM8/18/22
to SpatiaLite Users
So I have done ./configure which seemed to make it through with no issues. 

However, when I run make I get this error.
rl2auxgeom.c:861:24: error: 'GAIA_TINYPOINT_LITTLE_ENDIAN' undeclared (first use in this function); did you mean 'GAIA_LITTLE_ENDIAN'?
  861 |     if (*(blob + 1) == GAIA_TINYPOINT_LITTLE_ENDIAN)
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        GAIA_LITTLE_ENDIAN
rl2auxgeom.c:861:24: note: each undeclared identifier is reported only once for each function it appears in
rl2auxgeom.c:863:29: error: 'GAIA_TINYPOINT_BIG_ENDIAN' undeclared (first use in this function)
  863 |     else if (*(blob + 1) == GAIA_TINYPOINT_BIG_ENDIAN)
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
rl2auxgeom.c:872:12: error: 'GAIA_TINYPOINT_XYZ' undeclared (first use in this function)
  872 |       case GAIA_TINYPOINT_XYZ:
      |            ^~~~~~~~~~~~~~~~~~
rl2auxgeom.c:876:12: error: 'GAIA_TINYPOINT_XYM' undeclared (first use in this function)
  876 |       case GAIA_TINYPOINT_XYM:
      |            ^~~~~~~~~~~~~~~~~~
rl2auxgeom.c:880:12: error: 'GAIA_TINYPOINT_XYZM' undeclared (first use in this function); did you mean 'GAIA_POINTZM'?
  880 |       case GAIA_TINYPOINT_XYZM:
      |            ^~~~~~~~~~~~~~~~~~~
      |            GAIA_POINTZM
rl2auxgeom.c: In function 'rl2_geometry_from_blob':
rl2auxgeom.c:2006:24: error: 'GAIA_TINYPOINT_LITTLE_ENDIAN' undeclared (first use in this function); did you mean 'GAIA_LITTLE_ENDIAN'?
 2006 |        (*(blob + 1) == GAIA_TINYPOINT_LITTLE_ENDIAN
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        GAIA_LITTLE_ENDIAN
rl2auxgeom.c:2007:27: error: 'GAIA_TINYPOINT_BIG_ENDIAN' undeclared (first use in this function)
 2007 |         || *(blob + 1) == GAIA_TINYPOINT_BIG_ENDIAN)
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:667: rl2auxgeom.lo] Error 1
make[2]: Leaving directory '/home/caidenlinux/librasterlite/src'
make[1]: *** [Makefile:492: all-recursive] Error 1
make[1]: Leaving directory '/home/caidenlinux/librasterlite'
make: *** [Makefile:399: all] Error 2

I have tried updating all of the packages. I am fairly new to this and cant seem to find anything that tells me what the issue actually is. 

Thank you in advance!

Caiden Kehrer

unread,
Aug 18, 2022, 1:30:27 PM8/18/22
to SpatiaLite Users
I ran make clean and then re-ran make -j8 and still get the above error.

a.fu...@lqt.it

unread,
Aug 19, 2022, 1:52:26 AM8/19/22
to spatiali...@googlegroups.com
On Thu, 18 Aug 2022 10:13:43 -0700 (PDT), Caiden Kehrer wrote:
> So I have done ./configure which seemed to make it through with no
> issues.
>
> However, when I run make I get this error.
> rl2auxgeom.c:861:24: error: 'GAIA_TINYPOINT_LITTLE_ENDIAN' undeclared
>

Hi Caiden,

I've just tested it on both Fedora and Debian and it builds nicely
without any error.

going in further depth:

the constant GAIA_TINYPOINT_LITTLE_ENDIAN is defined into the
"gg_const.h" header of libspatialite, and if you look at the
very beginning of the "rl2auxgeom.c" source you'll find this
declaration:

#include <spatialite/gg_const.h>

from your error log I dont't see any complaints about missing
"gg_cost.h", so I presume that it exists but it's not the
latest version.


> I ran make clean and then re-ran make -j8 and still get the above
> error.
>

"make clean" simply cleans all the objects files (*.o) and alike
(static and dynamic libraries, binary executables).

in order to completely clean the configuration including any
Makefile you should use instead "make distclean" first and
then re-run again "./configure"

a more general approach: try the following command from the
shell (possibly with root permissions):

find / -name gg_const.h -print

so to check if there are multiple copies of the header file
causing unwanted interferences.

bye Sandro
Reply all
Reply to author
Forward
0 new messages