<span style=" font-size:10pt;font-family:sans-serif">Hello,</span><br><br><span style=" font-size:10pt;font-family:sans-serif">I have now tested
the static GDAL tools under Oracle 9, RHEL 9 and SLES 15. </span><br><span style=" font-size:10pt;font-family:sans-serif">Under all distributions
there were problems with the certificates when using ogrinfo.</span><br><br><span style=" font-size:10pt;font-family:sans-serif">ERROR 1: error
setting certificate file: /etc/ssl/certs/ca-certificates.crt</span><br><span style=" font-size:10pt;font-family:sans-serif">ERROR 1: Error
returned by server : error setting certificate file: /etc/ssl/certs/ca-certificates.crt
(77)</span><br><br><span style=" font-size:10pt;font-family:sans-serif">It looks like
gdal is looking for the certificates in a place that does not exist on
these systems.</span><br><span style=" font-size:10pt;font-family:sans-serif">Is this possibly
because I built GDAL under Linux Mint (Ubuntu) and now want to run it on
a "completely different" system?</span><br><br><span style=" font-size:10pt;font-family:sans-serif">I have been able
to solve the problem using a symbolic link to the correct certificates,
but I would still like to know what the problem is.</span><br><br><span style=" font-size:10pt;font-family:sans-serif">Michael<br></span><br><br><br><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Von:
</span><span style=" font-size:9pt;font-family:sans-serif">"Michael
Otto via gdal-dev" <gdal-dev@lists.osgeo.org></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">An:
</span><span style=" font-size:9pt;font-family:sans-serif">"Robert
Coup" <robert.coup@koordinates.com></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Kopie:
</span><span style=" font-size:9pt;font-family:sans-serif">gdal-dev@lists.osgeo.org,
"gdal-dev" <gdal-dev-bounces@lists.osgeo.org></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Datum:
</span><span style=" font-size:9pt;font-family:sans-serif">27.02.2024
14:58</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Betreff:
</span><span style=" font-size:9pt;font-family:sans-serif">[gdal-dev]
Antwort: Antwort: Re: Segmentation fault (core dumped) in gdal_translate
& ogrinfo & ogr2ogr</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Gesendet
von: </span><span style=" font-size:9pt;font-family:sans-serif">"gdal-dev"
<gdal-dev-bounces@lists.osgeo.org></span><br><hr noshade><br><br><br><span style=" font-size:10pt;font-family:sans-serif">Hello Robert,</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>I'm moving on.</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>I solved the problem with the missing certificates as follows.</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>$ apt update<br>$ apt upgrade</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>$ rm -f /etc/ssl/certs/ca-bundle.crt<br>$ apt reinstall ca-certificates<br>$ update-ca-certificates </span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>Now it also works under Ubuntu 20.04 ;o).</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>And the test continues.</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>Michael</span><span style=" font-size:12pt"><br><br><br><br></span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Von: </span><span style=" font-size:9pt;font-family:sans-serif">"Michael
Otto via gdal-dev" <gdal-dev@lists.osgeo.org></span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>An: </span><span style=" font-size:9pt;font-family:sans-serif">"Robert
Coup" <robert.coup@koordinates.com></span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Kopie: </span><span style=" font-size:9pt;font-family:sans-serif">gdal-dev@lists.osgeo.org</span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Datum: </span><span style=" font-size:9pt;font-family:sans-serif">27.02.2024
14:02</span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Betreff: </span><span style=" font-size:9pt;font-family:sans-serif">[gdal-dev]
Antwort: Re: Segmentation fault (core dumped) in gdal_translate & ogrinfo
& ogr2ogr</span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Gesendet von: </span><span style=" font-size:9pt;font-family:sans-serif">"gdal-dev"
<gdal-dev-bounces@lists.osgeo.org></span><span style=" font-size:12pt"><br></span><hr noshade><span style=" font-size:12pt"><br><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>Hello Robert,<br><br>I have now been able to find the error myself.<br><br>I forgot to set the proxy in the Docker container. After I added it, it
also worked under Fedora.<br><br>Now I'm stuck under Ubuntu 20.04. There comes the next error :o( :<br><br>ERROR 1: error setting certificate file: /etc/ssl/certs/ca-certificates.crt<br>ERROR 1: Error returned by server : error setting certificate file: /etc/ssl/certs/ca-certificates.crt
(77)<br>ogrinfo failed - unable to open 'WFS:</span><a href="https://........'/"><span style=" font-size:10pt;color:blue;font-family:sans-serif"><u>https://........'</u></span></a><span style=" font-size:10pt;font-family:sans-serif">.<br><br>Michael<br><br>PS:<br>I built Gdal under Linux Mint 21.3 (Virginia).<br>The host system for the Docker containers is Ubuntu 22.04.3 LTS (Jammy
Jellyfish).</span><span style=" font-size:12pt"><br><br><br></span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br><br>Von: </span><span style=" font-size:9pt;font-family:sans-serif">"Robert
Coup" <robert.coup@koordinates.com></span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>An: </span><span style=" font-size:9pt;font-family:sans-serif">"Michael
Otto" <michael.otto@data-experts.de></span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Kopie: </span><span style=" font-size:9pt;font-family:sans-serif">gdal-dev@lists.osgeo.org</span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Datum: </span><span style=" font-size:9pt;font-family:sans-serif">27.02.2024
13:14</span><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif"><br>Betreff: </span><span style=" font-size:9pt;font-family:sans-serif">Re:
[gdal-dev] Segmentation fault (core dumped) in gdal_translate & ogrinfo
& ogr2ogr</span><span style=" font-size:12pt"><br></span><hr noshade><span style=" font-size:12pt"><br><br><br>Hi Michael,<br><br>On Tue, 27 Feb 2024 at 11:40, Michael Otto via gdal-dev <</span><a href="mailto:gdal-dev@lists.osgeo.org"><span style=" font-size:12pt;color:blue"><u>gdal-dev@lists.osgeo.org</u></span></a><span style=" font-size:12pt">>
wrote:</span><span style=" font-size:10pt;font-family:sans-serif"><br><br>with a lot of effort and support from this group I created a first static
version of GDAL (incl. the apps) under Linux x64 using vcpkg.</span><span style=" font-size:12pt"><br><br>Yay</span><span style=" font-size:10pt;font-family:sans-serif"><br><br>For testing I copied the built apps and the data files to different target
platforms and set the environment variables accordingly.<br>In a current Linux Mint VM and in an Alpine Linux 3.13 Docker container,
the command line calls worked perfectly.</span><span style=" font-size:12pt"><br><br>What system did you build gdal on/under?</span><span style=" font-size:10pt;font-family:sans-serif"><br><br>Under a Fedora Linux 39 Docker container (docker pull fedora, ...) an error
occurs when executing ogrinfo, ogr2ogr and gdal_translate (the other tools
were not tested):</span><span style=" font-size:12pt"><br><br>What's the host OS?</span><span style=" font-size:10pt;font-family:sans-serif"><br><br><br>>> Segmentation fault (core dumped)<br><br>Does anyone have an idea or know what the problem is?</span><span style=" font-size:12pt"><br><br>What does a backtrace from gdb produce?</span><tt><span style=" font-size:12pt"><br><br>$ gdb --args ogrinfo <br>... loading stuff<br>(gdb) run<br>...<br>Program received signal SIGSEGV, Segmentation fault.<br>0x12c0ffee in _a_function ()<br>(gdb) thread apply all backtrace<br>... the backtrace ...<br>(gdb) quit</span></tt><span style=" font-size:12pt"><br><br>Use the gdal tools from the </span><tt><span style=" font-size:12pt">installed/{platform}/tools/gdal/debug/</span></tt><span style=" font-size:12pt">vcpkg
build folder, they're more likely to produce readable traces.<br><br>Rob :)<br><br></span><tt><span style=" font-size:10pt"><br>_______________________________________________<br>gdal-dev mailing list<br>gdal-dev@lists.osgeo.org</span></tt><span style=" font-size:12pt;color:blue"><u><br></u></span><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"><tt><span style=" font-size:10pt;color:blue"><u>https://lists.osgeo.org/mailman/listinfo/gdal-dev</u></span></tt></a><span style=" font-size:12pt"><br><br></span><tt><span style=" font-size:10pt">_______________________________________________<br>gdal-dev mailing list<br>gdal-dev@lists.osgeo.org<br></span></tt><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"><tt><span style=" font-size:10pt">https://lists.osgeo.org/mailman/listinfo/gdal-dev</span></tt></a><tt><span style=" font-size:10pt"><br></span></tt><br><br><font face="sans-serif"></font>