Hi folks, I've a strange problem with ghostscript, which I need to install a cups printer under FreeBSD 12.1.
To get a valid configuration and tools for the cups-printer-render-pipline, I need ghostscript. The newest version in the ports is ghostscript9-apgl-base and a lot of programs like cups, hplip which I need have dependencies.
In my setup I use the cupsd to print files to my HP-CM-6030-MFP device with the PPD: hp-color_laserjet_cm6030_mfp-pcl3.ppd . Under Linux (Debian 8,9) it works with great success and out of the box. But under FreeBSD I get (some more) gray hairs. At least nothing will go though the cups pipeline under FreeBSD and /var/log/cup/error_log shows me an ERROR marked with the statement "Filter failed" (..see at the end of the post) . The reason is, that ghostscript won't work correct at the
If I use the ghostscript9-agpl-base-9.50 setup out of the box (pkg install) or (/usr/ports/printghostscript9-agpl-base make install clean) ,
A test away from the CUPS:
gives me the same initialization error:
what means NO initialization setup and variables GS_LIB_DEFAULT, GS_LIB, GS_FONTS... are present. The same tool is called before the "prnt/hpcups/HPCupsFilter.cpp" can read the PCL5 raster. Even the classical tiger-runtime-test won't work out of the box.
..same statement :
While reading gs_ll3.ps:
Error: /undefinedresource in findresource
..
[/CMD]
If I use ghostscript9-base (ports) aka ghostscript9-base-9.06_14 (pkg), it works out of the box and the test shows me correctly the big Asian cat or a properly from PDF converted PS. But unfortunately nobody want to play with this ghostscript9-base-buddy, because the hplip dependencies are pointing to the newer and shiny ghoststript9-agpl-base-9.50 package.
So what have I exactly to do, to get the tools of the ghostscript9-apgl-base package running or are there some configuration steps to correct the behavior of ghoststript9-agpl-base-9.50 installation.
Thank you in advance and best regards huckfinn
ERROR_LOG FACHSIMILE
Code:
uname -a
FreeBSD damara.bigopensky.de 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64
To get a valid configuration and tools for the cups-printer-render-pipline, I need ghostscript. The newest version in the ports is ghostscript9-apgl-base and a lot of programs like cups, hplip which I need have dependencies.
In my setup I use the cupsd to print files to my HP-CM-6030-MFP device with the PPD: hp-color_laserjet_cm6030_mfp-pcl3.ppd . Under Linux (Debian 8,9) it works with great success and out of the box. But under FreeBSD I get (some more) gray hairs. At least nothing will go though the cups pipeline under FreeBSD and /var/log/cup/error_log shows me an ERROR marked with the statement "Filter failed" (..see at the end of the post) . The reason is, that ghostscript won't work correct at the
pdf2ps
stage, which is part of the (/usr/local/libexec/cups/filter/gstoraster) filter to create PCL code. I've broken down the problem in some steps and I see that configuration of gs
is the trouble maker.If I use the ghostscript9-agpl-base-9.50 setup out of the box (pkg install) or (/usr/ports/printghostscript9-agpl-base make install clean) ,
gs
is delivered to the system in an unconfigured way:A test away from the CUPS:
pdf2ps -f 1 -l 1 input.pdf output.ps
gives me the same initialization error:
Code:
While reading gs_ll3.ps:
Error: /undefinedresource in findresource
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 Pscript5Idiom.pkgsave IdiomSet 6 Pscript5Idiom.pkgsave
Execution stack:
what means NO initialization setup and variables GS_LIB_DEFAULT, GS_LIB, GS_FONTS... are present. The same tool is called before the "prnt/hpcups/HPCupsFilter.cpp" can read the PCL5 raster. Even the classical tiger-runtime-test won't work out of the box.
gs /usr/local/share/ghostscript/9.50/examples/tiger.eps
..same statement :
While reading gs_ll3.ps:
Error: /undefinedresource in findresource
..
[/CMD]
If I use ghostscript9-base (ports) aka ghostscript9-base-9.06_14 (pkg), it works out of the box and the test shows me correctly the big Asian cat or a properly from PDF converted PS. But unfortunately nobody want to play with this ghostscript9-base-buddy, because the hplip dependencies are pointing to the newer and shiny ghoststript9-agpl-base-9.50 package.
So what have I exactly to do, to get the tools of the ghostscript9-apgl-base package running or are there some configuration steps to correct the behavior of ghoststript9-agpl-base-9.50 installation.
Thank you in advance and best regards huckfinn
ERROR_LOG FACHSIMILE
Code:
D [16/Mar/2020:15:57:37 +0100] [Job 19] envp[2]="CUPS_DOCROOT=/usr/local/share/doc/cups"
:
D [16/Mar/2020:15:52:49 +0100] [Job 18] true (gs_icc.ps\\000gs_mex_e.ps\\000gs_mro_e.ps\\000gs_pdf_e.ps\\000gs_wan_e.ps\\000pdf_ops.ps\\000pdf_rbld.ps\\000pdf_base.ps\\000pdf_draw.ps\\000gs_cff.ps\\000gs_mgl_e.ps\\000gs_ttf.ps\\000pdf_font.ps\\000pdf_main.ps\\000pdf_sec.ps\\000gs_epsf.ps\\000gs_pdfwr.ps) (gs_ll3.ps) 1 Pscript5Idiom.pkgsave IdiomSet 7 Pscript5Idiom.pkgsave
D [16/Mar/2020:15:52:49 +0100] [Job 18] Execution stack:
D [16/Mar/2020:15:52:49 +0100] [Job 18] %interp_exit --nostringval-- findresource %loop_continue findresource findresource findresource false 1 %stopped_push --nostringval-- 1902 8 5 %oparray_pop findresource findresource --dict:16/18(ro)(G)-- --dict:2/2(G)-- findresource 1 %dict_continue findresource findresource 1900 6 5 %oparray_pop findresource %errorexec_pop findresource findresource findresource findresource
D [16/Mar/2020:15:52:49 +0100] [Job 18] Dictionary stack:
D [16/Mar/2020:15:52:49 +0100] [Job 18] --dict:959/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:959/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
D [16/Mar/2020:15:52:49 +0100] [Job 18] Current allocation mode is global
D [16/Mar/2020:15:52:49 +0100] [Job 18] Current file position is 18941
D [16/Mar/2020:15:52:49 +0100] [Job 18] prnt/hpcups/HPCupsFilter.cpp 568: cupsRasterOpen failed, fd = 0
D [16/Mar/2020:15:52:49 +0100] [Job 18] PID 14565 (/usr/local/libexec/cups/filter/gstoraster) stopped with status 1.
D [16/Mar/2020:15:52:49 +0100] [Job 18] Hint: Try setting the LogLevel to "debug" to find out more.
D [16/Mar/2020:15:52:49 +0100] [Job 18] PID 14814 (/usr/local/libexec/cups/filter/hpcups) stopped with status 1.
D [16/Mar/2020:15:52:49 +0100] [Job 18] Hint: Try setting the LogLevel to "debug" to find out more.
D [16/Mar/2020:15:52:49 +0100] [Job 18] PID 15088 (/usr/local/libexec/cups/backend/socket) exited with no errors.
D [16/Mar/2020:15:52:49 +0100] [Job 18] End of messages
D [16/Mar/2020:15:52:49 +0100] [Job 18] printer-state=3(idle)
D [16/Mar/2020:15:52:49 +0100] [Job 18] printer-state-message="Filter failed"
D [16/Mar/2020:15:52:49 +0100] [Job 18] printer-state-reasons=none