<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#CCFFFF">
    <font size="+1">The reason it worked was I forgot to add LWGEOM=yes
      ./libspatialite.SlackBuild.  So my Spatiallite does not have the
      postgis link.<br>
      <br>
      error:<br>
      /tmp/SBo/SpatiaLite-0ff5d4bb96/src/.libs/libspatialite.so:
      undefined reference to `lw_vasprintf'</font><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 08/08/2018 02:38 PM, Kevin McCormick
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:4dfbcf62-0143-8703-7486-005a23c47041@fastmail.fm">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <font size="+1">The solution I used is in the
        libspatialite.Slackbuild file as modified:<br>
        #!/bin/sh<br>
        <br>
        # Slackware build script for SpatiaLite<br>
        # Copyright 2012-2015 Alexander Bruy <a
          class="moz-txt-link-rfc2396E"
          href="mailto:alexander.bruy@gmail.com" moz-do-not-send="true"><alexander.bruy@gmail.com></a><br>
        # All rights reserved.<br>
        #<br>
        # Redistribution and use of this script, with or without
        modification, is<br>
        # permitted provided that the following conditions are met:<br>
        #<br>
        # 1. Redistributions of this script must retain the above
        copyright<br>
        #    notice, this list of conditions and the following
        disclaimer.<br>
        #<br>
        #  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY
        EXPRESS OR IMPLIED<br>
        #  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
        WARRANTIES OF<br>
        #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED.  IN NO<br>
        #  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
        INCIDENTAL,<br>
        #  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        NOT LIMITED TO,<br>
        #  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        DATA, OR PROFITS;<br>
        #  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
        LIABILITY,<br>
        #  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
        NEGLIGENCE OR<br>
        #  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
        SOFTWARE, EVEN IF<br>
        #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br>
        <br>
        # ======<br>
        # SpatiaLite-0ff5d4bb96.tar.gz  
        0ff5d4bb96df117bfe53dc8ec8aae41be22d8732<br>
        # <a class="moz-txt-link-freetext"
href="https://www.gaia-gis.it/fossil/libspatialite/info/0ff5d4bb96df117b"
          moz-do-not-send="true">https://www.gaia-gis.it/fossil/libspatialite/info/0ff5d4bb96df117b</a><br>
        # comment: releasing 4.3.0 "stable" <br>
        #<br>
        # rename SpatiaLite-0ff5d4bb96.tar.gz to
        libspatialite-4.3.0.tar.gz<br>
        #  add variable PRGNAMDIR  (line 37 and 78)<br>
        # ======<br>
        PRGNAM=libspatialite<br>
        VERSION=${VERSION:-4.3.0}<br>
        BUILD=${BUILD:-1}<br>
        TAG=${TAG:-_SBo}<br>
        #<br>
        PRGNAMDIR=SpatiaLite-0ff5d4bb96<br>
        #<br>
        if [ -z "$ARCH" ]; then<br>
          case "$( uname -m )" in<br>
            i?86) ARCH=i486 ;;<br>
            arm*) ARCH=arm ;;<br>
               *) ARCH=$( uname -m ) ;;<br>
          esac<br>
        fi<br>
        <br>
        CWD=$(pwd)<br>
        TMP=${TMP:-/tmp/SBo}<br>
        PKG=$TMP/package-$PRGNAM<br>
        OUTPUT=${OUTPUT:-/tmp}<br>
        <br>
        if [ "$LWGEOM" = "yes" ] ; then<br>
            LWGEOM_SUPPORT="--enable-lwgeom"<br>
        fi<br>
        <br>
        if [ "$ARCH" = "i486" ]; then<br>
          SLKCFLAGS="-O2 -march=i486 -mtune=i686"<br>
          LIBDIRSUFFIX=""<br>
        elif [ "$ARCH" = "i686" ]; then<br>
          SLKCFLAGS="-O2 -march=i686 -mtune=i686"<br>
          LIBDIRSUFFIX=""<br>
        elif [ "$ARCH" = "x86_64" ]; then<br>
          SLKCFLAGS="-O2 -fPIC"<br>
          LIBDIRSUFFIX="64"<br>
        else<br>
          SLKCFLAGS="-O2"<br>
          LIBDIRSUFFIX=""<br>
        fi<br>
        <br>
        set -e<br>
        <br>
        rm -rf $PKG<br>
        mkdir -p $TMP $PKG $OUTPUT<br>
        cd $TMP<br>
        rm -rf $PRGNAM-$VERSION<br>
        tar xvf $CWD/$PRGNAM-$VERSION.tar.gz<br>
        #cd $PRGNAM-$VERSION<br>
        cd $PRGNAMDIR<br>
        chown -R root:root .<br>
        find -L . \<br>
         \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm
        555 \<br>
          -o -perm 511 \) -exec chmod 755 {} \; -o \<br>
         \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm
        444 \<br>
          -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;<br>
        <br>
        CFLAGS="$SLKCFLAGS" \<br>
        CXXFLAGS="$SLKCFLAGS" \<br>
        LDFLAGS="-ldl" \<br>
        ./configure \<br>
          --prefix=/usr \<br>
          --libdir=/usr/lib${LIBDIRSUFFIX} \<br>
          --sysconfdir=/etc \<br>
          --docdir=/usr/doc/$PRGNAM-$VERSION \<br>
          --disable-static \<br>
          --enable-freexl \<br>
          $LWGEOM_SUPPORT \<br>
          --build=$ARCH-slackware-linux<br>
        <br>
        make<br>
        make install DESTDIR=$PKG<br>
        <br>
        find $PKG -print0 | xargs -0 file | grep -e "executable" -e
        "shared object" | grep ELF \<br>
          | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
        || true<br>
        <br>
        mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION<br>
        cp -a AUTHORS COPYING INSTALL README README.coverage
        spatialite-sql-latest.html \<br>
          $PKG/usr/doc/$PRGNAM-$VERSION<br>
        cat $CWD/$PRGNAM.SlackBuild >
        $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild<br>
        <br>
        mkdir -p $PKG/install<br>
        cat $CWD/slack-desc > $PKG/install/slack-desc<br>
        <br>
        cd $PKG<br>
        /sbin/makepkg -l y -c n
        $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}<br>
        <br>
      </font><br>
      <div class="moz-cite-prefix">On 08/08/2018 01:39 PM, Kevin
        McCormick wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:32660852-1b97-3901-9a17-1b18e77990ff@fastmail.fm">
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        14.2 > Gis > libspatialite (4.2.0) <br>
        <br>
        Build failed:<br>
        <font size="+1">/tmp/SBo/libspatialite-4.2.0/src/.libs/libspatialite.so:
          undefined reference to `lw_vasprintf'<br>
          <br>
          Apparently the solution is described here:<br>
          <a class="moz-txt-link-freetext"
href="https://groups.google.com/forum/#%21topic/spatialite-users/LuFirW-60q4"
            moz-do-not-send="true">https://groups.google.com/forum/#!topic/spatialite-users/LuFirW-60q4</a><br>
          <br>
          Thanks<br>
        </font> <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SlackBuilds-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SlackBuilds-users@slackbuilds.org" moz-do-not-send="true">SlackBuilds-users@slackbuilds.org</a>
<a class="moz-txt-link-freetext" href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" moz-do-not-send="true">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a>
Archives - <a class="moz-txt-link-freetext" href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" moz-do-not-send="true">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a>
FAQ - <a class="moz-txt-link-freetext" href="https://slackbuilds.org/faq/" moz-do-not-send="true">https://slackbuilds.org/faq/</a>

</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SlackBuilds-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a>
<a class="moz-txt-link-freetext" href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a>
Archives - <a class="moz-txt-link-freetext" href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a>
FAQ - <a class="moz-txt-link-freetext" href="https://slackbuilds.org/faq/">https://slackbuilds.org/faq/</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>