<html><body><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 dir="ltr" id="yui_3_16_0_1_1414762382680_17129"><span id="yui_3_16_0_1_1414762382680_17159">Dear Stef,</span></div><div dir="ltr"><br><span id="yui_3_16_0_1_1414762382680_17159"></span></div><div dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">Linking with the libganesys helped a lot (before I was trying to link with libsane-genesys). However, I still have one linking problem. The linker reports</span></div><div id="yui_3_16_0_1_1414762382680_17184" dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">that I have multiple definitions of the same function sanei_debug_genesys:</span></div><div id="yui_3_16_0_1_1414762382680_17210" dir="ltr"><br><span id="yui_3_16_0_1_1414762382680_17159"></span></div><div id="yui_3_16_0_1_1414762382680_17206" dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">./compile/backend/.libs/libgenesys.a(libgenesys_la-genesys.o): In function `sanei_debug_genesys_call':<br style="" class="">/home/xxx/4_pwork/SANE/compile/backend/../include/sane/sanei_debug.h:131: multiple definition of `sanei_debug_genesys'<br style="" class="">tst_genesys843.o:(.bss+0x0): first defined here<br style="" class="">collect2: error: ld returned 1 exit status</span></div><div dir="ltr"><br><span id="yui_3_16_0_1_1414762382680_17159"></span></div><div id="yui_3_16_0_1_1414762382680_17279" dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">Apparently this has to do with a way how I included headers into the main program. In order to be able to compile it I had to</span></div><div id="yui_3_16_0_1_1414762382680_17278" dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">use definition of BACKEND_NAME. Here is the beginning of the test program:</span></div><div id="yui_3_16_0_1_1414762382680_17277" dir="ltr"><br><span id="yui_3_16_0_1_1414762382680_17159"></span></div><div id="yui_3_16_0_1_1414762382680_17227" dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">#include "sane/sane.h"<br style="" class="">#include "sane/sanei.h"<br style="" class=""><br style="" class="">#define BACKEND_NAME genesys<br style="" class=""><br style="" class="">//#include "genesys.h"<br style="" class="">#include "genesys_gl843.h"<br style="" class=""><br style="" class=""><br style="" class="">int main(int argc, char **argv){<br style="" class="">    <br style="" class="">    DBG_INIT();<br style="" class="">    <br style="" class="">    <br style="" class="">    SANE_Int vc;</span></div><div id="yui_3_16_0_1_1414762382680_17298" dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">.......</span></div><div id="yui_3_16_0_1_1414762382680_17299" dir="ltr"><span id="yui_3_16_0_1_1414762382680_17159">}</span></div><div id="yui_3_16_0_1_1414762382680_17304" dir="ltr"><br><span id="yui_3_16_0_1_1414762382680_17159"></span></div><div id="yui_3_16_0_1_1414762382680_17305" dir="ltr"><span style="" class="" id="yui_3_16_0_1_1414762382680_17159">Please let me know if you define  </span><span style="" class="" id="yui_3_16_0_1_1414762382680_17159">BACKEND_NAME manually and which headers do you include.</span></div><div dir="ltr"><br><span style="" class="" id="yui_3_16_0_1_1414762382680_17159"></span></div><div dir="ltr"><span style="" class="" id="yui_3_16_0_1_1414762382680_17159">Thanks,</span></div><div dir="ltr"><span style="" class="" id="yui_3_16_0_1_1414762382680_17159">Myroslav<br></span></div><br>  <div id="yui_3_16_0_1_1414762382680_17133" 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_17132" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1414762382680_17131" dir="ltr"> <hr id="yui_3_16_0_1_1414762382680_17151" size="1">  <font id="yui_3_16_0_1_1414762382680_17130" size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Stef <stef.dev@free.fr><br> <b><span style="font-weight: bold;">To:</span></b> Myroslav Kavatsyuk <m.kavatsyuk@yahoo.com>; "sane-devel@lists.alioth.debian.org" <sane-devel@lists.alioth.debian.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, November 1, 2014 8:04 AM<br> <b id="yui_3_16_0_1_1414762382680_17150"><span id="yui_3_16_0_1_1414762382680_17149" style="font-weight: bold;">Subject:</span></b> Re: Canoscan 8400F<br> </font> </div> <div id="yui_3_16_0_1_1414762382680_17134" class="y_msg_container"><br><div id="yiv1977667595"><div id="yui_3_16_0_1_1414762382680_17136">    Hello,<br clear="none">
    <br clear="none">
        I configure with:<br clear="none">
    CFLAGS="-DUNIT_TESTING -ggdb" ./configure<br clear="none">
    <br clear="none">
    then unit testing progs are link with:<br clear="none">
    <br clear="none">
    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<div class="qtdSeparateBR"><br><br></div><div class="yiv1977667595yqt0652339114" id="yiv1977667595yqtfd14454"><br clear="none">
    <br clear="none">
    Regards,<br clear="none">
        Stef<br clear="none">
  </div></div></div><br><br></div> </div> </div>  </div></body></html>