Bug 205145 - graphics/jbig2dec: print/cups-pstoraster fails to build: fatal error: 'memento.h' file not found
Summary: graphics/jbig2dec: print/cups-pstoraster fails to build: fatal error: 'mement...
Status: Closed DUPLICATE of bug 207024
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Po-Chuan Hsieh
URL:
Keywords: needs-qa, patch
: 206190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-08 18:46 UTC by O. Hartmann
Modified: 2016-02-08 18:34 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (rea)
koobs: maintainer-feedback? (sunpoet)
koobs: merge-quarterly?


Attachments
this patch makes jbig2dec to NOT USE memento.h (382 bytes, patch)
2015-12-16 17:00 UTC, lenzi.sergio
no flags Details | Diff
Fix include-error of memento.h in graphics/jbig2dec's installed header (557 bytes, patch)
2015-12-20 09:37 UTC, O. Hartmann
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2015-12-08 18:46:29 UTC
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=\"\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INT=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"
Comment 1 lenzi.sergio 2015-12-16 17:00:37 UTC
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
Comment 2 O. Hartmann 2015-12-20 09:37:06 UTC
Created attachment 164416 [details]
Fix include-error of memento.h in graphics/jbig2dec's installed header
Comment 3 O. Hartmann 2015-12-20 09:40:11 UTC
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
Comment 4 O. Hartmann 2016-01-13 10:34:32 UTC
I run over and over in this problem on automated package building and a solution is at hand. Why isn't it solved yet?
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2016-01-13 11:15:48 UTC
Correctly categorise/triage this issue, as the proposed change is against graphics/jbig2dec contrary to the impression given by the slightly ambiguous summary
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2016-01-13 11:17:13 UTC
*** Bug 206190 has been marked as a duplicate of this bug. ***
Comment 7 O. Hartmann 2016-02-08 18:34:49 UTC
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 ***