[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-07 Thread Louis Lagendijk
On Sun, 2013-01-06 at 00:12 +0100, Dominik Kopp wrote:
 Louis Lagendijk wrote:
 
  On Thu, 2013-01-03 at 22:12 +0100, Dominik Kopp wrote:
  This was something missed in the autoconf configuation. I hopefully
  fixed it in svn. Can you try again?
  I also fixed the autoconf rebuilding.
 
 yes, make all was sucessfully. it compiles.
 
 Note:
 in the doc/README.txt chapter 1.1 stands, that libjpeg8-devel is required.
 however, it seems to work with libjpeg62(-devel) as well, which is installed 
 per default (nevertheless, the libjpeg8(-devel) is also available in the 
 repo)
 
I don't have a Suse installed here so I can not check myself, but
libjpeg8  is the old libjpeg8 if I understand it correctly, while
libjpeg is the new jpeg-turbo implementation. Wilhelm tested this and
libjpeg8 worked. I assume that is does not matter much, but using
libjpeg seems safer than libjpeg8 (the old one), depending on what
libsane is linked to (what does ldd /usr/lib/libsane.so | grep jpeg
return?
 next problem:
 I don't have any /etc/inetd.conf
 opensuse has /etc/xinetd.conf
 
 And this uses a different style as in chapter 3) of README.txt
 (sane-port stream tcp4 nowait ...
man scanbm should have answered that, execpt for the fact that it still
refers to scanbd rather than scanbm
Kind regards, Louis




[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-06 Thread Dominik Kopp
Louis Lagendijk wrote:

 On Thu, 2013-01-03 at 22:12 +0100, Dominik Kopp wrote:
 This was something missed in the autoconf configuation. I hopefully
 fixed it in svn. Can you try again?
 I also fixed the autoconf rebuilding.

yes, make all was sucessfully. it compiles.

Note:
in the doc/README.txt chapter 1.1 stands, that libjpeg8-devel is required.
however, it seems to work with libjpeg62(-devel) as well, which is installed 
per default (nevertheless, the libjpeg8(-devel) is also available in the 
repo)


 
 ok, and where is the binary?
 (this is my fourth or fifth program I'm trying to compile. Therefore I'm
 not very skilled...)
 
 In src/scanbd. Use make install to install the binary. It ends up
 in /usr/local/bin or /usr/local/sbin
 
 cc  -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_HAL  -c -o scanbd.o scanbd.c
 In file included from scanbd.h:45:0,
  from scanbd.c:23:
 slog.h:33:1: error: unknown type name ?bool?
 In file included from scanbd_dbus.h:33:0,
  from scanbd.h:46,
  from scanbd.c:23:
 /usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error:
 dbus/dbus-arch-deps.h: Datei oder Verzeichnis nicht gefunden
 compilation terminated.
 make: *** [scanbd.o] Fehler 1
 
 Did you change something in the Makefile? 

no

 It is really strange that it
 tries to compile with HAL and not UDEV. I would guess that Suse switched
 to udev?

yes, suse moved completely from hal to udev.


 echo Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 cp scanbd_dbus.conf /etc/dbus-1/system.d
 cp scanbuttond/backends/meta.conf
 /usr/local/etc/scanbd/scanbuttond/backends || /bin/true
 echo Edit /etc/inetd.conf
 Edit /etc/inetd.conf
 
 
 is that OK? Should I try to move forward with the next steps as described
 in INSTALL?
 
 It looks that you compiled scanbd ok here. So you should be able to
 continue from here. Have a look at scanbd.conf and Try
 scanbd -f
 
 regards, Louis
 

next problem:
I don't have any /etc/inetd.conf
opensuse has /etc/xinetd.conf

And this uses a different style as in chapter 3) of README.txt
(sane-port stream tcp4 nowait ...

regards
Dominik




[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-06 Thread Prof. Dr.-Ing. Wilhelm Meier
Am 06.01.2013 00:12, schrieb Dominik Kopp:
 Louis Lagendijk wrote:

 On Thu, 2013-01-03 at 22:12 +0100, Dominik Kopp wrote:
 This was something missed in the autoconf configuation. I hopefully
 fixed it in svn. Can you try again?
 I also fixed the autoconf rebuilding.

 yes, make all was sucessfully. it compiles.

 Note:
 in the doc/README.txt chapter 1.1 stands, that libjpeg8-devel is required.
 however, it seems to work with libjpeg62(-devel) as well, which is installed
 per default (nevertheless, the libjpeg8(-devel) is also available in the
 repo)



 ok, and where is the binary?
 (this is my fourth or fifth program I'm trying to compile. Therefore I'm
 not very skilled...)

 In src/scanbd. Use make install to install the binary. It ends up
 in /usr/local/bin or /usr/local/sbin

 cc  -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_HAL  -c -o scanbd.o scanbd.c
 In file included from scanbd.h:45:0,
   from scanbd.c:23:
 slog.h:33:1: error: unknown type name ?bool?
 In file included from scanbd_dbus.h:33:0,
   from scanbd.h:46,
   from scanbd.c:23:
 /usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error:
 dbus/dbus-arch-deps.h: Datei oder Verzeichnis nicht gefunden
 compilation terminated.
 make: *** [scanbd.o] Fehler 1

 Did you change something in the Makefile?

 no

 It is really strange that it
 tries to compile with HAL and not UDEV. I would guess that Suse switched
 to udev?

 yes, suse moved completely from hal to udev.


 echo Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 cp scanbd_dbus.conf /etc/dbus-1/system.d
 cp scanbuttond/backends/meta.conf
 /usr/local/etc/scanbd/scanbuttond/backends || /bin/true
 echo Edit /etc/inetd.conf
 Edit /etc/inetd.conf


 is that OK? Should I try to move forward with the next steps as described
 in INSTALL?

 It looks that you compiled scanbd ok here. So you should be able to
 continue from here. Have a look at scanbd.conf and Try
 scanbd -f

 regards, Louis


 next problem:
 I don't have any /etc/inetd.conf
 opensuse has /etc/xinetd.conf

 And this uses a different style as in chapter 3) of README.txt
 (sane-port stream tcp4 nowait ...

Just updated trunk to include an example.

But you can also look here (in german):

http://www.mehr4u.de/component/k2/item/99-mit-scanbd-scannertasen-an-einem-canon-mx700-nutzen.html

-- 
Wilhelm




[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-04 Thread Louis Lagendijk
On Thu, 2013-01-03 at 22:12 +0100, Dominik Kopp wrote:
 Wilhelm wrote:
 
  Hi Dominik,
  
  Am 02.01.2013 20:45, schrieb Dominik Kopp:
  /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-
 linux/bin/ld:
  dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
  /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-
 linux/bin/ld:
  note: 'pthread_sigmask@@GLIBC_2.2.5' is defined in DSO
  /lib64/libpthread.so.0 so try adding it to the linker command line
  /lib64/libpthread.so.0: could not read symbols: Invalid operation
  collect2: error: ld returned 1 exit status make[1]: *** [scanbd] Fehler 1
  make[1]: Leaving directory `/home/dom/scanbd/trunk/src/scanbd'
  make: *** [all-recursive] Fehler 1
  
  looks like -lpthread is missing on openSUSE. 
This was something missed in the autoconf configuation. I hopefully
fixed it in svn. Can you try again?
I also fixed the autoconf rebuilding. 

 ok, and where is the binary?  
 (this is my fourth or fifth program I'm trying to compile. Therefore I'm not 
 very skilled...)
 
In src/scanbd. Use make install to install the binary. It ends up
in /usr/local/bin or /usr/local/sbin

 cc  -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_HAL  -c -o scanbd.o scanbd.c
 In file included from scanbd.h:45:0,
  from scanbd.c:23:
 slog.h:33:1: error: unknown type name ?bool?
 In file included from scanbd_dbus.h:33:0,
  from scanbd.h:46,
  from scanbd.c:23:
 /usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error: dbus/dbus-arch-deps.h: 
 Datei oder Verzeichnis nicht gefunden
 compilation terminated.
 make: *** [scanbd.o] Fehler 1
 
Did you change something in the Makefile? It is really strange that it
tries to compile with HAL and not UDEV. I would guess that Suse switched
to udev?

 
 dbus-1-devel package is installed and contains following files:
 /usr/include/dbus-1.0/dbus/dbus.h
 /usr/lib64/dbus-1.0/include/dbus/dbus-arch-deps.h
 ...
 (full list at http://pkgs.org/opensuse-12.2/opensuse-update-x86_64/dbus-1-
 devel-1.5.12-4.10.1.x86_64.rpm.html )
 
 -
 then I tried:
 dom at linux-8k4r:~/scanbd/releases/1.2.1 make clean all
 
 ok, this is working.
 
 make install does mostly well.
 
 dom at linux-8k4r:~/scanbd/releases/1.2.1 su
 Passwort: 
 linux-8k4r:/home/dom/scanbd/releases/1.2.1 # make install
 echo Make /usr/local/etc/scanbd
 Make /usr/local/etc/scanbd
 mkdir -p /usr/local/etc/scanbd
 echo Copy files to /usr/local/etc/scanbd
 Copy files to /usr/local/etc/scanbd
 cp scanbd.conf /usr/local/etc/scanbd
 cp example.script /usr/local/etc/scanbd
 cp scanadf.script /usr/local/etc/scanbd
 cp test.script /usr/local/etc/scanbd
 echo Copy scanbd to /usr/local/bin
 Copy scanbd to /usr/local/bin
 mkdir -p /usr/local/bin
 cp scanbd /usr/local/bin
 echo Copy scanbuttond backends to 
 /usr/local/etc/scanbd/scanbuttond/backends
 Copy scanbuttond backends to /usr/local/etc/scanbd/scanbuttond/backends
 mkdir -p /usr/local/etc/scanbd/scanbuttond/backends
 cp scanbuttond/backends/*.so /usr/local/etc/scanbd/scanbuttond/backends || 
 /bin/true
 cp: Aufruf von stat f?r ?scanbuttond/backends/*.so? nicht m?glich: Datei 
 oder Verzeichnis nicht gefunden
 echo Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 cp scanbd_dbus.conf /etc/dbus-1/system.d
 cp scanbuttond/backends/meta.conf 
 /usr/local/etc/scanbd/scanbuttond/backends || /bin/true
 echo Edit /etc/inetd.conf
 Edit /etc/inetd.conf
 
 
 is that OK? Should I try to move forward with the next steps as described in  
 INSTALL?

It looks that you compiled scanbd ok here. So you should be able to
continue from here. Have a look at scanbd.conf and Try 
scanbd -f

regards, Louis





[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-03 Thread Dominik Kopp
Louis Lagendijk wrote:

 hello
 On Wed, 2013-01-02 at 20:45 +0100, Dominik Kopp wrote:
 There is something wrong with the autoconf configuration that you need
 to solve before you can run
 autoreconf -if
 if you have installed autoconf and libtool (install them first
 otherwise).
 I will check what we are missing in svn to avoid this in the future.
 After running autoreconf, run configure again. If compilation still
 fails, please report back to me and we will work on it.
 
 Kind regards, Louis
 
 

I installed libtool (autoconf 1.12 was already installed) and did the 
autoreconf -if

the ./configure and make fails again with same error message.

I changed also the line 140 in the makefile from automake-1.11 into automake 
1.12, but this doesn't make any differences, too.

regards
Dominik




[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-03 Thread Wilhelm
Hi Dominik,

Am 02.01.2013 20:45, schrieb Dominik Kopp:
 Hi,

 I'm trying to complile scanbd inside VirtualBox (host/client both openSUSE
 12.2 64-bit) but I have no success.

 The error message during make is:
 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
 dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'


 Here are my executed commands with the (hopefully) important parts of the
 output messages:

 dom at linux-8k4r:~ svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/
 ...
 Ausgecheckt, Revision 132.

 dom at linux-8k4r:~/scanbd/trunk cd scanbd
 dom at linux-8k4r:~/scanbd/trunk cd trunk
 dom at linux-8k4r:~/scanbd/trunk ./configure
 ...
 checking pkg-config is at least version 0.9.0... yes
 checking for CONFUSE... yes
 checking for DBUS... yes
 checking for UDEV... yes
 checking for SANE... no
 checking for sane-config... sane-config
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating src/scanbd/Makefile
 ...


 dom at linux-8k4r:~/scanbd/trunk make
   cd .  /bin/sh /home/dom/scanbd/trunk/missing --run automake-1.11 --
 foreign
 /home/dom/scanbd/trunk/missing: Zeile 52: automake-1.11: Kommando nicht
 gefunden.
 WARNING: `automake-1.11' is missing on your system.  You should only need it
 if
   you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
   You might want to install the `Automake' and `Perl' packages.
   Grab them from any GNU archive site.
 CDPATH=${ZSH_VERSION+.}:  cd .  /bin/sh /home/dom/scanbd/trunk/missing
 --run autoconf
 aclocal.m4:17: warning: this file was generated for autoconf 2.68.
 You have another version of autoconf.  It may work, but is not guaranteed
 to.
 If you have problems, you may need to regenerate the build system entirely.
 To do so, use the procedure documented by the package, typically
 `autoreconf'.
 /bin/sh ./config.status --recheck
 running CONFIG_SHELL=/bin/sh /bin/sh ./configure --no-create --no-recursion
 configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
 ...

 gcc -DPACKAGE_NAME=\scanbd\ -DPACKAGE_TARNAME=\scanbd\ -
 DPACKAGE_VERSION=\1.2.1\ -DPACKAGE_STRING=\scanbd\ 1.2.1\ -
 DPACKAGE_BUGREPORT=\wilhelm.meier at fh-kl.de\ -DPACKAGE_URL=\\ -
 DPACKAGE=\scanbd\ -DVERSION=\1.2.1\ -DSTDC_HEADERS=1 -
 DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
 DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\.libs/\ -DHAVE_ALARM=1 -
 DHAVE_DUP2=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 -
 DHAVE_PUTENV=1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -
 DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_NETINET_IN_H=1
 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -
 DHAVE_UNISTD_H=1 -DHAVE_CHOWN=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -
 DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -
 DHAVE_MALLOC=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_LINUX_LIMITS_H=1 -
 DHAVE_UTMP_H=1 -DHAVE_UTMPX_H=1 -DUSE_UDEV=1 -DUSE_SANE=1 -I.-Wall -
 Wextra -
 std=c99 -g  -Werror   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
 -DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ -
 DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\   -g -O2 -MT sane.o -MD -MP -MF
 .deps/sane.Tpo -c -o sane.o sane.c
 mv -f .deps/sane.Tpo .deps/sane.Po
 /bin/sh ../../libtool --tag=CC   --mode=link gcc -Wall -Wextra -std=c99 -g
 -Werror   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include-
 DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ -
 DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\   -g -O2  -lconfuse   -ludev -lrt
 -ldbus-1 -rdynamic -lsane  -L/usr/lib64 -lnetsnmp -lcrypto -lm -ldl  -lm
 -ljpeg  -lgphoto2 -lgphoto2_port -lm -lexif   -lusb-1.0   -o scanbd
 scanbd.o daemonize.o dbus.o udev.o slog.o sane.o   -ldl
 libtool: link: gcc -Wall -Wextra -std=c99 -g -Werror -I/usr/include/dbus-1.0
 -I/usr/lib64/dbus-1.0/include -
 DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ -
 DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\ -g -O2 -rdynamic -o scanbd
 scanbd.o daemonize.o dbus.o udev.o slog.o sane.o  /usr/lib64/libconfuse.so -
 ludev -lrt -ldbus-1 -lsane -L/usr/lib64 /usr/lib64/libnetsnmp.so -lcrypto -
 ljpeg -lgphoto2 -lgphoto2_port -lm -lexif -lusb-1.0 -ldl
 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
 dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
 note: 'pthread_sigmask@@GLIBC_2.2.5' is defined in DSO
 /lib64/libpthread.so.0 so try adding it to the linker command line
 /lib64/libpthread.so.0: could not read symbols: Invalid operation
 collect2: error: 

[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-03 Thread Dominik Kopp
Wilhelm wrote:

 Hi Dominik,
 
 Am 02.01.2013 20:45, schrieb Dominik Kopp:
 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-
linux/bin/ld:
 dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-
linux/bin/ld:
 note: 'pthread_sigmask@@GLIBC_2.2.5' is defined in DSO
 /lib64/libpthread.so.0 so try adding it to the linker command line
 /lib64/libpthread.so.0: could not read symbols: Invalid operation
 collect2: error: ld returned 1 exit status make[1]: *** [scanbd] Fehler 1
 make[1]: Leaving directory `/home/dom/scanbd/trunk/src/scanbd'
 make: *** [all-recursive] Fehler 1
 
 looks like -lpthread is missing on openSUSE. 

file /lib64/libpthread.so.0 exists.  (linked to /lib64/libpthread-2.15.so)

 Do you mind trying to
 compile with the Makefile.simple instead of configure?

dom at linux-8k4r:~/scanbd/trunk make -f Makefile.simple
make -f Makefile.simple -C src/scanbd all
make[1]: Entering directory `/home/dom/scanbd/trunk/src/scanbd'
cc   scanbd.o slog.o sane.o daemonize.o dbus.o udev.o  -lsane -ludev -
lconfuse -lpthread -ldbus-1 -o scanbd
make[1]: Leaving directory `/home/dom/scanbd/trunk/src/scanbd'
make -f Makefile.simple -C doc all
make[1]: Entering directory `/home/dom/scanbd/trunk/doc'
echo Generating manpage scanbd.8...;
Generating manpage scanbd.8...
sed  -e 's|@PACKAGEVERSION@|1.2.1|g' \
 -e 's|@PACKAGENAME@|scanbd|g' \
 -e 's|@SBINDIR@|/usr/local/bin|g' \
 -e 's|@SCANBDCFGDIR@|/usr/local/etc/scanbd|g'  scanbd.man scanbd.8
make[1]: Leaving directory `/home/dom/scanbd/trunk/doc'

ok, and where is the binary?  
(this is my fourth or fifth program I'm trying to compile. Therefore I'm not 
very skilled...)


 As safer aproach would be to use scanbd-1.2.1 instead of trunk.

ok, according to the INSTALL file:

dom at linux-8k4r:~/scanbd/releases/1.2.1 USE_SANE=yes make -e clean all
make -C scanbuttond clean
make[1]: Entering directory `/home/dom/scanbd/releases/1.2.1/scanbuttond'
make -C backends clean
make[2]: Entering directory 
`/home/dom/scanbd/releases/1.2.1/scanbuttond/backends'
rm -f *.o *~ *.so
make[2]: Leaving directory 
`/home/dom/scanbd/releases/1.2.1/scanbuttond/backends'
make -C interface clean
make[2]: Entering directory 
`/home/dom/scanbd/releases/1.2.1/scanbuttond/interface'
rm -f *.o *~
make[2]: Leaving directory 
`/home/dom/scanbd/releases/1.2.1/scanbuttond/interface'
rm -f *~
make[1]: Leaving directory `/home/dom/scanbd/releases/1.2.1/scanbuttond'
rm -f -f scanbd test *.o *~
cc  -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_HAL  -c -o scanbd.o scanbd.c
In file included from scanbd.h:45:0,
 from scanbd.c:23:
slog.h:33:1: error: unknown type name ?bool?
In file included from scanbd_dbus.h:33:0,
 from scanbd.h:46,
 from scanbd.c:23:
/usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error: dbus/dbus-arch-deps.h: 
Datei oder Verzeichnis nicht gefunden
compilation terminated.
make: *** [scanbd.o] Fehler 1


dbus-1-devel package is installed and contains following files:
/usr/include/dbus-1.0/dbus/dbus.h
/usr/lib64/dbus-1.0/include/dbus/dbus-arch-deps.h
...
(full list at http://pkgs.org/opensuse-12.2/opensuse-update-x86_64/dbus-1-
devel-1.5.12-4.10.1.x86_64.rpm.html )

-
then I tried:
dom at linux-8k4r:~/scanbd/releases/1.2.1 make clean all

ok, this is working.

make install does mostly well.

dom at linux-8k4r:~/scanbd/releases/1.2.1 su
Passwort: 
linux-8k4r:/home/dom/scanbd/releases/1.2.1 # make install
echo Make /usr/local/etc/scanbd
Make /usr/local/etc/scanbd
mkdir -p /usr/local/etc/scanbd
echo Copy files to /usr/local/etc/scanbd
Copy files to /usr/local/etc/scanbd
cp scanbd.conf /usr/local/etc/scanbd
cp example.script /usr/local/etc/scanbd
cp scanadf.script /usr/local/etc/scanbd
cp test.script /usr/local/etc/scanbd
echo Copy scanbd to /usr/local/bin
Copy scanbd to /usr/local/bin
mkdir -p /usr/local/bin
cp scanbd /usr/local/bin
echo Copy scanbuttond backends to 
/usr/local/etc/scanbd/scanbuttond/backends
Copy scanbuttond backends to /usr/local/etc/scanbd/scanbuttond/backends
mkdir -p /usr/local/etc/scanbd/scanbuttond/backends
cp scanbuttond/backends/*.so /usr/local/etc/scanbd/scanbuttond/backends || 
/bin/true
cp: Aufruf von stat f?r ?scanbuttond/backends/*.so? nicht m?glich: Datei 
oder Verzeichnis nicht gefunden
echo Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
Copy scanbd_dbus.conf to /etc/dbus-1/system.d/
cp scanbd_dbus.conf /etc/dbus-1/system.d
cp scanbuttond/backends/meta.conf 
/usr/local/etc/scanbd/scanbuttond/backends || /bin/true
echo Edit /etc/inetd.conf
Edit /etc/inetd.conf


is that OK? Should I try to move forward with the next steps as described in  
INSTALL?

regards
Dominik




[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-02 Thread Dominik Kopp
Hi,

I'm trying to complile scanbd inside VirtualBox (host/client both openSUSE 
12.2 64-bit) but I have no success.

The error message during make is:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: 
dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'


Here are my executed commands with the (hopefully) important parts of the 
output messages:

dom at linux-8k4r:~ svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/
...
Ausgecheckt, Revision 132.

dom at linux-8k4r:~/scanbd/trunk cd scanbd
dom at linux-8k4r:~/scanbd/trunk cd trunk
dom at linux-8k4r:~/scanbd/trunk ./configure
...
checking pkg-config is at least version 0.9.0... yes
checking for CONFUSE... yes
checking for DBUS... yes
checking for UDEV... yes
checking for SANE... no
checking for sane-config... sane-config
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/scanbd/Makefile
...


dom at linux-8k4r:~/scanbd/trunk make
 cd .  /bin/sh /home/dom/scanbd/trunk/missing --run automake-1.11 --
foreign 

/home/dom/scanbd/trunk/missing: Zeile 52: automake-1.11: Kommando nicht 
gefunden.   
  
WARNING: `automake-1.11' is missing on your system.  You should only need it 
if  
 
 you modified `Makefile.am', `acinclude.m4' or `configure.ac'.  

  
 You might want to install the `Automake' and `Perl' packages.  

  
 Grab them from any GNU archive site.   

  
CDPATH=${ZSH_VERSION+.}:  cd .  /bin/sh /home/dom/scanbd/trunk/missing 
--run autoconf  
 
aclocal.m4:17: warning: this file was generated for autoconf 2.68.
You have another version of autoconf.  It may work, but is not guaranteed 
to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 
`autoreconf'.
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --no-create --no-recursion
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
...

gcc -DPACKAGE_NAME=\scanbd\ -DPACKAGE_TARNAME=\scanbd\ -
DPACKAGE_VERSION=\1.2.1\ -DPACKAGE_STRING=\scanbd\ 1.2.1\ -
DPACKAGE_BUGREPORT=\wilhelm.meier at fh-kl.de\ -DPACKAGE_URL=\\ -
DPACKAGE=\scanbd\ -DVERSION=\1.2.1\ -DSTDC_HEADERS=1 -
DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\.libs/\ -DHAVE_ALARM=1 -
DHAVE_DUP2=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 -
DHAVE_PUTENV=1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -
DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_NETINET_IN_H=1 
-DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_CHOWN=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -
DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -
DHAVE_MALLOC=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_LINUX_LIMITS_H=1 -
DHAVE_UTMP_H=1 -DHAVE_UTMPX_H=1 -DUSE_UDEV=1 -DUSE_SANE=1 -I.-Wall -
Wextra -
std=c99 -g  -Werror   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
-DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ -
DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\   -g -O2 -MT sane.o -MD -MP -MF 
.deps/sane.Tpo -c -o sane.o sane.c
mv -f .deps/sane.Tpo .deps/sane.Po
/bin/sh ../../libtool --tag=CC   --mode=link gcc -Wall -Wextra -std=c99 -g  
-Werror   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include-
DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ -
DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\   -g -O2  -lconfuse   -ludev -lrt   
-ldbus-1 -rdynamic -lsane  -L/usr/lib64 -lnetsnmp -lcrypto -lm -ldl  -lm  
-ljpeg  -lgphoto2 -lgphoto2_port -lm -lexif   -lusb-1.0   -o scanbd 
scanbd.o daemonize.o dbus.o udev.o slog.o sane.o   -ldl 
libtool: link: gcc -Wall -Wextra -std=c99 -g -Werror -I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include -
DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ -
DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\ -g -O2 -rdynamic 

[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'

2013-01-02 Thread Louis Lagendijk
hello
On Wed, 2013-01-02 at 20:45 +0100, Dominik Kopp wrote:
 Hi,
 
 I'm trying to complile scanbd inside VirtualBox (host/client both openSUSE 
 12.2 64-bit) but I have no success.
 
 The error message during make is:
 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: 
 dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
 
 
 Here are my executed commands with the (hopefully) important parts of the 
 output messages:
 
 dom at linux-8k4r:~ svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/
 ...
 Ausgecheckt, Revision 132.
 
 dom at linux-8k4r:~/scanbd/trunk cd scanbd
 dom at linux-8k4r:~/scanbd/trunk cd trunk
 dom at linux-8k4r:~/scanbd/trunk ./configure
 ...
 checking pkg-config is at least version 0.9.0... yes
 checking for CONFUSE... yes
 checking for DBUS... yes
 checking for UDEV... yes
 checking for SANE... no
 checking for sane-config... sane-config
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating src/scanbd/Makefile
 ...
 
 
 dom at linux-8k4r:~/scanbd/trunk make
  cd .  /bin/sh /home/dom/scanbd/trunk/missing --run automake-1.11 --
 foreign   
   
 /home/dom/scanbd/trunk/missing: Zeile 52: automake-1.11: Kommando nicht 
 gefunden. 
 
 WARNING: `automake-1.11' is missing on your system.  You should only need it 
 if

  you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
   
   
  You might want to install the `Automake' and `Perl' packages.
   
   
  Grab them from any GNU archive site. 
   
   
 CDPATH=${ZSH_VERSION+.}:  cd .  /bin/sh /home/dom/scanbd/trunk/missing 
 --run autoconf

 aclocal.m4:17: warning: this file was generated for autoconf 2.68.
 You have another version of autoconf.  It may work, but is not guaranteed 
 to.
 If you have problems, you may need to regenerate the build system entirely.
 To do so, use the procedure documented by the package, typically 
 `autoreconf'.
There is something wrong with the autoconf configuration that you need
to solve before you can run
autoreconf -if 
if you have installed autoconf and libtool (install them first
otherwise).
I will check what we are missing in svn to avoid this in the future.
After running autoreconf, run configure again. If compilation still
fails, please report back to me and we will work on it.

Kind regards, Louis