<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I don't confirm this. Your test case works fine for me with 8.1.0
      and a few later versions<br>
    </p>
    <p>$ g++ test.cpp -o mytest -I/home/even/install-proj-8.1.0/include
      -L/home/even/install-proj-8.1.0/lib -lproj<br>
      $ LD_LIBRARY_PATH=/home/even/install-proj-8.1.0/lib ldd mytest |
      grep proj<br>
          libproj.so.22 =>
      /home/even/install-proj-8.1.0/lib/libproj.so.22
      (0x00007f6d7f059000)<br>
      $ PROJ_LIB=/tmp/foo
      LD_LIBRARY_PATH=/home/even/install-proj-8.1.0/lib ./mytest<br>
      proj searchpath: /home/even/.local/share/proj:/tmp/foo<br>
      <br>
    </p>
    <div class="moz-cite-prefix">Le 05/10/2022 à 22:44, Tom O'Reilly a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:1619354296.13205683.1665002651115.JavaMail.zimbra@mbari.org">
      <div id="zimbraEditorContainer" class="4">
        <div>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 11.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">How exactly is $PROJ_LIB intended
              to alter the PJ_INFO.searchpath? It appears to behave
              differently between PROJ-7.1.0 and PROJ-8.1.0:</span></p>
          <ul data-mce-style="margin-top: 0; margin-bottom: 0;
            padding-inline-start: 48px;">
            <li dir="ltr" aria-level="1"
              data-mce-style="list-style-type: disc; font-size: 11.5pt;
              font-family: 'Courier New'; color: #222222;
              background-color: transparent; font-weight: 400;
              font-style: normal; font-variant: normal; text-decoration:
              none; vertical-align: baseline; white-space: pre;">
              <p dir="ltr" role="presentation"
                data-mce-style="line-height: 1.2; margin: 0px;"><span
                  data-mce-style="font-size: 11.5pt; font-family:
                  'Courier New'; color: #222222; background-color:
                  #ffffff; font-weight: 400; font-style: normal;
                  font-variant: normal; text-decoration: none;
                  vertical-align: baseline; white-space: pre-wrap;">PROJ-7.1.0
                </span><span data-mce-style="font-size: 11.5pt;
                  font-family: 'Courier New'; color: #222222;
                  background-color: #ffffff; font-weight: 400;
                  font-style: normal; font-variant: normal;
                  text-decoration: underline;
                  -webkit-text-decoration-skip: none;
                  text-decoration-skip-ink: none; vertical-align:
                  baseline; white-space: pre-wrap;">replaces</span><span
                  data-mce-style="font-size: 11.5pt; font-family:
                  'Courier New'; color: #222222; background-color:
                  #ffffff; font-weight: 400; font-style: normal;
                  font-variant: normal; text-decoration: none;
                  vertical-align: baseline; white-space: pre-wrap;"> the
                  last element of PJ_INFO.searchpath with $PROJ_LIB</span></p>
            </li>
            <li dir="ltr" aria-level="1"
              data-mce-style="list-style-type: disc; font-size: 11.5pt;
              font-family: 'Courier New'; color: #222222;
              background-color: transparent; font-weight: 400;
              font-style: normal; font-variant: normal; text-decoration:
              none; vertical-align: baseline; white-space: pre;">
              <p dir="ltr" role="presentation"
                data-mce-style="line-height: 1.2; margin: 0px;"><span
                  data-mce-style="font-size: 11.5pt; font-family:
                  'Courier New'; color: #222222; background-color:
                  #ffffff; font-weight: 400; font-style: normal;
                  font-variant: normal; text-decoration: none;
                  vertical-align: baseline; white-space: pre-wrap;">PROJ-8.1.0
                  does not add the contents of $PROJ_LIB environment
                  variable to PJ_INFO.searchpath. </span></p>
            </li>
          </ul>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 11.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;"><br data-mce-bogus="1">
            </span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 11.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">(These are the only two PROJ
              versions I've tested so far)</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 11.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">I determined this behavior from
              this simple program:</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 11.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;"><br data-mce-bogus="1">
            </span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 9.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">#include <iostream></span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 9.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">#include <proj.h></span></p>
          <b data-mce-style="font-weight: normal;"><br>
          </b>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 9.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">int main(int argc, char **argv) {</span></p>
          <b data-mce-style="font-weight: normal;"><br>
          </b>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 9.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">  PJ_INFO projInfo = proj_info();</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 9.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">  std::cerr << "proj
              searchpath: " << projInfo.searchpath <<
              std::endl;  </span></p>
          <b data-mce-style="font-weight: normal;"><br>
          </b>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 9.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">  return 0;</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 11.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">}</span></p>
          <b data-mce-style="font-weight: normal;"><br>
          </b>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 11.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;"> </span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">PROJ-7.1.0, PROJ_LIB not set:</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">proj searchpath:
              /home/oreilly/.local/share/proj:/usr/local/share/proj</span></p>
          <b data-mce-style="font-weight: normal;"><br>
          </b>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">PROJ-7.1.0, PROJ_LIB=/tmp/mystuff:</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">proj searchpath:
              /home/oreilly/.local/share/proj:/tmp/mystuff</span></p>
          <b data-mce-style="font-weight: normal;"><br>
          </b>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">PROJ-8.1.0, PROJ_LIB not set:</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">proj searchpath:
              /home/oreilly/.local/share/proj</span></p>
          <b data-mce-style="font-weight: normal;"><br>
          </b>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">PROJ-8.1.0, PROJ_LIB=/tmp/mystuff:</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #000000; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">proj searchpath:
              /home/oreilly/.local/share/proj</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;"><br data-mce-bogus="1">
            </span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">Are there bugs in how PROJ_LIB is
              handled? What is the intended effect of PROJ_LIB on
              searchpath?</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;"><br data-mce-bogus="1">
            </span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">Thanks,</span></p>
          <p dir="ltr" data-mce-style="line-height: 1.2; margin: 0px;"><span
              data-mce-style="font-size: 10.5pt; font-family: 'Courier
              New'; color: #222222; background-color: #ffffff;
              font-weight: 400; font-style: normal; font-variant:
              normal; text-decoration: none; vertical-align: baseline;
              white-space: pre-wrap;">Tom</span></p>
        </div>
        <div><br>
        </div>
        <div data-marker="__SIG_PRE__"><span
            data-mce-style="font-family: 'courier new', courier, monaco,
            monospace, sans-serif;">--------------------------------------------------</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">Thomas C. O'Reilly</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">Monterey Bay Aquarium
            Research Institute</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">7700 Sandholdt Road</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">Moss Landing, California
            95039-9644</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">831-775-1766 (voice)</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">831-775-1620 (FAX)</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;"><a class="moz-txt-link-abbreviated" href="mailto:oreilly@mbari.org">oreilly@mbari.org</a> (email)</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;"><a class="moz-txt-link-freetext" href="http://www.mbari.org">http://www.mbari.org</a>
            (World-wide Web)</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;"> </span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">"The machine does not
            isolate us from the great mysteries</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;"> of nature, but plunges us
            more deeply into them."</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;"> </span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">   - ANTOINE DE
            SAINT-EXUPERY</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;">     "Wind, Sand, and Stars"
            (1939)</span><br>
          <span data-mce-style="font-family: 'courier new', courier,
            monaco, monospace, sans-serif;"> </span></div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
PROJ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>