<br><br><div class="gmail_quote">On Sun, Jan 3, 2010 at 7:01 AM, Rainer Dorsch <span dir="ltr">&lt;<a href="mailto:rdorsch@web.de">rdorsch@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
For the long options issue:<br>
I rebuild git sane on another machine (also Debian stable aka Debian 5.0) and<br>
the long options error is still there. Even --help has problems. Which<br>
library is sane using to process the command line options? Does Debian stable<br>
maybe ship with a different version than your system?<br><br></blockquote><div><br>After running configure, can you look at the file include/sane/config.h?  Check if HAVE_GETOPT_H and HAVE_GETOPT_LONG are defined.   On debian, I would expect them to be defined.  In that case, it uses standard libc version of getopt.<br>
<br>I do see one suspicious line in lib/getopt.c and lib/getopt1.c.  They do a #include &lt;config.h&gt; instead of #include &quot;../include/sane/config.h&quot; and so in certain cases it may be including the wrong config.h file.  In that case, it would mistakenly compile a conflicting version of getopt_long() (which can explain the problem your seeing).<br>
<br>Chris<br></div></div>