[sane-devel] Fwd: "sane_read: Device busy" with Canon PIXMA MX310 and sane 1.0.20-4ubuntu3
Chris Bagwell
chris at cnpbagwell.com
Thu Dec 3 01:02:14 UTC 2009
Sorry, meant to reply to mailing list.
---------- Forwarded message ----------
From: Chris Bagwell <chris at cnpbagwell.com>
Date: Wed, Dec 2, 2009 at 7:00 PM
Subject: Re: [sane-devel] "sane_read: Device busy" with Canon PIXMA MX310
and sane 1.0.20-4ubuntu3
To: Rogier Eggers <rogiereggers at gmail.com>
On Wed, Dec 2, 2009 at 5:37 PM, Rogier Eggers <rogiereggers at gmail.com>wrote:
> Hi Nicolas,
>
> Ok, so indeed, the git version without pthtread works flawlessy (see
> attached log). However, I so far didn't manage to build sane-backends with
> pthread. After exactly following your instructions, I get the message below.
> This is with no ubuntu sane packages installed. Can anybody tell me which
> dev package I miss to build sane with pthread?
>
Sorry, I can't answer name of debian pthread-devel package but I think you
also have some sort of configure error. I don't see the "-lpthread" during
the link. Can you reverify that you did the following line?
export LIBS="-lpthread"
If that doesn't work then try adding this after the "make distclean" step
but before configure step:
export PTHREAD_LIBS="-lpthread"
Nicolas, I'm curious why you didn't recommend the following instead:
make distclean
./configure --enable-pthread
Does that not work correctly under debian with git? Anything I can do to
help get that working?
Perhaps it was just some past confusion in debian from having to use
"--disable-fork" to get pthread working and that not being obvious?
Chris
>
> Regards,
>
> Rogier
>
>
> Error message during build process:
>
> [snip]
>
> rm -fr .libs/libsanei.a .libs/libsanei.la
> ar cru .libs/libsanei.a .libs/sanei_ab306.o .libs/sanei_constrain_value.o
> .libs/sanei_init_debug.o .libs/sanei_net.o .libs/sanei_wire.o
> .libs/sanei_codec_ascii.o .libs/sanei_codec_bin.o .libs/sanei_scsi.o
> .libs/sanei_config.o .libs/sanei_config2.o .libs/sanei_pio.o
> .libs/sanei_pa4s2.o .libs/sanei_auth.o .libs/sanei_usb.o
> .libs/sanei_thread.o .libs/sanei_pv8630.o .libs/sanei_pp.o
> .libs/sanei_lm983x.o .libs/sanei_access.o .libs/sanei_tcp.o
> .libs/sanei_udp.o .libs/sanei_magic.o .libs/sanei_jpeg.o
> ranlib .libs/libsanei.a
> creating libsanei.la
> (cd .libs && rm -f libsanei.la && ln -s ../libsanei.la libsanei.la)
> make[1]: Leaving directory
> `/home/rogier/Software/Src/sane-backends-git20091201/sanei'
> Making all in backend
> make[1]: Entering directory
> `/home/rogier/Software/Src/sane-backends-git20091201/backend'
> make all-am
> make[2]: Entering directory
> `/home/rogier/Software/Src/sane-backends-git20091201/backend'
> /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="/usr/lib/sane" -DBACKEND_NAME=dll
> -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
> -DPATH_SANE_LOCK_DIR=/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0
> -DUSE_PTHREAD -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
> -pedantic -ansi -MT libdll_la-dll.lo -MD -MP -MF .deps/libdll_la-dll.Tpo -c
> -o libdll_la-dll.lo `test -f 'dll.c' || echo './'`dll.c
> dll.c: In function ‘load’:
> dll.c:535: warning: ISO C forbids conversion of object pointer to function
> pointer type
> dll.c:560: warning: ISO C forbids conversion of object pointer to function
> pointer type
> mv -f .deps/libdll_la-dll.Tpo .deps/libdll_la-dll.Plo
> /bin/bash ../libtool --silent --tag=CC --mode=link gcc -DUSE_PTHREAD -W
> -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi
> -Wl,-z,defs -o libdll.la libdll_la-dll.lo
> /bin/bash ../libtool --silent --tag=CC --mode=link gcc -DUSE_PTHREAD -W
> -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi
> -Wl,-z,defs -rpath '/usr/lib' -version-number 1:0:21 -o libsane.la -rpath
> /usr/lib libsane_la-dll-s.lo ../lib/liblib.la libdll.la sane_strstatus.lo
> ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo
> ../sanei/sanei_config.lo ../sanei/sanei_config2.lo ../sanei/sanei_usb.lo
> ../sanei/sanei_scsi.lo ../sanei/sanei_pv8630.lo ../sanei/sanei_pp.lo
> ../sanei/sanei_thread.lo ../sanei/sanei_lm983x.lo ../sanei/sanei_access.lo
> ../sanei/sanei_net.lo ../sanei/sanei_wire.lo ../sanei/sanei_codec_bin.lo
> ../sanei/sanei_pa4s2.lo ../sanei/sanei_ab306.lo ../sanei/sanei_pio.lo
> ../sanei/sanei_tcp.lo ../sanei/sanei_udp.lo -ldl -lm -lieee1284 -ltiff
> -ljpeg -lgphoto2 -lgphoto2_port -lexif -lm -lusb -lusb
> ../sanei/.libs/sanei_thread.o: In function `sanei_thread_kill':
> sanei_thread.c:(.text+0xe5): undefined reference to `pthread_cancel'
> ../sanei/.libs/sanei_thread.o: In function `sanei_thread_begin':
> sanei_thread.c:(.text+0x302): undefined reference to `pthread_create'
> ../sanei/.libs/sanei_thread.o: In function `sanei_thread_sendsig':
> sanei_thread.c:(.text+0x3ac): undefined reference to `pthread_kill'
> ../sanei/.libs/sanei_thread.o: In function `sanei_thread_waitpid':
> sanei_thread.c:(.text+0x3fa): undefined reference to `pthread_join'
> sanei_thread.c:(.text+0x484): undefined reference to `pthread_detach'
> collect2: ld returned 1 exit status
> make[2]: *** [libsane.la] Error 1
> make[2]: Leaving directory
> `/home/rogier/Software/Src/sane-backends-git20091201/backend'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/rogier/Software/Src/sane-backends-git20091201/backend'
> make: *** [all-recursive] Error 1
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091202/e72f3b8b/attachment.htm>
More information about the sane-devel
mailing list