From: Gottfried S. <got...@xt...> - 2003-08-06 09:07:40
|
Yesterday I posted the following to omniprint-user - there seems to be noone who can say something to the mentioned problems... Therefore here the re-posting on the developer list. Really, any help is welcome... Regards, Gottfried ----------------------------------------- Hi all, in short: I have two problems: 1. after compiling and linking of omni, filter "CUPSToOmni" or "GenerateOmniPPDs" coredumps when called on command line. My debugger dbx tells me the following: ----- root@zvkoffice:/usr/lib/cups/filter# dbx -r ./CUPSToOmni Entering debugger ... Type 'help' for help. reading symbolic information ... Trace/BPT trap in __start at 0x10000128 0x10000128 (__start) 82220024 lwz r17,0x24(r2) (dbx) next Segmentation fault in glink.free at 0xd1353f08 0xd1353f08 (free+0x30) 800c0000 lwz r0,0x0(r12) (dbx) root@zvkoffice:/zvk/admin/install/ghostscript/espgs-7.05.6/Omni/CUPS# dbx -r ./GenerateOmniPPDs Entering debugger ... Type 'help' for help. reading symbolic information ... Trace/BPT trap in __start at 0x10000128 0x10000128 (__start) 82220024 lwz r17,0x24(r2) (dbx) next Segmentation fault in glink._ZNSt8ios_base4InitC1Ev at 0xd1353f08 0xd1353f08 (_ZNSt8ios_base4InitC1Ev+0x8) 800c0000 lwz r0,0x0(r12) (dbx) ----- 2. after compilation/installation of ghostscript (after installation of omni), cups seems nothing to know about omni and nothing gets printed. The cups debug output looks like this: ----- ... D [05/Aug/2003:10:55:16 -0100] StartJob: argv = "Liste_1_Fibu","101","","Test Page","1","","/var/spool/cups/d00101-001" D [05/Aug/2003:10:55:16 -0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin" D [05/Aug/2003:10:55:16 -0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [05/Aug/2003:10:55:16 -0100] StartJob: envp[2]="USER=root" ... I [05/Aug/2003:10:55:16 -0100] Started filter /usr/lib/cups/filter/pstops (PID 37178) for job 101. ... I [05/Aug/2003:10:55:16 -0100] Started filter /usr/lib/cups/filter/pstoraster (PID 29076) for job 101. ... I [05/Aug/2003:10:55:16 -0100] Started filter /usr/lib/cups/filter/CUPSToOmni (PID 23364) for job 101. ... I [05/Aug/2003:10:55:16 -0100] Started backend /usr/lib/cups/backend/lpd (PID 40404) for job 101. D [05/Aug/2003:10:55:16 -0100] [Job 101] Running /usr/local/bin/gs -dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout -c - ... E [05/Aug/2003:10:55:16 -0100] [Job 101] Saw EOF! ... ... lot of processing output job 101 (fonts etc.) ... D [05/Aug/2003:10:55:19 -0100] UpdateJob: job 101, file 0 is complete. D [05/Aug/2003:10:55:19 -0100] CancelJob: id = 101 D [05/Aug/2003:10:55:19 -0100] StopJob: id = 101, force = 0 D [05/Aug/2003:10:55:19 -0100] StopJob: printer state is 3 ----- In detail: Used requisites for compiling/linking omni/ghostcript are: - gcc.3.2.3 - AIX 4.3.3 Maintenance Level 11 linker /bin/ld - gnu make 3.79.1 - autoconf.2.57 - automake.1.7.6 - gtk+.2.0.9 - libpng-1.2.5 - libsigc++.1.2.5 - libtool.1.5 - libxml2.2.5.7 - m4.1.4 - zlib-1.1.4 Omni has been configured/compiled/linked with: ./setupOmni --prefix=/usr/local --enable-shared --disable-static 2>&1 | tee -a setupOmni.log Despite of "--disable-static" static libraries have been build and the requested shared libraries I found after a little bit searching in ./*/.libs/ as *.2 files. Because they have not been installed with "make install", I copied them manually to /usr/lib/ and changed their name to *.so. During compilation I had to change some includes in the cpp sources: In all cases of "`strcasecmp' undeclared" - adding of #include </usr/include/strings.h> In all cases of "'fcntl' undeclared" - adding of #include </usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/stdlib.h> With this environment and the above changes omni has been compiled and linked without any errors. Because of the dumping of "GenerateOmniPPDs" I have compiled the same omni sources under linux and used this build to generate the ppd's. One of them has been used in testing cups/ghostscript/omni printing: *ShortNickName: "Epson DFX-8500, Foomatic + omni" *cupsFilter: "application/vnd.cups-raster 100 CUPSToOmni" Ghostscript has been configured with: /configure --with-fontpath="/usr/local/share/ghostscript/fonts" --prefix=/usr/local --with-omni Because I used ESP-Ghostscript the nessecary omni patches seem to be applied - I checked this by trying to patch the sources with the last patch, included in Omni. What I don't understand is, why I don't see any corefile when "CUPSToOmni" is called by CUPS - and why I don't see any (heavy) error in the CUPS debug log. And I had expected to see in the log something like (from an other posting): gs -sDEVICE=_omni_ -sDeviceName=XMLOmniDevice -sproperties='XMLMasterFile="Epson LQ-570+.xml"' -sOutputFile=temp.lpr temp.ps Any help is greatly welcome - I need this DFX-8500 printer and neither ESP Print Pro (is used on the same system) nor linuxprinting.org (foomatic-rip - is also used) supports him (well). In detail: Print Pro has no support and the ppd "Generic ESC/P Dot Matrix Printer Foomatic/epson (recommended)" works not very well. Regards, Gottfried |