ports/72754: [textproc/sablotron] fix for building failure

Sunpoet Po-Chuan Hsieh sunpoet at sunpoet.net
Sat Oct 16 06:20:10 UTC 2004

>Number:         72754
>Category:       ports
>Synopsis:       [textproc/sablotron] fix for building failure
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 16 06:20:09 GMT 2004
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 6.0-CURRENT i386
System: FreeBSD IRIS.sunpoet.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Sep 25 02:08:05 CST 2004 sunpoet at IRIS.sunpoet.net:/usr/obj/usr/src/sys/sunpoet i386



Including mcheck.h breaks the build of ports/textproc/sablotron.
The error message is as follows:

c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I/usr/local/include -O2 -pipe -s -march=pentium4 -c arena.cpp -MT arena.lo -MD -MP -MF .deps/arena.TPlo  -fPIC -DPIC -o .libs/arena.lo
In file included from arena.h:38,
                 from arena.cpp:33:
base.h:408:20: mcheck.h: No such file or directory
gmake[2]: *** [arena.lo] Error 1
gmake[2]: Leaving directory `/usr/ports/textproc/sablotron/work/Sablot-1.0.1/src/engine'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/textproc/sablotron/work/Sablot-1.0.1/src'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/textproc/sablotron.



% cd /usr/ports/textproc/sablotron/; make


Apply this patch:

--- src/engine/base.h.orig	Fri Nov 21 16:45:10 2003
+++ src/engine/base.h	Sat Oct 16 13:58:12 2004
@@ -400,7 +400,7 @@
 #ifdef WIN32
 #include <crtdbg.h>
-#else // if defined(__linux__)
+#elif defined(__linux__)
 #include <mcheck.h>


More information about the freebsd-ports-bugs mailing list