Port print/cups-pstoraster won't compile on recent CURRENT (FreeBSD 11.0-CURRENT #12 r291960: Mon Dec 7 22:23:57 CET 2015 amd64). See error below. Ports tree is at: Revision: 403307 [...] ./obj/echogs -e .dev -a- ./obj/fapi -include ./obj/fapif cc -DHAVE_MKSTEMP -DHAVE_HYPOT -I/usr/local/include -DLIBICONV_PLUG -I/usr/local/include -DLIBICONV_PLUG -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -I/usr/local/include -O2 -pipe -O3 -march=native -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -I/usr/local/include -I/usr/local/include/freetype2 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=8 -DHAVE_FONTCONFIG=1 -DHAVE_LIBM=1 -DHAVE_JPEGLIB_H=1 -DDONT_HAVE_JMEMSYS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_FREETYPE=1 -DHAVE_FT2BUILD_H=1 -DX_DISPLAY_MISSING=1 -DHAVE_MKSTEMP=1 -DHAVE_HYPOT=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -I./src -I./obj -I./obj -I./src -Ijbig2dec -o ./obj/zfjbig2.o -c ./src/zfjbig2.c In file included from ./src/zfjbig2.c:34: In file included from ./src/sjbig2.h:26: /usr/local/include/jbig2.h:39:10: fatal error: 'memento.h' file not found #include "memento.h"
Created attachment 164288 [details] this patch makes jbig2dec to NOT USE memento.h cups-pstoraster does not build because cannot find memento.h in the jbig2dec port This patch is to be placed in the /usr/ports/graphics/jbig2dec/files directory and needs to REBUILD graphics/jbig2dec Than cups-pstoraster builds and runs as expected
Created attachment 164416 [details] Fix include-error of memento.h in graphics/jbig2dec's installed header
Based upon previous poster's solution I used the already present logical knob in /usr/local/include/jbig2dec.h excluding the inclusion of memento.h by applysing a patch to print/cups-pstoraster directly. Please have a look. The patch doesn't respect other usages of memento.h so far, it solved my problems. Thanks to Lenzi.Sergio@gmail.com. Kind regards, oh
I run over and over in this problem on automated package building and a solution is at hand. Why isn't it solved yet?
Correctly categorise/triage this issue, as the proposed change is against graphics/jbig2dec contrary to the impression given by the slightly ambiguous summary
*** Bug 206190 has been marked as a duplicate of this bug. ***
Please have a look here: Bug 207024 - print/cups-pstoraster: fails to build: fatal error: 'memento.h' file not found (edit) *** This bug has been marked as a duplicate of bug 207024 ***