On Tue, 28 Mar 2017 02:33:14 -0700 (PDT), Chiara Marmo wrote:
>
> $ sudo find / -name mod_rasterlite2.so -print
> /usr/lib64/mod_rasterlite2.so
> /usr/local/lib/mod_rasterlite2.so
> /home/centos/software/librasterlite2/src/.libs/mod_rasterlite2.so
>
> /usr/lib64/mod_rasterlite2.so is a symbolic link to
> /usr/local/lib/mod_rasterlite2.so
> /home/centos/software/librasterlite2/src/.libs/mod_rasterlite2.so is
> the compiled version before installation on standard path.
> Just to be sure I have loaded the absolute path of the 'true' files
> (I
> mean not linked) but nothing changes...
> I'm open to any suggestions.. :)
>
Chiara,
RL2_SetRasterCoverageInfos() works as expected on both Fedora
and Windows (using binaries built from the latest sources);
so we can reasonably exclude any code defect.
anyway on your CentOS an error message "no such function:
RL2_SetRasterCoverageInfos" is unexpectedly returned, and
we should now discover why it happens.
hypothesis #1
-------------
for some unknown reason loading mod_rasterlite2 failed.
you can easily check if this is your case by executing
few SQL statements:
SELECT rl2_version();
SELECT rl2_target_cpu();
SELECT rl2_has_codec_jpeg();
SELECT RL2_GetMaxThreads();
case #1.A: if all the above statements will return
an error like "no such function: xxxxx" this will
surely mean that mod_rasterlite2 hasn't been loaded
(and we'll be required to discover why).
case #1.B: anything runs smoothly as expected, but
RL2_SetRasterCoverageInfos() still fails.
in this case there is a reasonable suspect
that the mod_rasterlite2.so being loaded does
not corresponds to the source's latest version.
hypothesis #2
-------------
inadvertently using an obsolete mod_rasterlite2.
you can check this shell command:
nm <absolute_path_to_mod_rasterlite2.so> |
grep fnct_SetRasterCoverageInfos
the expected output should be something like:
0000000000001112f6 t fnct_SetRasterCoverageInfos
note: you must install rasterlite2 by executing
"make install" and not "make install-strip" (this
second will remove all internal symbols from
the installed library)
case #2.A: "nm" returns nothing; this surely means
that mod_rasterlite2.so does not correspond
to the latest sources (probably something
gone wrong during the build process).
hint: carefully remove all sources and binaries
(revert back to a clean system), then try again
to rebuild and install rasterlite2.
case #2.B: "nm" confirms that the link symbol
"fnct_SetRasterCoverageInfos" is effectively
defined within mod_rasterlite2 but calling
the corresponding SQL function will continue
to fail ... OMG: quickly call an exorcist for
assistance: your CentOS is bewitched :-D
bye Sandro