b***@artifex.com
2017-08-14 08:55:39 UTC
http://bugs.ghostscript.com/show_bug.cgi?id=698353
Bug ID: 698353
Summary: NDEBUG in fitz/context.h prevents debug builds of user
programs
Product: MuPDF
Version: master
Hardware: PC
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: fitz
Assignee: mupdf-***@artifex.com
Reporter: ***@yahoo.com
QA Contact: gs-***@ghostscript.com
Word Size: ---
Hi,
The following block of code in fitz/context.h breaks DEBUG builds for programs
that include this header
576 #if defined(MEMENTO) || !defined(NDEBUG)
577 #define FITZ_DEBUG_LOCKING
578 #endif
I should not be obligated to build a debug version of mupdf in order to debug
my own program. Here is error
/usr/local/pobj/k2pdfopt-2.42/k2pdfopt_v2.42/k2pdfoptlib/k2sys.c:120: warning:
\
warning: sprintf() is often misused, please use snprintf()
/usr/local/lib/libglib-2.0.so.4200.5: warning: warning: stpcpy() is dangerous;
do not \
use it willuslib/libwilluslib.a(font.c.o): In function `fz_lock':
/usr/local/include/mupdf/fitz/context.h:596: undefined reference to \
`fz_lock_debug_lock' willuslib/libwilluslib.a(font.c.o): In function
`fz_unlock':
/usr/local/include/mupdf/fitz/context.h:603: undefined reference to \
`fz_lock_debug_unlock' willuslib/libwilluslib.a(font.c.o): In function
`fz_lock':
/usr/local/include/mupdf/fitz/context.h:596: undefined reference to \
`fz_lock_debug_lock' willuslib/libwilluslib.a(font.c.o): In function
`fz_unlock':
/usr/local/include/mupdf/fitz/context.h:603: undefined reference to \
`fz_lock_debug_unlock'
/usr/local/include/mupdf/fitz/context.h:603: undefined reference to \
`fz_lock_debug_unlock'
where fz_lock_debug_lock and fz_lock_debug_unlock are not defined. Could we
remove the !defined(NDEBUG) term and perhaps replace it with something more
sensible like defined(FZ_LOCK_DEBUG)?
Thank you,
Paul Irofti
Bug ID: 698353
Summary: NDEBUG in fitz/context.h prevents debug builds of user
programs
Product: MuPDF
Version: master
Hardware: PC
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: fitz
Assignee: mupdf-***@artifex.com
Reporter: ***@yahoo.com
QA Contact: gs-***@ghostscript.com
Word Size: ---
Hi,
The following block of code in fitz/context.h breaks DEBUG builds for programs
that include this header
576 #if defined(MEMENTO) || !defined(NDEBUG)
577 #define FITZ_DEBUG_LOCKING
578 #endif
I should not be obligated to build a debug version of mupdf in order to debug
my own program. Here is error
/usr/local/pobj/k2pdfopt-2.42/k2pdfopt_v2.42/k2pdfoptlib/k2sys.c:120: warning:
\
warning: sprintf() is often misused, please use snprintf()
/usr/local/lib/libglib-2.0.so.4200.5: warning: warning: stpcpy() is dangerous;
do not \
use it willuslib/libwilluslib.a(font.c.o): In function `fz_lock':
/usr/local/include/mupdf/fitz/context.h:596: undefined reference to \
`fz_lock_debug_lock' willuslib/libwilluslib.a(font.c.o): In function
`fz_unlock':
/usr/local/include/mupdf/fitz/context.h:603: undefined reference to \
`fz_lock_debug_unlock' willuslib/libwilluslib.a(font.c.o): In function
`fz_lock':
/usr/local/include/mupdf/fitz/context.h:596: undefined reference to \
`fz_lock_debug_lock' willuslib/libwilluslib.a(font.c.o): In function
`fz_unlock':
/usr/local/include/mupdf/fitz/context.h:603: undefined reference to \
`fz_lock_debug_unlock'
/usr/local/include/mupdf/fitz/context.h:603: undefined reference to \
`fz_lock_debug_unlock'
where fz_lock_debug_lock and fz_lock_debug_unlock are not defined. Could we
remove the !defined(NDEBUG) term and perhaps replace it with something more
sensible like defined(FZ_LOCK_DEBUG)?
Thank you,
Paul Irofti
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are receiving this mail because:
You are the QA Contact for the bug.