plustek: make error: plustek.h:216: error: conflicting types for 'Option_Value'


Previous by date: 24 Jan 2005 15:32:09 +0000 make error: plustek.h:216: error: conflicting types for 'Option_Value', Piotr Sawicki
Next by date: 24 Jan 2005 15:32:09 +0000 error device not found 9636T, Nicolas DELY
Previous in thread: 24 Jan 2005 15:32:09 +0000 make error: plustek.h:216: error: conflicting types for 'Option_Value', Piotr Sawicki
Next in thread:

Subject: Re: make error: plustek.h:216: error: conflicting typesfor 'Option_Value'
From: Gerhard Jaeger ####@####.####
Date: 24 Jan 2005 15:32:09 +0000
Message-Id: <200501241631.31934.gerhard@gjaeger.de>

On Monday 24 January 2005 14:51, Piotr Sawicki wrote:
> Hi, 
> I have mkd 10.1 and plustek scanner OpticPro 96000P installed on my LPT
> port.
> I was following the instructions in INSALL file from plustek-sane-0.45-7
> and I got this error:
> ln -s ./stubs.c pie-s.c
>  gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include
> -I../include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
> -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0
> -I/usr/include/gphoto2 -I/usr/include -DSTUBS -DBACKEND_NAME=pie pie-s.c
> -fPIC -DPIC -o .libs/pie-s.o
> gcc
> -shared  .libs/pie.o .libs/pie-s.o .libs/sane_strstatus.o ../sanei/.libs/sanei_init_debug.o ../sanei/.libs/sanei_config.o ../sanei/.libs/sanei_config2.o ../sanei/.libs/sanei_constrain_value.o ../sanei/.libs/sanei_scsi.o ../sanei/.libs/sanei_thread.o  -L/usr/lib -lnsl /usr/lib/libjpeg.so /usr/lib/libieee1284.so /usr/lib/libgphoto2.so -lm -ldl  -Wl,-soname -Wl,libsane.so.1 -o .libs/libsane-pie.so.1.0.14
> (cd .libs && rm -f libsane-pie.so.1 && ln -s libsane-pie.so.1.0.14
> libsane-pie.so.1)
> (cd .libs && rm -f libsane-pie.so && ln -s libsane-pie.so.1.0.14
> libsane-pie.so)
> creating libsane-pie.la
> (cd .libs && rm -f libsane-pie.la && ln -s ../libsane-pie.la
> libsane-pie.la)
>  gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include
> -I../include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
> -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0
> -I/usr/include/gphoto2 -I/usr/include -DBACKEND_NAME=plustek
> -DLIBDIR=/usr/local/lib/sane plustek.c  -fPIC -DPIC -o .libs/plustek.o
> In file included from plustek.c:148:
> plustek.h:216: error: conflicting types for 'Option_Value'
> ../include/sane/sanei_backend.h:155: error: previous declaration of
> 'Option_Value' was here
> make[1]: *** [plustek.lo] Błąd 1
> make[1]: Leaving directory `/home/piotr/sane-backends-1.0.14/backend'
> make: *** [all-recursive] Błąd 1
> [piotr@localhost sane-backends-1.0.14]$
> 
> I didn't want to remove sane rpm's because there were dependencies with
> other rpm's so I just removed all the files and directoreis manually as
> in this howto:
> rm -rf /usr/lib/sane
> rm -rf /usr/lib/libsane*
> rm -rf /usr/include/sane
> rm -rf /etc/sane.d
> rm -rf /usr/etc/sane.d
> rm -rf /usr/share/sane*
> rm -rf /usr/local/lib/sane
> rm -rf /usr/local/lib/libsane*
> rm -rf /usr/local/include/sane
> rm -rf /usr/local/etc/sane.d
> rm -rf /usr/local/share/sane*
> 
> can You help?
> thanks
> Piotr

Why would you use the 0.45-7 driver version? You have already installed SANE-1.0.14 which
contains the latest plustek_pp backend which should support your scanner. If you want to 
have it as kernelmodule, checkout SANE-1.0.14 or 15 source-code and use the stuff found
in sane-backends/doc/plustek. MakeModule.sh will be your friend.

Hope this helps
Gerhard




Previous by date: 24 Jan 2005 15:32:09 +0000 make error: plustek.h:216: error: conflicting types for 'Option_Value', Piotr Sawicki
Next by date: 24 Jan 2005 15:32:09 +0000 error device not found 9636T, Nicolas DELY
Previous in thread: 24 Jan 2005 15:32:09 +0000 make error: plustek.h:216: error: conflicting types for 'Option_Value', Piotr Sawicki
Next in thread:


Powered by ezmlm-browse 0.20.