Re: looking for PCL disassembler
Matthias Apitz <[email protected]> Tue, 15 Nov 2016 14:51:40 +0100
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <20161115135140.GA14830@c720-r292778-amd64> |
El día Friday, November 11, 2016 a las 08:18:44AM +0000, Chris Liddell escribió: > On 11/11/16 07:50, Matthias Apitz wrote: > > > > Hello, > > > > I'm looking for a PCL disassembler tool, i.e. a tool to produce a mnemonic list > > of all PCL ESQ sequences from a given file, to nail down a problem with > > certain files and our printers. See also: > > You could try using the '-Zi' option with a debug build of GhostPCL - it > doesn't exactly disassemble the file, but should dump out the opcodes > and other relevant information from the input. I tried to make version 9.20 with: $ CFLAGS="-DDEBUG" ./configure $ gmake ... gcc -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DDEBUG -DUSE_LIBPAPER -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DDEBUG -DUSE_LIBPAPER -I./base -I./obj/ -I./zlib ./base/mkromfs.c -o ./obj/aux/mkromfs_0 ./obj/aux/compress.o ./obj/aux/deflate.o ./obj/aux/zutil.o ./obj/aux/adler32.o ./obj/aux/crc32.o ./obj/aux/trees.o ./obj/aux/gpmisc.o ./obj/aux/gp_getnv.o ./obj/aux/gscdefs.o ./obj/aux/gp_unix.o ./obj/aux/gp_unifs.o ./obj/aux/gp_unifn.o ./obj/aux/gp_stdia.o ./obj/aux/gsutil.o ./obj/aux/memento.o -lm -lidn -lpaper -L/usr/local/lib -lfontconfig -lfreetype ./obj/aux/gp_unifs.o: In function `gp_open_scratch_file_generic': gp_unifs.c:(.text+0x83): warning: warning: mktemp() possibly used unsafely; consider using mkstemp() ./obj/aux/gp_unifs.o: In function `gp_enumerate_files_close': gp_unifs.c:(.text+0x513): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0x58e): undefined reference to `dmprintf_file_and_line' ./obj/aux/gp_unifs.o: In function `gp_enumerate_files_next': gp_unifs.c:(.text+0x72d): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0x747): undefined reference to `dmprintf_file_and_line' gp_unifs.c:(.text+0x85b): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0x8dd): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0x909): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0x9cb): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0x9e6): undefined reference to `dmprintf_file_and_line' gp_unifs.c:(.text+0xa5a): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0xa8f): undefined reference to `dmprintf_file_and_line' gp_unifs.c:(.text+0xac2): undefined reference to `dmprintf_file_and_line' gp_unifs.c:(.text+0xaef): undefined reference to `dmprintf_file_and_line' gp_unifs.c:(.text+0xb93): undefined reference to `gs_debug_c' gp_unifs.c:(.text+0xbd1): undefined reference to `dmprintf_file_and_line' gp_unifs.c:(.text+0xbf9): undefined reference to `dmprintf_file_and_line' ./obj/aux/gsutil.o: In function `uid_copy': gsutil.c:(.text+0x4a9): undefined reference to `gs_log_error' collect2: error: ld returned 1 exit status base/unix-aux.mak:94: recipe for target 'obj/aux/mkromfs_0' failed gmake: *** [obj/aux/mkromfs_0] Error 1 there is no file gs_debug_c at all; > Really, your best bet would be to try to track down HP's JetASM which is > a fully featured PCL/PXL assembler/disassembler, but that's pretty hard > to find these days. I could not find any copy of it :-( matthias -- Matthias Apitz, ✉ [email protected], ⌂ http://www.unixarea.de/ ☎ +49-176-38902045