Есть дрова на Canon MF 4010, под Линукс, (с исходниками), как их можно переделать под Фряху....

Код: Выделить всё
# uname -a
FreeBSD server.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
# pkg_info | grep cups
cups-base-1.3.10_3 Common UNIX Printing System: Server
cups-client-1.3.10_3 Common UNIX Printing System: Library cups
cups-image-1.3.10_3 Common UNIX Printing System: Library cupsimage
cups-pstoraster-8.15.4_3 Postscript interpreter for CUPS printing to non-PS printers
cupsddk-1.2.3_2 CUPS Driver Development Kit
Код: Выделить всё
Now type `make' to compile.
make all-recursive
Making all in po
Making all in cngplpmod
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -fPIC -g -O2 -MT cngplpmod.lo -MD -MP -MF .deps/cngplpmod.Tpo -c -o cngplpmod.lo cngplpmod.c
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -fPIC -g -O2 -MT cngplpmod.lo -MD -MP -MF .deps/cngplpmod.Tpo -c cngplpmod.c -fPIC -DPIC -o .libs/cngplpmod.o
In file included from cngplpmod.c:27:
cngplpmod.h:31:23: error: cups/cups.h: No such file or directory
cngplpmod.c:38: error: expected declaration specifiers or '...' before 'cups_dest_t'
cngplpmod.c:39: error: expected declaration specifiers or '...' before 'cups_dest_t'
cngplpmod.c:41: error: expected declaration specifiers or '...' before 'cups_dest_t'
cngplpmod.c: In function 'cngplpInitOptions':
cngplpmod.c:138: error: 'cups_dest_t' undeclared (first use in this function)
cngplpmod.c:138: error: (Each undeclared identifier is reported only once
cngplpmod.c:138: error: for each function it appears in.)
...................................
дальше нет смысла цитировать
cups.h оно не видитcngplpmod.h:31:23: error: cups/cups.h: No such file or directory
Это да.... трабл в том, что я не знаю откуда его вообще взять? этот файл в составе чего должен быть? в исходниках драйвера или cups надо брать в исходниках?paradox писал(а):судя по логуcups.h оно не видитcngplpmod.h:31:23: error: cups/cups.h: No such file or directory
или не там ищет
пробуй конфигуре задать правильно
это что за зверюга такая? откуда его породить можно? Я так понимаю это модуль, только куда он у меня мог подеваться?gcc -O2 -Wall -fPIC -g -O2 -o cnjatool main.o -lcups
/usr/bin/ld: cannot find -lcups
*** Error code 1
Код: Выделить всё
# ./configure --help
`configure' configures this package to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
[color=#4040FF] --includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include][/color]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-static[=PKGS] build static libraries [default=yes]
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--with-tags[=TAGS] include additional configurations [automatic]
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
F77 Fortran 77 compiler command
FFLAGS Fortran 77 compiler flags
PKG_CONFIG path to pkg-config utility
PACKAGE_CFLAGS
C compiler flags for PACKAGE, overriding pkg-config
PACKAGE_LIBS
linker flags for PACKAGE, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Код: Выделить всё
\\3OJIOTO
\\3OJIOTO\Принтер Microsoft XPS Document Writer
\\3OJIOTO\C$ Стандартный общий ресурс
\\3OJIOTO\ADMIN$ Удаленный Admin
\\3OJIOTO\CanonMF4 Canon MF4010 Series UFRII LT
\\3OJIOTO\Принтер2 Microsoft Office Document Image Writer
\\3OJIOTO\1
\\3OJIOTO\Сканер
\\3OJIOTO\SharedDocs
\\3OJIOTO\print$ Драйверы принтеров
\\3OJIOTO\D$ Стандартный общий ресурс
\\3OJIOTO\IPC$ Удаленный IPC
Код: Выделить всё
> /usr/local/libexec/cups/filter/pstoufr2cpca
zsh: segmentation fault (core dumped) /usr/local/libexec/cups/filter/pstoufr2cpca
Код: Выделить всё
> sudo /usr/local/libexec/cups/filter/pstoufr2cpca
zsh: segmentation fault (core dumped) sudo /usr/local/libexec/cups/filter/pstoufr2cpca
Код: Выделить всё
CanonMF4 "/usr/local/libexec/cups/filter/pstoufr2cpca failed"
Description: local-net-printer
Location: MSHOME
Printer Driver: Canon MF4010 Series UFRII LT ver.1.7
Printer State: idle, accepting jobs, published.
Device URI: smb://192.168.0.175/CanonMF4
Код: Выделить всё
Running autoconf ...
configure.in:12: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:1532: _LT_SYS_MODULE_PATH_AIX is expanded from...
aclocal.m4:4655: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:5787: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:597: _LT_SETUP is expanded from...
aclocal.m4:523: LT_INIT is expanded from...
aclocal.m4:562: AM_PROG_LIBTOOL is expanded from...
configure.in:12: the top level
configure.in:12: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:4655: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:5787: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:597: _LT_SETUP is expanded from...
aclocal.m4:523: LT_INIT is expanded from...
aclocal.m4:562: AM_PROG_LIBTOOL is expanded from...
configure.in:12: the top level
Running ./configure --enable-maintainer-mode ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking build system type... i386-unknown-freebsd8.0
checking host system type... i386-unknown-freebsd8.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/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... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/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 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/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.0 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... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... yes
checking for GLADE_PACKAGE... 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... no
checking libintl.h presence... no
checking for libintl.h... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cnjatool/Makefile
config.status: creating src/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 libtool commands
config.status: executing default-1 commands
Now type `make' to compile.
make all-recursive
Making all in po
Making all in src
Making all in cnjatool
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -fPIC -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c:32:23: error: cups/cups.h: No such file or directory
main.c: In function 'CheckCUPSEntry':
main.c:484: error: 'cups_dest_t' undeclared (first use in this function)
main.c:484: error: (Each undeclared identifier is reported only once
main.c:484: error: for each function it appears in.)
main.c:484: error: 'dest' undeclared (first use in this function)
main.c:485: error: 'curr' undeclared (first use in this function)
main.c:489: warning: implicit declaration of function 'cupsGetDests'
main.c:490: warning: implicit declaration of function 'cupsGetDest'
main.c:492: warning: implicit declaration of function 'cupsFreeDests'
*** Error code 1
Stop in /usr/ports/1/cndrvcups-common-2.20/cngplp/cnjatool.
*** Error code 1
Stop in /usr/ports/1/cndrvcups-common-2.20/cngplp.
*** Error code 1
Stop in /usr/ports/1/cndrvcups-common-2.20/cngplp.