Bug 696497 - Ghostscript 9.18: did not support --without-jbig2dec and --without-jbig2dec which caused compile failure
Summary: Ghostscript 9.18: did not support --without-jbig2dec and --without-jbig2dec w...
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-07 00:47 UTC by hongxu
Modified: 2016-01-12 23:33 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hongxu 2016-01-07 00:47:22 UTC
While configure with option '--without-jbig2dec' and '--without-jbig2dec'.

There is failures at compile time
...
$ make
|make[1]: *** No rule to make target `obj/sjbig2_.dev', needed by `obj/sjbig2.dev'.  Stop.
|make[1]: *** Waiting for unfinished jobs....
...
| make: *** No rule to make target `obj/sjpx_.dev', needed by `obj/sjpx.dev'.  Stop.
| make: *** Waiting for unfinished jobs....
...

The reason is the rules in ./base/lib.mak did not consider  '--without-jbig2dec' and '--without-jbig2dec'.

In ./base/lib.mak, which '--without-jbig2dec', JBIG2_LIB is ""
which caused depended rule is `obj/sjbig2_.dev' which did not
exists
...
# ---------------- JBIG2 compression filter ---------------- #

$(GLD)sjbig2.dev : $(LIB_MAK) $(ECHOGS_XE) $(GLD)sjbig2_$(JBIG2_LIB).dev \
 $(LIB_MAK) $(MAKEDIRS)
	$(CP_) $(GLD)sjbig2_$(JBIG2_LIB).dev $(GLD)sjbig2.dev
...

The same reason for '--without-jbig2dec'

//Hongxu