[sane-devel] Epson Perfection 610 Issue with 150 dpi scan

Chris Bagwell chris at cnpbagwell.com
Sun Jan 3 20:17:10 UTC 2010


On Sun, Jan 3, 2010 at 7:01 AM, Rainer Dorsch <rdorsch at web.de> wrote:

>
> For the long options issue:
> I rebuild git sane on another machine (also Debian stable aka Debian 5.0)
> and
> the long options error is still there. Even --help has problems. Which
> library is sane using to process the command line options? Does Debian
> stable
> maybe ship with a different version than your system?
>
>
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.

I do see one suspicious line in lib/getopt.c and lib/getopt1.c.  They do a
#include <config.h> instead of #include "../include/sane/config.h" 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).

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100103/55a4b3f3/attachment.htm>


More information about the sane-devel mailing list