HP Color LaserJet CP1215 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: November 25, 2013 01:21PM

MacBook Pro: OS X 10.9 (Mavericks)

coreutils @8.21 sysutils/coreutils
gsed @4.2.2 textproc/gsed
wget @1.14 net/wget
ghostscript @9.10 print/ghostscript

I have followed the instructions for installing the drivers for HP CP1215 given at http://foo2zjs.rkkda.com/INSTALL.osx. But, I am unable to proceed beyond installing Macports. While installing Foomatic Filters (I have tried 4.0.12. 4.0.17 as well as 4.0-20131121), I get following errors:

"configure: error: cannot find a2ps, enscript, mpage, or CUPS' texttops. You need to have at least one installed"

I have little knowledge of programming and would appreciate simple instructions.Thanks in advance.

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: rickrich ()
Date: November 25, 2013 01:55PM

$ port list | egrep "a2ps|enscript|mpage|cups"
Warning: port definitions are more than two weeks old, consider using selfupdate
a2ps @4.14 print/a2ps
a2ps-j @1.45 print/a2ps-j
cups-pdf @2.5.1 print/cups-pdf
enscript @1.6.4 print/enscript
mpage @2.5.5 print/mpage

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: November 26, 2013 02:14PM

bash-3.2$ port list | egrep "a2ps|enscript|mpage|cups"

libgnomecups @0.2.3 gnome/libgnomecups
p5-net-cups @0.610.0 perl/p5-net-cups
p5.8-net-cups @0.610.0 perl/p5-net-cups
p5.10-net-cups @0.610.0 perl/p5-net-cups
p5.12-net-cups @0.610.0 perl/p5-net-cups
p5.14-net-cups @0.610.0 perl/p5-net-cups
p5.16-net-cups @0.610.0 perl/p5-net-cups
a2ps @4.14 print/a2ps
a2ps-j @1.45 print/a2ps-j
cups-pdf @2.6.1 print/cups-pdf
enscript @1.6.6 print/enscript
mpage @2.5.5 print/mpage
vimpager @1.8.2 sysutils/vimpager

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: rickrich ()
Date: November 26, 2013 10:26PM

Don't know why configure doesn't work on your system.

Maybe try: --without-file-converter

$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr --disable-dbus --without-file-converter

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: November 27, 2013 11:58AM

No change in status:

configure: error: cannot find a2ps, enscript, mpage, or CUPS' texttops. You need to have at least one installed

Screen dump is given below:

bash-3.2$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr --disable-dbus --without-file-converter

checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether gcc and cc understand -c and -o together... yes
checking for roundf in -lm... yes
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 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 memory.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
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 stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for dup2... yes
checking for getcwd... yes
checking for gethostname... yes
checking for regcomp... yes
checking for setenv... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strrchr... yes
checking for strstr... yes
checking for strcasestr... yes
checking for strtol... yes
checking for perl... /opt/local/bin/perl
checking for printcap/... /etc/printcap
checking for cups-config... /usr/bin/cups-config
checking for ppr/... /usr/lib/ppr
checking for ppr/interfaces/... /usr/lib/ppr/interfaces
checking for ppr/lib/... /usr/lib/ppr/lib
checking for a2ps... no
checking for enscript... no
checking for mpage... no
checking for texttops... no
file-converter: no

configure: error: cannot find a2ps, enscript, mpage, or CUPS' texttops. You need to have at least one installed

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: rickrich ()
Date: November 27, 2013 02:00PM

Did you do:

$ sudo port install a2ps
$ ll /opt/local/bin/a2ps
-rwxr-xr-x 1 root admin 366064 Nov 27 12:56 /opt/local/bin/a2ps*

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: November 30, 2013 08:57AM

Installed a2ps using $ sudo port install a2ps

bash-3.2$ ls -l /opt/local/bin/a2ps
-rwxr-xr-x 1 root admin 355324 Nov 30 17:45 /opt/local/bin/a2ps

Tried installing the Foomatic-RIP but got stuck at "make" step. Following error message was displayed:

bash-3.2$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
make[1]: *** No rule to make target `foomaticrip.c', needed by `foomatic_rip-foomaticrip.o'. Stop.
make: *** [all] Error 2

Screen dump of installing Foomatic-RIP is given below:

bash-3.2$ cd foomatic-filters-4.0-20131126

bash-3.2$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr --disable-dbus

checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether gcc and cc understand -c and -o together... yes
checking for roundf in -lm... yes
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 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 memory.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
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 stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for dup2... yes
checking for getcwd... yes
checking for gethostname... yes
checking for regcomp... yes
checking for setenv... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strrchr... yes
checking for strstr... yes
checking for strcasestr... yes
checking for strtol... yes
checking for perl... /opt/local/bin/perl
checking for printcap/... /etc/printcap
checking for cups-config... /usr/bin/cups-config
checking for ppr/... /usr/lib/ppr
checking for ppr/interfaces/... /usr/lib/ppr/interfaces
checking for ppr/lib/... /usr/lib/ppr/lib
checking for a2ps... /opt/local/bin/a2ps
checking for enscript... no
checking for mpage... no
checking for texttops... no
file-converter:
GNU Compatible Echo: echo
Execpath: /usr/bin:/usr/local/bin:/usr/bin:/bin
configure: creating ./config.status
config.status: creating Makefile
config.status: creating beh
config.status: creating foomatic-rip.1
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Finished configuring.
Type 'make' to build the package
Type 'make install' to install the base foomatic bits and links appropriate for
CUPS and PPR to use foomatic
Type 'make install-main' to install the base foomatic bits.
Type 'make install-{cups|ppr}' to install the base foomatic bits and links
appropriate for CUPS or PPR to use foomatic
Type 'make tests' to run some basic sanity tests (in place)

bash-3.2$ make

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
make[1]: *** No rule to make target `foomaticrip.c', needed by `foomatic_rip-foomaticrip.o'. Stop.
make: *** [all] Error 2

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: rickrich ()
Date: November 30, 2013 10:04AM

$ pwd
/Users/rick/foomatic-filters-4.0.17

$ ll foomaticrip.c
-rw-r--r-- 1 rick rick 59412 Jul 2 2012 foomaticrip.c

$ make
make all-am

Don't know what is the problem.

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: November 30, 2013 02:52PM

I know this is taking a long time, but please don't hang up now.
Downloaded foomatic-filters-4.0.20131130. Now got a new set of error message.

bash-3.2$ pwd
/Users/Ajit/downloads/foomatic-filters-4.0.20131130

bash-3.2$ ls -l foomaticrip.c
-rw-r--r--@ 1 Ajit staff 59412 Nov 30 06:10 foomaticrip.c

bash-3.2$ make

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-foomaticrip.o -MD -MP -MF .deps/foomatic_rip-foomaticrip.Tpo -c -o foomatic_rip-foomaticrip.o `test -f 'foomaticrip.c' || echo './'`foomaticrip.c
In file included from foomaticrip.c:25:
./util.h:73:8: error: expected parameter declarator
size_t strlcpy(char *dest, const char *src, size_t size);
^
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
In file included from foomaticrip.c:25:
./util.h:73:8: error: expected ')'
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
./util.h:73:8: note: to match this '('
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
In file included from foomaticrip.c:25:
./util.h:73:8: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
size_t strlcpy(char *dest, const char *src, size_t size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^~~~~~~~~~~~~~~~~~~~~
In file included from foomaticrip.c:25:
./util.h:73:8: error: conflicting types for '__builtin___strlcpy_chk'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
./util.h:73:8: note: '__builtin___strlcpy_chk' is a builtin with type 'unsigned
long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
In file included from foomaticrip.c:25:
./util.h:74:8: error: expected parameter declarator
size_t strlcat(char *dest, const char *src, size_t size);
^
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
In file included from foomaticrip.c:25:
./util.h:74:8: error: expected ')'
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
./util.h:74:8: note: to match this '('
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
In file included from foomaticrip.c:25:
./util.h:74:8: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
size_t strlcat(char *dest, const char *src, size_t size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^~~~~~~~~~~~~~~~~~~~~
In file included from foomaticrip.c:25:
./util.h:74:8: error: conflicting types for '__builtin___strlcat_chk'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
./util.h:74:8: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned
long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
2 warnings and 6 errors generated.
make[1]: *** [foomatic_rip-foomaticrip.o] Error 1
make: *** [all] Error 2

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: rickrich ()
Date: December 03, 2013 05:59PM

$ ssh mac
Last login: Sat Nov 30 09:03:10 2013 from quad
$ wget http://www.openprinting.org/download/foomatic/foomatic-filters-devel-4.0-20131203.tar.gz

$ tar zxvf foomatic-filters-devel-4.0-20131203.tar.gz

$ cd foomatic-filters-devel-4.0-20131203/

$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr --disable-dbus
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether gcc and cc understand -c and -o together... yes
checking for roundf in -lm... yes
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 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 memory.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
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 stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for dup2... yes
checking for getcwd... yes
checking for gethostname... yes
checking for regcomp... yes
checking for setenv... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strndup... no
checking for strrchr... yes
checking for strstr... yes
checking for strcasestr... yes
checking for strtol... yes
checking for perl... /opt/local/bin/perl
checking for printcap/... /etc/printcap
checking for cups-config... /usr/bin/cups-config
checking for ppr/... /usr/lib/ppr
checking for ppr/interfaces/... /usr/lib/ppr/interfaces
checking for ppr/lib/... /usr/lib/ppr/lib
checking for a2ps... /opt/local/bin/a2ps
checking for enscript... /usr/bin/enscript
checking for mpage... no
checking for texttops... no
file-converter:
GNU Compatible Echo: echo
Execpath: /usr/bin:/usr/local/bin:/usr/bin:/bin
configure: creating ./config.status
config.status: creating Makefile
config.status: creating beh
config.status: creating foomatic-rip.1
config.status: creating config.h
config.status: executing depfiles commands
Finished configuring.
Type 'make' to build the package
Type 'make install' to install the base foomatic bits and links appropriate for
CUPS and PPR to use foomatic
Type 'make install-main' to install the base foomatic bits.
Type 'make install-{cups|ppr}' to install the base foomatic bits and links
appropriate for CUPS or PPR to use foomatic
Type 'make tests' to run some basic sanity tests (in place)
$ make
make all-am
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-foomaticrip.o -MD -MP -MF .deps/foomatic_rip-foomaticrip.Tpo -c -o foomatic_rip-foomaticrip.o `test -f 'foomaticrip.c' || echo './'`foomaticrip.c
mv -f .deps/foomatic_rip-foomaticrip.Tpo .deps/foomatic_rip-foomaticrip.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-options.o -MD -MP -MF .deps/foomatic_rip-options.Tpo -c -o foomatic_rip-options.o `test -f 'options.c' || echo './'`options.c
mv -f .deps/foomatic_rip-options.Tpo .deps/foomatic_rip-options.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-pdf.o -MD -MP -MF .deps/foomatic_rip-pdf.Tpo -c -o foomatic_rip-pdf.o `test -f 'pdf.c' || echo './'`pdf.c
mv -f .deps/foomatic_rip-pdf.Tpo .deps/foomatic_rip-pdf.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-postscript.o -MD -MP -MF .deps/foomatic_rip-postscript.Tpo -c -o foomatic_rip-postscript.o `test -f 'postscript.c' || echo './'`postscript.c
mv -f .deps/foomatic_rip-postscript.Tpo .deps/foomatic_rip-postscript.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-util.o -MD -MP -MF .deps/foomatic_rip-util.Tpo -c -o foomatic_rip-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/foomatic_rip-util.Tpo .deps/foomatic_rip-util.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-spooler.o -MD -MP -MF .deps/foomatic_rip-spooler.Tpo -c -o foomatic_rip-spooler.o `test -f 'spooler.c' || echo './'`spooler.c
mv -f .deps/foomatic_rip-spooler.Tpo .deps/foomatic_rip-spooler.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-process.o -MD -MP -MF .deps/foomatic_rip-process.Tpo -c -o foomatic_rip-process.o `test -f 'process.c' || echo './'`process.c
mv -f .deps/foomatic_rip-process.Tpo .deps/foomatic_rip-process.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-renderer.o -MD -MP -MF .deps/foomatic_rip-renderer.Tpo -c -o foomatic_rip-renderer.o `test -f 'renderer.c' || echo './'`renderer.c
mv -f .deps/foomatic_rip-renderer.Tpo .deps/foomatic_rip-renderer.Po
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-fileconverter.o -MD -MP -MF .deps/foomatic_rip-fileconverter.Tpo -c -o foomatic_rip-fileconverter.o `test -f 'fileconverter.c' || echo './'`fileconverter.c
mv -f .deps/foomatic_rip-fileconverter.Tpo .deps/foomatic_rip-fileconverter.Po
gcc -g -O2 -L/opt/local/lib -o foomatic-rip foomatic_rip-foomaticrip.o foomatic_rip-options.o foomatic_rip-pdf.o foomatic_rip-postscript.o foomatic_rip-util.o foomatic_rip-spooler.o foomatic_rip-process.o foomatic_rip-renderer.o foomatic_rip-fileconverter.o -lm
$

Works here on a mac.

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: December 04, 2013 10:25AM

$ ssh mac doesn't work on my Mac. Is it mandatory?

bash-3.2$ ssh mac
ssh: connect to host mac port 22: Operation timed out

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: rickrich ()
Date: December 04, 2013 11:07AM

No. ssh mac what I use to get a terminal from my Linux machines to a mac.

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: December 04, 2013 11:57AM

No change. Same old error:

2 warnings and 6 errors generated.
make[1]: *** [foomatic_rip-foomaticrip.o] Error 1
make: *** [all] Error 2

Seems something is wrong with my installation. How do I uninstall all the files (Macports-2.2.1-10.9-Mavericks.pkg, coreutils, gsed, wget, ghostscript, a2ps, foomatic-filters-4.0.xx, foomatic-filters-devel-4.0-xx) before attempting re-install from scratch.

I have another doubt regarding Ghostscript as 9.10 is installed by default while executing "$ sudo port install ghostscript". But Ghostscript 9.+ is said to be broken with colour prints. Also, INSTALL.osx recommends following:

NOTE: Use ghostscript 8.63 or before OR 8.64_2 or after if you want
color (i.e. HP CP1215, Samsung, etc..).

Therefore, how do I install Ghostscript 8.63 when 9.10 is installed by default?

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: December 06, 2013 02:31PM

Re-installed OS X Mavericks after erasing the Hard Disk and followed the steps suggested by you till now. However, installation gets stuck at the "make" stage after installing Foomatic files. Seems, Foomatic files aren't compatible with Mavericks. Any advice?

Installation sequence and error message is given below:

Installed Xcode 5.0.2 and command line tools from Apple App Store.
Installed MacPorts-2.2.1-10.9-Mavericks.pkg from www.macports.org

Ajits-MacBook-Pro:~ Ajit$ export PATH=$PATH:/opt/local/bin

Ajits-MacBook-Pro:~ Ajit$ sudo port selfupdate
Ajits-MacBook-Pro:~ Ajit$ sudo port install coreutils
Ajits-MacBook-Pro:~ Ajit$ sudo port install wget
Ajits-MacBook-Pro:~ Ajit$ sudo port install gsed
Ajits-MacBook-Pro:~ Ajit$ sudo port install a2ps
Ajits-MacBook-Pro:~ Ajit$ sudo port install ghostscript

Ajits-MacBook-Pro:~ Ajit$ port list coreutils gsed wget a2ps ghostscript

coreutils @8.21 sysutils/coreutils
gsed @4.2.2 textproc/gsed
wget @1.14 net/wget
a2ps @4.14 print/a2ps
ghostscript @9.10 print/ghostscript

Ajits-MacBook-Pro:~ Ajit$ wget http://www.openprinting.org/download/foomatic/foomatic-filters-devel-4.0-20131206.tar.gz

Ajits-MacBook-Pro:~ Ajit$ tar zxvf foomatic-filters-devel-4.0-20131206.tar.gz

Ajits-MacBook-Pro:~ Ajit$ cd foomatic-filters-devel-4.0-20131206/

Ajits-MacBook-Pro:foomatic-filters-devel-4.0-20131206 Ajit$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr --disable-dbus

Ajits-MacBook-Pro:foomatic-filters-devel-4.0-20131206 Ajit$ make

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
gcc -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/etc/foomatic"' -I/opt/local/include -g -O2 -MT foomatic_rip-foomaticrip.o -MD -MP -MF .deps/foomatic_rip-foomaticrip.Tpo -c -o foomatic_rip-foomaticrip.o `test -f 'foomaticrip.c' || echo './'`foomaticrip.c

In file included from foomaticrip.c:25:
./util.h:73:8: error: expected parameter declarator
size_t strlcpy(char *dest, const char *src, size_t size);
^
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
In file included from foomaticrip.c:25:
./util.h:73:8: error: expected ')'
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
./util.h:73:8: note: to match this '('
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
In file included from foomaticrip.c:25:
./util.h:73:8: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
size_t strlcpy(char *dest, const char *src, size_t size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^~~~~~~~~~~~~~~~~~~~~
In file included from foomaticrip.c:25:
./util.h:73:8: error: conflicting types for '__builtin___strlcpy_chk'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
./util.h:73:8: note: '__builtin___strlcpy_chk' is a builtin with type 'unsigned
long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
In file included from foomaticrip.c:25:
./util.h:74:8: error: expected parameter declarator
size_t strlcat(char *dest, const char *src, size_t size);
^
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
In file included from foomaticrip.c:25:
./util.h:74:8: error: expected ')'
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
./util.h:74:8: note: to match this '('
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
In file included from foomaticrip.c:25:
./util.h:74:8: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
size_t strlcat(char *dest, const char *src, size_t size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^~~~~~~~~~~~~~~~~~~~~
In file included from foomaticrip.c:25:
./util.h:74:8: error: conflicting types for '__builtin___strlcat_chk'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
./util.h:74:8: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned
long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
2 warnings and 6 errors generated.
make[1]: *** [foomatic_rip-foomaticrip.o] Error 1
make: *** [all] Error 2

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: rickrich ()
Date: December 06, 2013 02:47PM

Contact the author of foomatic-filters.

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: ajit277 ()
Date: December 11, 2013 02:19PM

No luck. Anyway, thanx for your time and patience.

Options: ReplyQuote
Re: Unable to install HP CP1215 printer driver on OS X 10.9
Posted by: billatq ()
Date: May 18, 2014 11:08PM

There's no need to build the foomatic filters from source. Take a look here: https://discussions.apple.com/message/25724604#25724604

Fun things that I found when setting up this printer again after upgrading to Mavericks:

* XCode doesn't bother putting things in the standard places. You'll need to do: xcode-select --install
* If you set up homebrew to install gnu-sed, and follow the advice of making /usr/local writeable, you'll end up with unfixable permissions. Permissions need to be at least rwxr-xr-w and owned by root/wheel. (You can debug that by looking in /var/log/system.log for something like: AddPrinter[12124]: File "/usr/libexec/cups/filter/foomatic-rip" has insecure permissions (0100777/uid=0/gid=0).

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.