<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 31/10/2014 22:02, Myroslav Kavatsyuk
      wrote:<br>
    </div>
    <blockquote
cite="mid:14577849.1666.1414789331370.JavaMail.yahoo@jws10672.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica
        Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8px">
        <div id="yui_3_16_0_1_1414762382680_5441">Dear Stef,</div>
        <div id="yui_3_16_0_1_1414762382680_5442"><br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5443" dir="ltr">The SANE was
          configured with the proper CFLAGS shell variables:<br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5445" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5446" dir="ltr">export
          CFLAGS="-DUNIT_TESTING=1"<br style="" class="">
          export LDFLAGS="-DUNIT_TESTING=1"<br style="" class="">
          export CPPFLAGS="-DUNIT_TESTING=1"<br style="" class="">
          export BACKENDS=genesys<br style="" class="">
          export PRELOADABLE_BACKENDS=genesys<br style="" class="">
          <br style="" class="">
          ./configure --prefix=/home/xxx/4_pwork/SANE/local/</div>
        <div id="yui_3_16_0_1_1414762382680_5480" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5479" dir="ltr">I have
          checked, during the compilation process definition statements
          were passed to compiler:</div>
        <div id="yui_3_16_0_1_1414762382680_5478" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5477" dir="ltr">/bin/bash
          ../libtool --silent  --tag=CC   --mode=compile gcc
          -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I.
          -I. -I../include -I../include
          -DLIBDIR="/home/xxx/4_pwork/SANE/local/lib/sane"
          -DBACKEND_NAME=genesys -DUNIT_TESTING=1 -D_REENTRANT
          -DPATH_SANE_CONFIG_DIR=/home/xxx/4_pwork/SANE/local/etc/sane.d         
          -DPATH_SANE_DATA_DIR=/home/xxx/4_pwork/SANE/local/share   
          -DPATH_SANE_LOCK_DIR=/home/xxx/4_pwork/SANE/local/var/lock/sane   
          -DV_MAJOR=1 -DV_MINOR=0  -DUNIT_TESTING=1 -W -Wall
          -Wcast-align -Wcast-qual -Wmissing-declarations
          -Wmissing-prototypes -Wpointer-arith -Wreturn-type
          -Wstrict-prototypes -pedantic -ansi -MT
          libgenesys_la-genesys_gl843.lo -MD -MP -MF
          .deps/libgenesys_la-genesys_gl843.Tpo -c -o
          libgenesys_la-genesys_gl843.lo `test -f 'genesys_gl843.c'</div>
        <div id="yui_3_16_0_1_1414762382680_5517" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5518" dir="ltr">But the
          resulting library does not make functions public.</div>
        <div dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5529" dir="ltr">Best
          regards,</div>
        <div dir="ltr">Myroslav<br>
        </div>
        <div id="yui_3_16_0_1_1414762382680_5420"><span></span></div>
        <br>
        <div id="yui_3_16_0_1_1414762382680_5424" style="font-family:
          HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue,
          Helvetica, Arial, Lucida Grande, sans-serif; font-size: 8px;">
          <div id="yui_3_16_0_1_1414762382680_5423" style="font-family:
            HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida
            Grande, sans-serif; font-size: 16px;">
            <div id="yui_3_16_0_1_1414762382680_5472"
              class="y_msg_container">
              <hr id="yui_3_16_0_1_1414762382680_5421" size="1"><font
                id="yui_3_16_0_1_1414762382680_5476" face="Arial"
                size="2"><b><span style="font-weight:bold;"></span></b></font><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
        Hello,<br>
    <br>
        I configure with:<br>
    CFLAGS="-DUNIT_TESTING -ggdb" ./configure<br>
    <br>
    then unit testing progs are link with:<br>
    <br>
    gcc -ggdb -o gl646 gl646.o
    ../sane-backends/backend/.libs/sane_strstatus.o
    -I../sane-backends/include -L../sane-backends/backend/.libs
    -L../sane-backends/sanei/.libs -L../sane-backends/lib/.libs
    -lgenesys -lsanei -llib -lusb-1.0 -lpthread -lrt -lreadline
    -lncurses -lm<br>
    <br>
    Regards,<br>
        Stef<br>
  </body>
</html>