<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>the note about GO111MODULE was added a while ago in the README of
      secsipidx project:</p>
    <p>  * <a class="moz-txt-link-freetext" href="https://github.com/asipto/secsipidx#installation">https://github.com/asipto/secsipidx#installation</a></p>
    <p>I will add a note in the module readme as well.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 11.05.21 16:30, David Villasmil
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFGRPVroJP0u+GtPfA2neZDJyJj4VTYA1O-pR44VS=2ouNA3rQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello Arsen,
        <div><br>
        </div>
        <div>Thanks for replying. That was it!</div>
        <div>Should that detail be added to the doc? a lot of people
          wanting to use that are not seasoned Go devs.</div>
        <div><br>
        </div>
        <div><a class="gmail_plusreply" id="plusReplyChip-0"
            href="mailto:miconda@gmail.com" tabindex="-1"
            moz-do-not-send="true">@Daniel-Constantin Mierla</a>  ?<br>
        </div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>Regards,</div>
                <div><br>
                </div>
                David Villasmil
                <div>email: <a
                    href="mailto:david.villasmil.work@gmail.com"
                    target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
                <div>phone: +34669448337</div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, May 11, 2021 at 2:48
          PM Arsen Semenov <<a href="mailto:arsperger@gmail.com"
            moz-do-not-send="true">arsperger@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Hi David,
            <div><br>
            </div>
            <div>seems you are using Go with Go modules support enabled.<br>
              secsipidx does not support go modules, make sure you have
              environment variable GO111MODULE set to off and then
              download the module by executing "go get <a
                href="http://github.com/asipto/secsipidx"
                target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx</a>"<br>
              <br>
              it should be downloaded in your $GOPATH <br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, May 11, 2021 at
              6:21 PM David Villasmil <<a
                href="mailto:david.villasmil.work@gmail.com"
                target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">Hello guys,
                <div><br>
                </div>
                <div>I'm trying to use secsipid as per <a
                    href="https://kamailio.org/docs/modules/5.5.x/modules/secsipid.html"
                    target="_blank" moz-do-not-send="true">https://kamailio.org/docs/modules/5.5.x/modules/secsipid.html</a></div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>I just installed go on a new vm:</div>
                <div><br>
                </div>
                <div>the env is as follows:</div>
                <div><font face="monospace"># env<br>
                    GOPATH=/root/go<br>
                  </font></div>
                <div><br>
                </div>
                <div>then:</div>
                <div><br>
                </div>
                <div><font face="monospace">~# go get <a
                      href="http://github.com/asipto/secsipidx"
                      target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx</a><br>
                  </font></div>
                <div><font face="monospace">~#</font></div>
                <div><br>
                </div>
                <div>Then:</div>
                <div><br>
                </div>
                <div><font face="monospace">~# cd $GOPATH/src/<a
                      href="http://github.com/asipto/secsipidx/csecsipid/"
                      target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx/csecsipid/</a><br>
                    bash: cd: /root/go/src/<a
                      href="http://github.com/asipto/secsipidx/csecsipid/"
                      target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx/csecsipid/</a>:
                    No such file or directory<br>
                  </font></div>
                <div><br>
                </div>
                <div>it looks like it's not downloaded where the
                  documentation says.</div>
                <div>It is however in:<br>
                </div>
                <div><br>
                </div>
                <div>go<br>
                  |-- bin<br>
                  `-- pkg<br>
                      |-- mod<br>
                      |   |-- cache<br>
                      |   |   `-- download<br>
                      |   |       |-- <a href="http://github.com"
                    target="_blank" moz-do-not-send="true">github.com</a><br>
                      |   |       |   |-- asipto<br>
                      |   |       |   |   `-- secsipidx<br>
                      |   |       |   |       `-- @v<br>
                      |   |       |   `-- google<br>
                      |   |       |       `-- uuid<br>
                      |   |       |           `-- @v<br>
                      |   |       `-- sumdb<br>
                      |   |           `-- <a
                    href="http://sum.golang.org" target="_blank"
                    moz-do-not-send="true">sum.golang.org</a><br>
                      |   |               |-- lookup<br>
                      |   |               |   `-- <a
                    href="http://github.com" target="_blank"
                    moz-do-not-send="true">github.com</a><br>
                      |   |               |       |-- asipto<br>
                      |   |               |       `-- google<br>
                      |   |               `-- tile<br>
                      |   |                   `-- 8<br>
                      |   |                       |-- 0<br>
                      |   |                       |   |-- x010<br>
                      |   |                       |   |-- x011<br>
                      |   |                       |   `-- x016<br>
                      |   |                       |       `-- 560.p<br>
                      |   |                       |-- 1<br>
                      |   |                       |   `-- 064.p<br>
                      |   |                       `-- 2<br>
                      |   |                           `-- 000.p<br>
                      |   `-- <a href="http://github.com"
                    target="_blank" moz-do-not-send="true">github.com</a><br>
                      |       |-- asipto<br>
                      |       |   `-- <a class="moz-txt-link-abbreviated" href="mailto:secsipidx@v1.0.0">secsipidx@v1.0.0</a><br>
                      |       |       |-- csecsipid<br>
                      |       |       `-- secsipid<br>
                      |       `-- google<br>
                      |           `-- <a class="moz-txt-link-abbreviated" href="mailto:uuid@v1.2.0">uuid@v1.2.0</a><br>
                      `-- sumdb<br>
                          `-- <a href="http://sum.golang.org"
                    target="_blank" moz-do-not-send="true">sum.golang.org</a><br>
                  <br>
                  38 directories<br>
                </div>
                <div><br>
                </div>
                <div>But going into <font face="monospace">~/go/pkg/mod/<a
href="http://github.com/asipto/secsipidx@v1.0.0/csecsipid"
                      target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx@v1.0.0/csecsipid</a></font></div>
                <div>we have:</div>
                <div><br>
                </div>
                <div><font face="monospace">~/go/pkg/mod/<a
                      href="http://github.com/asipto/secsipidx@v1.0.0/csecsipid#"
                      target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx@v1.0.0/csecsipid#</a>
                    ls -l<br>
                    total 16<br>
                    -r--r--r-- 1 root root  231 May 11 13:14 Makefile<br>
                    -r--r--r-- 1 root root 1778 May 11 13:14
                    csecsipid.go<br>
                    -r--r--r-- 1 root root 1988 May 11 13:14
                    libsecsipid.h<br>
                    -r--r--r-- 1 root root  120 May 11 13:14 secsipid.h<br>
                  </font></div>
                <div><br>
                </div>
                <div>The Makefile contains the proper liba:</div>
                <div><br>
                </div>
                <div><font face="monospace"># Makefile to build
                    libraries<br>
                    #<br>
                    <br>
                    all: libso<br>
                    <br>
                    libso:<br>
                    go build -o libsecsipid.so -buildmode=c-shared
                    csecsipid.go<br>
                    <br>
                    liba:<br>
                    go build -o libsecsipid.a -buildmode=c-archive
                    csecsipid.go<br>
                    <br>
                    clean:<br>
                    rm -f libsecsipid.so<br>
                    rm -f linsecsipid.a<br>
                  </font></div>
                <div><br>
                </div>
                <div>But "make liba" returns:</div>
                <div><br>
                </div>
                <div><font face="monospace"># make liba<br>
                    go build -o libsecsipid.a -buildmode=c-archive
                    csecsipid.go<br>
                    csecsipid.go:6:2: no required module provides
                    package <a
                      href="http://github.com/asipto/secsipidx/secsipid"
                      target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx/secsipid</a>:
                    go.mod file not found in current directory or any
                    parent directory; see 'go help modules'<br>
                    make: *** [Makefile:10: liba] Error 1</font><br>
                </div>
                <div><br>
                </div>
                <div>Obviously not a "go" guy here.</div>
                <div><br>
                </div>
                <div>What am I doing wrong?</div>
                <div><br>
                </div>
                <div>Thanks for your help!</div>
                <div><br>
                </div>
                <div>
                  <div>
                    <div dir="ltr">
                      <div dir="ltr">David Villasmil
                        <div>email: <a
                            href="mailto:david.villasmil.work@gmail.com"
                            target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
                        <div>phone: +34669448337</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              __________________________________________________________<br>
              Kamailio - Users Mailing List - Non Commercial Discussions<br>
                * <a href="mailto:sr-users@lists.kamailio.org"
                target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
              Important: keep the mailing list in the recipients, do not
              reply only to the sender!<br>
              Edit mailing list options or unsubscribe:<br>
                * <a
                href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </div>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr">
            <div dir="ltr">
              <div>Arsen Semenov<br>
              </div>
              <div><br>
              </div>
            </div>
          </div>
          __________________________________________________________<br>
          Kamailio - Users Mailing List - Non Commercial Discussions<br>
            * <a href="mailto:sr-users@lists.kamailio.org"
            target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
          Important: keep the mailing list in the recipients, do not
          reply only to the sender!<br>
          Edit mailing list options or unsubscribe:<br>
            * <a
            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>