View previous topic :: View next topic |
Author |
Message |
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Mon Jan 17, 2011 9:40 pm Post subject: Canon UFRII all-in-one laser printer driver won't compile. |
|
|
Hi,
This is a repost because the other forum is probably not watched by a lot of developers.
I just downloaded the Canon UFRII driver for Linux from here: http://software.canon-europe.com/products/0010783.asp This is a newer driver version than any other posts on this forum.
I'm trying to compile and it errors. Not that familiar with make or libtool, so I would like to ask some help.
There is an ebuild from an earlier post, I thought maybe if I can get this to work I could update that and maybe post the ebuild for everyone else to use.
I went to UK/Sources/cndrvcups-lb-2.20 and typed 'allgen.sh' per the README. The whole output isn't that big, so I'll post the whole thing:
Code: |
/bin/sh ./allgen.sh
processing .
Running aclocal ...
Running automake --gnu ...
Running autoconf ...
Running ./configure --prefix=/usr ...
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
configure: creating ./config.status
config.status: creating Makefile
Now type `make' to compile
processing .
Running aclocal ...
Running autoheader...
autoheader-2.65: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.65: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.65: WARNING: is deprecated and discouraged.
autoheader-2.65:
autoheader-2.65: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.65: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.65: WARNING: `acconfig.h':
autoheader-2.65:
autoheader-2.65: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.65: [Define if a function `main' is needed.])
autoheader-2.65:
autoheader-2.65: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.65: WARNING: documentation.
Running automake --gnu ...
Running autoconf ...
Running ./configure --prefix=/usr --enable-progpath=/usr/bin --enable-shared --disable-static ...
configure: WARNING: unrecognized options: --enable-shared, --disable-static
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 gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for main in -lbuftool... yes
checking for main in -lcups... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
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 for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for dup2... yes
checking for memset... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating filter/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --enable-shared, --disable-static
Now type `make' to compile pstoufr2cpca
**Error**: You must have `automake' installed.
Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz
(or a newer version if it is available)
./allgen.sh: line 23: [: =: unary operator expected
processing .
Creating ./aclocal.m4 ...
Running glib-gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in
Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.
Making ./aclocal.m4 writable ...
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running aclocal ...
Running autoheader...
Running automake --gnu ...
Running autoconf ...
processing ./files
Running aclocal ...
Running automake --gnu ...
Running autoconf ...
Running ./configure --libdir=/usr/local/lib64 ...
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 whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... yes
checking for GLADE_PACKAGE... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... fr it de es ja
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/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 if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cngplpmod/Makefile
config.status: creating controls/Makefile
config.status: creating controls/combo/Makefile
config.status: creating controls/checkbutton/Makefile
config.status: creating controls/dialog/Makefile
config.status: creating controls/radiobutton/Makefile
config.status: creating controls/button/Makefile
config.status: creating controls/spinbutton/Makefile
config.status: creating controls/entry/Makefile
config.status: creating controls/textview/Makefile
config.status: creating controls/label/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing libtool commands
Now type `make' to compile libuictlutf2
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.
processing .
Running aclocal ...
Running automake --gnu ...
Running autoconf ...
Running ./configure ...
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
configure: creating ./config.status
config.status: creating Makefile
Now type `make' to compile
processing .
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
Running aclocal ...
Running autoheader...
autoheader-2.65: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.65: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.65: WARNING: is deprecated and discouraged.
autoheader-2.65:
autoheader-2.65: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.65: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.65: WARNING: `acconfig.h':
autoheader-2.65:
autoheader-2.65: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.65: [Define if a function `main' is needed.])
autoheader-2.65:
autoheader-2.65: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.65: WARNING: documentation.
Running automake --gnu ...
Running autoconf ...
Running ./configure --prefix=/usr --enable-static --disable-shared ...
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 gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/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 whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ranlib... (cached) ranlib
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
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 for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for vprintf... yes
checking for _doprnt... no
checking for memset... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strrchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cnpklib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Now type `make' to compile libcnpk
make all-recursive
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
Making all in cnpklib
make[2]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -fPIC -D_UFR2_ -g -O2 -shared -version-info 1:0:0 -o libcnpkufr2.la -rpath /usr/lib cnpklib.lo cnpkopt.lo cnpkproc.lo -lbuftool
libtool: link: can not build a shared library
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
make[2]: *** [libcnpkufr2.la] Error 1
make[2]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
make: *** [all] Error 2
Making install in cnpklib
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -fPIC -D_UFR2_ -g -O2 -shared -version-info 1:0:0 -o libcnpkufr2.la -rpath /usr/lib cnpklib.lo cnpkopt.lo cnpkproc.lo -lbuftool
libtool: link: can not build a shared library
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
make[1]: *** [libcnpkufr2.la] Error 1
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
make: *** [install-recursive] Error 1
for dir in pstoufr2cpca ppd backend cpca cngplp; do\
echo Making modules $dir ...;\
(cd $dir; make) || exit 1;\
done
Making modules pstoufr2cpca ...
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make all-recursive
make[2]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
Making all in filter
make[3]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca/filter'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca/filter'
make[3]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make[3]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make[2]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
Making modules ppd ...
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/ppd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/ppd'
Making modules backend ...
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/backend'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/backend'
make: *** [all] Error 1
|
|
|
Back to top |
|
|
Pes88 Apprentice
Joined: 06 May 2009 Posts: 243
|
Posted: Mon Jan 17, 2011 10:08 pm Post subject: |
|
|
You've read the readme file?
Quote: |
Requirement:
============
* aclocal (1.4.x or above)
* automake (1.4.x or above)
* libcups (1.1.17 or above)
* libbuftool (1.00 or above)
|
Your error is this :
Have you tried to install automake and other software required? _________________ Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Mon Jan 17, 2011 10:11 pm Post subject: |
|
|
Yes, I have automake installed but it seems to ignore that. I read the README in both driver directories, the first directory (common) worked fine. The second one gives problems.
Code: |
* sys-devel/automake
Latest version available: 1.11.1
Latest version installed: 1.11.1
Size of files: 1,041 kB
Homepage: http://sources.redhat.com/automake/
Description: Used to generate Makefile.in from Makefile.am
License: GPL-2
* sys-devel/automake-wrapper
Latest version available: 4
Latest version installed: 4
Size of files: 0 kB
Homepage: http://www.gentoo.org/
Description: wrapper for automake to manage multiple automake versions
License: GPL-2
|
I wondered if maybe since they specify 1.3 and it's 1.11 maybe this driver is too old? But it was only released this year. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Mon Jan 17, 2011 10:31 pm Post subject: |
|
|
To make myself more clear, I have ALL of the dependencies listed in the README installed. They are much higher versions than the requirements, I'm running the stable tree but I think Gentoo's software is a bit greener than the other distros this already works on.
I have experience with OSS software, but it tends to be grails/java rather than linux-native.
Sorry, this is my first attempt at making an ebuild of any sort, I will probably be a bit higher maintenance than we would all like
I will try to RTFM as much as possible, just need a nudge in the right direction here. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Mon Jan 17, 2011 11:15 pm Post subject: |
|
|
Actually, the problem is exactly that they are much higher.
Due to the way automake wrapper works, it doesn't work well for you.
Try running with Want_AUTOMAKE=1.11 - as long as automake files are compatible, it should help.
BTW, quite messy build system and they still use libglade. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Tue Jan 18, 2011 12:24 am Post subject: |
|
|
The place where it fails is this statement:
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`automake' installed."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
NO_AUTOMAKE=yes
}
I don't know what exactly they're trying to do with that line, when you pipe to /dev/null on my system there is no more output. The way I read that, if it returns a nonzero result it dies. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Tue Jan 18, 2011 12:56 am Post subject: |
|
|
Sorry, I made a typo - it's WANT_AUTOMAKE=1.11. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21639
|
Posted: Tue Jan 18, 2011 1:47 am Post subject: |
|
|
1clue wrote: | I don't know what exactly they're trying to do with that line, when you pipe to /dev/null on my system there is no more output. The way I read that, if it returns a nonzero result it dies. | Exactly. They run automake --version and discard any output that might be generated, including the subshell printing that it cannot find automake. If automake was found and understood the option --version, it should exit 0. If the child exits non-zero, either because automake was not found or the file found did not understand --version, then the error message is printed. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Tue Jan 18, 2011 4:14 am Post subject: |
|
|
Ya, but it DOES understand --version. It prints a reasonable version string when you type --version, and an error if you run it with no arguments and there are no files it knows.
The WANT_AUTOMAKE thing worked, now it's having problems with something else.
The thing doesn't build yet but I'm a lot further. Looking through there, its got some warnings that seem to tell me what the error is about.
Near the top, I see this:
Code: |
Running aclocal ...
Running autoheader...
autoheader-2.65: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.65: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.65: WARNING: is deprecated and discouraged.
autoheader-2.65:
autoheader-2.65: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.65: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.65: WARNING: `acconfig.h':
autoheader-2.65:
autoheader-2.65: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.65: [Define if a function `main' is needed.])
autoheader-2.65:
autoheader-2.65: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.65: WARNING: documentation.
Running automake --gnu ...
Running autoconf ...
[b]Running ./configure --prefix=/usr --enable-progpath=/usr/bin --enable-shared --disable-static ...
configure: WARNING: unrecognized options: --enable-shared, --disable-static[/b]
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
|
First, it's having problems making a shared library, and it doesn't understand --enable-shared and --disable-static. It shows up more than once.
Second, the big billboard from autoheader bug me.
Code: |
...
checking for strncasecmp... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Now type `make' to compile backend
[b]./allgen.sh: line 23: [: =: unary operator expected[/b]
processing .
Creating ./aclocal.m4 ...
Running glib-gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in
...
|
This shows up more than once too:
Code: |
Making ./aclocal.m4 writable ...
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: [b]Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in[/b] and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: [b]Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.[/b]
Running aclocal ...
Running autoheader...
Running automake --gnu ...
Running autoconf ...
processing ./files
|
Code: |
config.status: executing default-1 commands
config.status: executing libtool commands
Now type `make' to compile libuictlutf2
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.
|
Now finally, we get to the error:
Code: |
Now type `make' to compile libcnpk
make all-recursive
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
Making all in cnpklib
make[2]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -fPIC -D_UFR2_ -g -O2 -shared -version-info 1:0:0 -o libcnpkufr2.la -rpath /usr/lib cnpklib.lo cnpkopt.lo cnpkproc.lo -lbuftool
libtool: link: can not build a shared library
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
make[2]: *** [libcnpkufr2.la] Error 1
make[2]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
make: *** [all] Error 2
Making install in cnpklib
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -fPIC -D_UFR2_ -g -O2 -shared -version-info 1:0:0 -o libcnpkufr2.la -rpath /usr/lib cnpklib.lo cnpkopt.lo cnpkproc.lo -lbuftool
libtool: link: can not build a shared library
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
make[1]: *** [libcnpkufr2.la] Error 1
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
make: *** [install-recursive] Error 1
for dir in pstoufr2cpca ppd backend cpca cngplp; do\
echo Making modules $dir ...;\
(cd $dir; make) || exit 1;\
done
Making modules pstoufr2cpca ...
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make all-recursive
make[2]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
Making all in filter
make[3]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca/filter'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca/filter'
make[3]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make[3]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make[2]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/pstoufr2cpca'
Making modules ppd ...
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/ppd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/ppd'
Making modules backend ...
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/backend'
make all-am
make[2]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/backend'
make[2]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/backend'
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/backend'
Making modules cpca ...
make[1]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
make all-recursive
make[2]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
Making all in cnpklib
make[3]: Entering directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -fPIC -D_UFR2_ -g -O2 -shared -version-info 1:0:0 -o libcnpkufr2.la -rpath /usr/lib cnpklib.lo cnpkopt.lo cnpkproc.lo -lbuftool
libtool: link: can not build a shared library
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
make[3]: *** [libcnpkufr2.la] Error 1
make[3]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca/cnpklib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ken/canon/UK/Sources/cndrvcups-lb-2.20/cpca'
make: *** [all] Error 1
|
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21639
|
Posted: Tue Jan 18, 2011 4:24 am Post subject: |
|
|
How many source files are provided and how many outputs is it supposed to produce? This build system has enough problems that it might be faster to write a replacement if the project is not large. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Tue Jan 18, 2011 6:28 am Post subject: |
|
|
OK, here it is. Not including files with no extension:
5 .0
1 .1
2 .BIN
122 .DAT
36 .ICC
19 .am
26 .c
1 .glade
47 .h
32 .in
2 .in~
1 .la
6 .m4
1 .pl
5 .po
3 .postinst
3 .postrm
1 .pot
202 .ppd
199 .res
10 .sh
1 .so
1 .spec
6 .xml
Frankly it looks like almost no source files, it's all printer definitions. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Tue Jan 18, 2011 9:46 am Post subject: |
|
|
Well, I'll tell you something - just for the kicks, I've downloaded the tarball.
Most of it didn't built for me, as I didn't have libbuftool, but I did get through configure phase...
though I didn't run that script, just 'autoreconf -f --install' in every dir with a configure.{in,ac} - only place were I needed more
was/were the dirs were the script required glib-gettextize.
Probably the usual happened - libtool macro got updated, but not ltmain.sh scripts. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed Jan 19, 2011 3:49 am Post subject: |
|
|
I did that. It seems to have worked without error.
Now what?
I am helpless like a kitten in a paper bag. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21639
|
Posted: Wed Jan 19, 2011 4:51 am Post subject: |
|
|
If you have it working by hand, then it is time to record your work in an ebuild so that it is repeatable and can be managed by Portage. Your first post in the thread mentions an older ebuild, so we can use that as a starting point. Could you post that, including any changes you have made to it, and a record of all the commands you need to run starting from unpacking the source up through where you would run make install, including any arguments you might need to pass to make install? Given that, we can adjust the ebuild to include those commands at the right phases. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed Jan 19, 2011 5:55 am Post subject: |
|
|
Only thing is, I don't know if it works. Did I install it by doing all that? |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed Jan 19, 2011 6:50 am Post subject: |
|
|
Don't see any evidence that it is installed. I tried restarting cupsd, the drivers don't appear to be available. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21639
|
Posted: Thu Jan 20, 2011 2:52 am Post subject: |
|
|
I cannot say for sure whether you installed it until you tell us exactly what commands you have run, what their output was, and whether or not you ran them as root. From your terse messages, I think you have not yet installed it. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Thu Jan 20, 2011 4:16 am Post subject: |
|
|
I did what VoidMage said. First I did it as me, then as root, then I restarted cupsd. When I tried to make a new printer, only the old driver was available and that one doesn't work for me.
I found everywhere where there was a configure.in or configure.ac, and ran autoreconf -f --install in that directory. Basically top down, as the find command listed them out.
The only thing, I never saw anything telling me to run glib-gettextize.
I'm pretty positive I didn't do something necessary, or did it wrong. |
|
Back to top |
|
|
pillarsdotnet n00b
Joined: 26 Aug 2012 Posts: 2 Location: Norfolk VA
|
Posted: Sun Aug 26, 2012 11:34 pm Post subject: Working in Ubuntu 12.04 (amd64) |
|
|
Finally got Ubuntu 12.04 (amd64) printing to a Canon UFRII printer. The procedure is somewhat less than intuitive.
- Run the following commands which are necessary to support the binary blobs included in the driver files:
Code: |
ln -s lib /usr/lib64
apt-get install ia32-libs
|
Visit the Canon-Australia support site and download the most recent drivers, currently Linux_UFRII_PrinterDriver_V250_uk_EN.tar.gz.
Unpack the file.
In the Sources directory, unpack the cndrvcups-common-2.50-1.tar.gz and cndrvcups-lb-2.50-1.tar.gz files.
Edit the debian/control files and change all instances of "Architecture: i386" to "Architecture: i386 amd64".
Edit the debian/rules files and uncomment the "dh_makeshlibs" lines.
Edit the cndrvcups-lb-2.50/allgen.sh file and delete all instances of "--enable-static", "--disable-static", "--enable-shared", and "--disable-shared" options.
Run the following commands from the Sources directory to build and install the driver software: Code: |
cd cndrvcups-common-2.50cndrv
debuild binary
cd ..
dpkg -i cndrvcups-common_2.50-1_amd64.deb
cd cndrvcups-lb-2.50
debuild binary
cd ..
dpkg -i cndrvcups-lipslx_2.50-1_amd64.deb cndrvcups-ufr2-uk_2.50-1_amd64.deb cups-ufr2-us_2.50-1_amd64.deb
|
Alternatively, you can just run the shellscript I attached to the following:
https://bugs.launchpad.net/ubuntu/+bug/502920/comments/15 _________________ Good, Fast, Cheap
(pick any two) |
|
Back to top |
|
|
ShadowCat8 Apprentice
Joined: 07 Oct 2008 Posts: 173 Location: San Bernardino, CA, USA
|
Posted: Tue Mar 26, 2013 11:59 pm Post subject: |
|
|
Greetings,
A quick question with regards to your script: Where (e.g. what package) can we find debuild in the portage tree or any overlay for use with your script?
I have already installed dpkg, debianutils and debhelper and I still don't have debuild available.
I'm trying to get printing going to a Canon imageCLASS MF7470. I have gotten the source code compiled and installed (using all the techniques described in this thread; I used "WANT_AUTOMAKE=1.11 autoreconf -f --install" in each directory with a configure.[in,ac], updated the debian/control file with "amd64", uncommented the "dh_makeshlibs" line in debian/rules file and deleted all instances of "--enable-static", "--disable-static", "--enable-shared", and "--disable-shared" in the allgen.sh script), but any of the drivers I use from the UFRII package leaves me with a printout that only says:
Canon imageCLASS MF7470 wrote: | **** Unable to open initial device, quitting. |
I'm pretty sure that something likely got missed, skipped or changed from the steps I took to get their code to compile, and would appreciate any help in getting this going.
TIA. _________________ ________________________
"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."
-- Albert Einstein |
|
Back to top |
|
|
pillarsdotnet n00b
Joined: 26 Aug 2012 Posts: 2 Location: Norfolk VA
|
Posted: Wed Mar 27, 2013 12:44 am Post subject: |
|
|
ShadowCat8 wrote: | Greetings,
A quick question with regards to your script: Where (e.g. what package) can we find debuild in the portage tree or any overlay for use with your script?
I have already installed dpkg, debianutils and debhelper and I still don't have debuild available. |
Sorry; the script assumes a debian-based distro. For Gentoo, you can roll your own, as usual.
On Debian, debuild is part of the devscripts package. _________________ Good, Fast, Cheap
(pick any two) |
|
Back to top |
|
|
ShadowCat8 Apprentice
Joined: 07 Oct 2008 Posts: 173 Location: San Bernardino, CA, USA
|
Posted: Wed Mar 27, 2013 6:36 pm Post subject: |
|
|
Okay,
Thanks for the prompt response.
Still not seeing where the issue actually lies yet, but I just pulled the full debug output from trying to do a print of a CUPS test page, so I will see if I can find what device or file it thinks it's missing.
Until then, I will go back to the Canon imageRunner 7105 foomatic/pxlmono driver that will allow me to print one copy of one job at a time.
Interesting to note: When searching Google for "linux CUPS 'unable to open initial device'", the two manufacturers that come up are the two that have both put out their own driver code; HP & Canon. Unfortunately for me, HP seems to exhibit the behavior more often than Canon.
I'll let you know what I find. _________________ ________________________
"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."
-- Albert Einstein |
|
Back to top |
|
|
ShadowCat8 Apprentice
Joined: 07 Oct 2008 Posts: 173 Location: San Bernardino, CA, USA
|
Posted: Mon Jun 23, 2014 9:57 pm Post subject: |
|
|
Greetings,
I know it's been a while since there was any activity on this thread, but I had to revisit this issue again and am happy to report that thanks to pacho and the folks down at support-au.canon.com.au, we have working ebuilds for these drivers...
Code: | ~ # emerge -s cndrvcups
Searching...
[ Results for search key : cndrv ]
[ Applications found : 2 ]
* net-print/cndrvcups-common-lb
Latest version available: 2.70-r2
Latest version installed: 2.70-r2
Size of files: 77,340 kB
Homepage: http://support-au.canon.com.au/contents/AU/EN/0100270808.html
Description: Common files for Canon drivers
License: Canon-UFR-II GPL-2 MIT
* net-print/cndrvcups-lb
Latest version available: 2.70-r2
Latest version installed: 2.70-r2
Size of files: 77,340 kB
Homepage: http://support-au.canon.com.au/contents/AU/EN/0100270808.html
Description: Canon UFR II / LIPSLX Printer Driver for Linux
License: Canon-UFR-II
~ # |
Thank you all for your hard work on this one, because, as you can see above, there were a few of us going crazy trying to do the building of the source and/or hack the binaries into place!
For these, I just had to do the keyword entry and emerge and it went smoothly... Ran the test print and it looks *great*!!!
Thanks again! _________________ ________________________
"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."
-- Albert Einstein |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|