Hi,

See https://github.com/hean01/iscan/issues/1 and also
http://unix.stackexchange.com/q/132699/4671

A paste of the unix.sx post appears below. The problem looks like it is to do with autotools. I'd appreciate any hints. I'm not sure if the issue is to do with libtool, so please suggest a more suitable forum if that is not the case.

I attach the complete build log. I'm not subscribed, so please CC me on any reply. Thanks.

                                                          Regards, Faheem

#########################################################################

I'm seeing the following error when attempting to build iscan (https://github.com/hean01/iscan) using the master branch on Debian wheezy. This project provides support for Epson scanners, in cases when SANE doesn't. This project appears to be an unofficial fork of the Epson project - I'm not clear about the details. I start with:

faheem@orwell:/usr/local/src/iscan/iscan$ git remote -v
origin  https://github.com/hean01/iscan (fetch)
origin  https://github.com/hean01/iscan (push)
faheem@orwell:/usr/local/src/iscan/iscan$ git branch
* (detached from origin/master)
  iscan-2.29.1-5
faheem@orwell:/usr/local/src/iscan/iscan$ git status
# HEAD detached at origin/master
nothing to commit, working directory clean
faheem@orwell:/usr/local/src/iscan/iscan$ debuild -uc -us
This package has a Debian revision number but there does not seem to be
an appropriate original tar file or .orig directory in the parent directory;
(expected one of iscan_2.29.3.orig.tar.gz, iscan_2.29.3.orig.tar.bz2,
iscan_2.29.3.orig.tar.lzma,  iscan_2.29.3.orig.tar.xz or iscan.orig)
continue anyway? (y/n)
The error is

make[1]: Entering directory `/usr/local/src/iscan/iscan'
cd . && /bin/bash /usr/local/src/iscan/iscan/missing --run aclocal-1.10 -I m4
configure.ac:273: error: unknown libltdl build type: _LTDL_TYPE
/usr/share/aclocal/ltdl.m4:226: LTDL_INIT is expanded from...
/usr/share/aclocal/ltdl.m4:352: AC_LIB_LTDL is expanded from...
configure.ac:273: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal-1.10: autom4te failed with exit status: 1
make[1]: *** [aclocal.m4] Error 1
make[1]: Leaving directory `/usr/local/src/iscan/iscan'

Suggestions for fixing or even a confirmation this can be reproduced would be helpful. I've also opened an issue for the iscan GitHub project.

Googling "configure.ac:273: error: unknown libltdl build type: _LTDL_TYPE" brings up http://help.lockergnome.com/linux/Beating-libtool-submission--ftopict507073.html but the suggested

autoreconf -fiv
does not work. I might try one of the autotools mailing list, but at this point, I don't even know which one to post to. Should it be autoconf, automake, or libtool, or something else? Pointers appreciated.
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package iscan
dpkg-buildpackage: source version 2.29.1-5
dpkg-buildpackage: source changed by AVASYS CORPORATION <linux-scan...@epson.jp>
 dpkg-source --before-build iscan
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
test -x debian/rules
dh_testroot
rm /usr/local/src/iscan/iscan/debian/iscan.postinst 
/usr/local/src/iscan/iscan/debian/iscan.postrm 
/usr/local/src/iscan/iscan/debian/iscan.preinst 
/usr/local/src/iscan/iscan/debian/iscan.prerm
rm: cannot remove `/usr/local/src/iscan/iscan/debian/iscan.postinst': No such 
file or directory
rm: cannot remove `/usr/local/src/iscan/iscan/debian/iscan.postrm': No such 
file or directory
rm: cannot remove `/usr/local/src/iscan/iscan/debian/iscan.preinst': No such 
file or directory
rm: cannot remove `/usr/local/src/iscan/iscan/debian/iscan.prerm': No such file 
or directory
make: [cleanbuilddir/iscan] Error 1 (ignored)
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
/usr/bin/make  -C .  -k distclean
make[1]: Entering directory `/usr/local/src/iscan/iscan'
make[1]: *** No rule to make target `distclean'.
make[1]: Leaving directory `/usr/local/src/iscan/iscan'
make: [makefile-clean] Error 2 (ignored)
rm -f debian/stamp-makefile-check
rm -f debian/stamp-autotools
rmdir --ignore-fail-on-non-empty .
rmdir: failed to remove `.': Invalid argument
make: [makefile-clean] Error 1 (ignored)
for i in ./config.guess ./config.sub ./config.rpath ; do \
                if test -e $i.cdbs-orig ; then \
                        mv $i.cdbs-orig $i ; \
                fi ; \
        done
dh_clean 
dh_clean: No compatibility level specified in debian/compat
dh_clean: This package will soon FTBFS; time to fix it!
dh_clean: Compatibility levels before 5 are deprecated (level 1 in use)
rm -f debian/stamp-autotools-files
 dpkg-source -b iscan
dpkg-source: warning: source directory 'iscan' is not 
<sourcepackage>-<upstreamversion> 'iscan-2.29.1'
dpkg-source: info: using source format `1.0'
dpkg-source: info: building iscan in iscan_2.29.1-5.tar.gz
dpkg-source: info: building iscan in iscan_2.29.1-5.dsc
 debian/rules build
test -x debian/rules
mkdir -p "."
echo 5 >debian/compat
if ! grep "~usb0\.1.*)" /usr/local/src/iscan/iscan/debian/changelog; then \
            m_arch=`dpkg-architecture -qDEB_BUILD_MULTIARCH` \
            ltdl_v7=`find /usr/lib /usr/lib64 /lib/$m_arch /usr/lib/$m_arch 
-maxdepth 2 -name "libltdl.so.7*" 2> /dev/null`; \
            usb_10=`find /usr/lib /usr/lib64 /lib/$m_arch /usr/lib/$m_arch 
-maxdepth 2 -name "libusb-1.0.so.*" 2> /dev/null`; \
            if ! test -n "$usb_10"; then \
                if test -n "$ltdl_v7"; then \
                    sed -i -e "1s|)|~usb0.1.ltdl7)|" 
/usr/local/src/iscan/iscan/debian/changelog; \
                else \
                    sed -i -e "1s|)|~usb0.1.ltdl3)|" 
/usr/local/src/iscan/iscan/debian/changelog; \
                fi \
            fi \
        fi
for f in /usr/local/src/iscan/iscan/debian/iscan.postinst 
/usr/local/src/iscan/iscan/debian/iscan.postrm 
/usr/local/src/iscan/iscan/debian/iscan.preinst 
/usr/local/src/iscan/iscan/debian/iscan.prerm; do \
            sed -e 's|[@]DEB_SOURCE_PACKAGE[@]|iscan|g' \
                -e 's|[@]DEB_VERSION[@]|2.29.1-5|g' \
                -e 's|[@]DEB_CONFIGURE_PREFIX[@]|/usr|g' \
                -e 's|[@]DEB_CONFIGURE_SYSCONFDIR[@]|/etc|g' \
                -e 's|[@]DEB_CONFIGURE_LOCALSTATEDIR[@]|/var|g' \
                $f.in > $f; \
        done
oops= ; for f in /usr/local/src/iscan/iscan/debian/iscan.postinst 
/usr/local/src/iscan/iscan/debian/iscan.postrm 
/usr/local/src/iscan/iscan/debian/iscan.preinst 
/usr/local/src/iscan/iscan/debian/iscan.prerm; do \
            grep @DEB_ $f >/dev/null 2>&1 && oops="$oops $f"; \
        done; \
        if test x != x"$oops"; then \
            echo "unsubstituted variables in $oops" >&2; \
            exit 2; \
        fi
if test -e /usr/share/misc/config.guess ; then \
                for i in ./config.guess ; do \
                        if ! test -e $i.cdbs-orig ; then \
                                mv $i $i.cdbs-orig ; \
                                cp --remove-destination 
/usr/share/misc/config.guess $i ; \
                        fi ; \
                done ; \
        fi
if test -e /usr/share/misc/config.sub ; then \
                for i in ./config.sub ; do \
                        if ! test -e $i.cdbs-orig ; then \
                                mv $i $i.cdbs-orig ; \
                                cp --remove-destination 
/usr/share/misc/config.sub $i ; \
                        fi ; \
                done ; \
        fi
if test -e /usr/share/gnulib/build-aux/config.rpath ; then \
                for i in ./config.rpath ; do \
                        if ! test -e $i.cdbs-orig ; then \
                                mv $i $i.cdbs-orig ; \
                                cp --remove-destination 
/usr/share/gnulib/build-aux/config.rpath $i ; \
                        fi ; \
                done ; \
        fi
touch debian/stamp-autotools-files
chmod a+x /usr/local/src/iscan/iscan/./configure
mkdir -p .
cd . &&   CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -Wall" CXXFLAGS="-g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall" 
CPPFLAGS="-D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" 
/usr/local/src/iscan/iscan/./configure --build=x86_64-linux-gnu  --prefix=/usr 
--includedir="\${prefix}/include" --mandir="\${prefix}/share/man" 
--infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var 
--libexecdir="\${prefix}/lib/iscan" --srcdir=. --disable-maintainer-mode 
--disable-dependency-tracking --disable-silent-rules   
--enable-dependency-reduction --enable-frontend --enable-gimp --enable-jpeg 
--enable-tiff --enable-png 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... none
checking C++ ABI version... 1002
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for cxxtestgen... no
checking for cxxtestgen.py... no
checking for cxxtestgen.pl... no
checking for dpkg... dpkg
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for GIMP... yes
checking for XML... yes
checking for LIBUSB_1_0... yes
checking for sane_init in -lsane... yes
checking for clock_gettime in -lrt... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sane/sane.h usability... yes
checking sane/sane.h presence... yes
checking for sane/sane.h... yes
checking scsi/sg.h usability... yes
checking scsi/sg.h presence... yes
checking for scsi/sg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking gtk/gtk.h usability... yes
checking gtk/gtk.h presence... yes
checking for gtk/gtk.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for uid_t in sys/types.h... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking whether closedir returns void... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat dereferences a symlink specified with a trailing 
slash... yes
checking whether stat accepts an empty string... no
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for alarm... yes
checking for atexit... yes
checking for bzero... yes
checking for floor... no
checking for memset... yes
checking for regcomp... yes
checking for select... yes
checking for setenv... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strndup... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for a sed that does not truncate output... /bin/sed
checking for lt_dlinit in -lltdl... yes
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports 
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking which extension is used for loadable modules... .so
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for the default library search path... /lib /usr/lib 
/lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i486-linux-gnu 
/usr/lib/i486-linux-gnu /usr/local/lib /lib/x86_64-linux-gnu 
/usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 
checking for objdir... .libs
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen in -ldl... (cached) yes
checking for dlerror... yes
checking for _ prefix in compiled symbols... no
checking whether deplibs are loaded by dlopen... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking for error_t... yes
checking for argz_append... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking sys/dl.h usability... no
checking sys/dl.h presence... no
checking for sys/dl.h... no
checking dld.h usability... no
checking dld.h presence... no
checking for dld.h... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking for string.h... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (cached) yes
checking for memcpy... yes
checking for memmove... yes
checking for strcmp... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking whether timing support will be activated... no
checking whether to build the frontend application... yes
checking for sigprocmask... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating backend/Makefile
config.status: creating backend/tests/Makefile
config.status: creating doc/Makefile
config.status: creating frontend/Makefile
config.status: creating lib/Makefile
config.status: creating lib/pdf/Makefile
config.status: creating lib/tests/Makefile
config.status: creating non-free/Makefile
config.status: creating po/Makefile.in
config.status: WARNING:  po/Makefile.in.in seems to ignore the --datarootdir 
setting
config.status: creating utils/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
touch debian/stamp-autotools
/usr/bin/make  -C .  
make[1]: Entering directory `/usr/local/src/iscan/iscan'
cd . && /bin/bash /usr/local/src/iscan/iscan/missing --run aclocal-1.10 -I m4
configure.ac:273: error: unknown libltdl build type: _LTDL_TYPE
/usr/share/aclocal/ltdl.m4:226: LTDL_INIT is expanded from...
/usr/share/aclocal/ltdl.m4:352: AC_LIB_LTDL is expanded from...
configure.ac:273: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal-1.10: autom4te failed with exit status: 1
make[1]: *** [aclocal.m4] Error 1
make[1]: Leaving directory `/usr/local/src/iscan/iscan'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool

Reply via email to