Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Canon UFRII all-in-one laser driver won't compile.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
1clue
Veteran
Veteran


Joined: 05 Feb 2006
Posts: 1484

PostPosted: Mon Jan 17, 2011 4:24 am    Post subject: Canon UFRII all-in-one laser driver won't compile. Reply with quote

Hi,

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
View user's profile Send private message
1clue
Veteran
Veteran


Joined: 05 Feb 2006
Posts: 1484

PostPosted: Mon Jan 17, 2011 9:42 pm    Post subject: Reply with quote

Reposted in portage and programming, because this is an attempt to put an ebuild into portage and more developers probably watch that thread.

https://forums.gentoo.org/viewtopic-p-6547661.html#6547661
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Tue Jan 18, 2011 10:23 am    Post subject: Reply with quote

Moved from Unsupported Software to Duplicate Threads, please follow up to Canon UFRII all-in-one laser printer driver won't compile.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
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