Date: Fri, 25 Sep 2015 09:18:29 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 203327] graphics/openjpeg: latest changes (from 2.1.0_1 to 2.1.1) break building of mupdf (and possibly other ports) Message-ID: <bug-203327-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203327 Bug ID: 203327 Summary: graphics/openjpeg: latest changes (from 2.1.0_1 to 2.1.1) break building of mupdf (and possibly other ports) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: dennis.noordsij@helsinki.fi Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) One of the recent changes to graphics/openjpeg causes graphics/mupdf to no longer build, with the following errors: <.. snip ..> cc -fstack-protector -o build/release/mujstest build/release/platform/x11/jstest_main.o build/release/platform/x11/pdfapp.o build/release/libmupdf.a -L/usr/local/lib -lm -L/usr/local/lib -lfreetype -ljbig2dec -ljpeg -L/usr/local/lib -lopenjp2 -lz build/release/libmupdf.a(load-jpx.o): In function `fz_load_jpx': source/fitz/load-jpx.c:(.text+0x56): undefined reference to `opj_set_default_decoder_parameters' source/fitz/load-jpx.c:(.text+0x69): undefined reference to `opj_create_decompress' source/fitz/load-jpx.c:(.text+0x84): undefined reference to `opj_set_info_handler' source/fitz/load-jpx.c:(.text+0x94): undefined reference to `opj_set_warning_handler' source/fitz/load-jpx.c:(.text+0xa4): undefined reference to `opj_set_error_handler' source/fitz/load-jpx.c:(.text+0xb1): undefined reference to `opj_setup_decoder' source/fitz/load-jpx.c:(.text+0xc3): undefined reference to `opj_stream_default_create' source/fitz/load-jpx.c:(.text+0xe5): undefined reference to `opj_stream_set_read_function' source/fitz/load-jpx.c:(.text+0xf2): undefined reference to `opj_stream_set_skip_function' source/fitz/load-jpx.c:(.text+0xff): undefined reference to `opj_stream_set_seek_function' source/fitz/load-jpx.c:(.text+0x10e): undefined reference to `opj_stream_set_user_data' source/fitz/load-jpx.c:(.text+0x119): undefined reference to `opj_stream_set_user_data_length' source/fitz/load-jpx.c:(.text+0x129): undefined reference to `opj_read_header' source/fitz/load-jpx.c:(.text+0x141): undefined reference to `opj_decode' source/fitz/load-jpx.c:(.text+0x14b): undefined reference to `opj_stream_destroy' source/fitz/load-jpx.c:(.text+0x153): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x42d): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x4e1): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x4f8): undefined reference to `opj_stream_destroy' source/fitz/load-jpx.c:(.text+0x500): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x514): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x534): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x548): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x55c): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x570): undefined reference to `opj_image_destroy' build/release/libmupdf.a(load-jpx.o):source/fitz/load-jpx.c:(.text+0x593): more undefined references to `opj_image_destroy' follow build/release/libmupdf.a(load-jpx.o)build/release/libmupdf.a(load-jpx.o): In function `fz_load_jpx': source/fitz/load-jpx.c:(.text+0x56): undefined reference to `opj_set_default_decoder_parameters' source/fitz/load-jpx.c:(.text+0x69): undefined reference to `opj_create_decompress' source/fitz/load-jpx.c:(.text+0x84): undefined reference to `opj_set_info_handler' source/fitz/load-jpx.c:(.text+0x94): undefined reference to `opj_set_warning_handler' source/fitz/load-jpx.c:(.text+0xa4): undefined reference to `opj_set_error_handler' source/fitz/load-jpx.c:(.text+0xb1): undefined reference to `opj_setup_decoder' source/fitz/load-jpx.c:(.text+0xc3): undefined reference to `opj_stream_default_create' source/fitz/load-jpx.c:(.text+0xe5): undefined reference to `opj_stream_set_read_function' source/fitz/load-jpx.c:(.text+0xf2): undefined reference to `opj_stream_set_skip_function' source/fitz/load-jpx.c:(.text+0x: In function `fz_load_jpx': source/fitz/load-jpx.c:(.text+0x56): undefined reference to `opj_set_default_decoder_parameters' source/fitz/load-jpx.c:(.text+0x69): undefined reference to `opj_create_decompress' source/fitz/load-jpx.c:(.text+0x84): undefined reference to `opj_set_info_handler' source/fitz/load-jpx.c:(.text+0x94): undefined reference to `opj_set_warning_handler' source/fitz/load-jpx.c:(.text+0xa4): undefined reference to `opj_set_error_handler' source/fitz/load-jpx.c:(.text+0xb1): undefined reference to `opj_setup_decoder' source/fitz/load-jpx.c:(.text+0xc3): undefined reference to `opj_stream_default_create' source/fitz/load-jpx.c:(.text+0xe5): undefined reference to `opj_stream_set_read_function' source/fitz/load-jpx.c:(.text+0xf2): undefined reference to `opj_stream_set_skip_function' source/fitz/load-jpx.c:(.text+0xff): undefined reference to `opj_stream_set_seek_function' source/fitz/load-jpx.c:(.text+0x10e): undefined reference to `opj_stream_set_user_data' source/fitz/load-jpx.c:(.text+0x119): undefined reference to `opj_stream_set_user_data_length' source/fitz/load-jpx.c:(.text+0x129): undefined reference to `opj_read_header' source/fitz/load-jpx.c:(.text+0x141): undefined reference to `opj_decode' source/fitz/load-jpx.c:(.text+0x14b): undefined reference to `opj_stream_destroy' source/fitz/load-jpx.c:(.text+0x153): undefined reference to `opj_destroy_codec'ff ): undsource/fitz/load-jpx.c:e(f.texti+n0exd42d )r:e fuenrednecfei nteod `refopj_stream_set_seek_functione'r encesource/fitz/load-jpx.c: (t.texto+ 0`x10eopj_image_destroy)': undefinsource/fitz/load-jpx.c:e(d.text +r0x4e1): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x4f8): undefined reference to `opj_stream_destroy' eference to `opj_stream_set_user_data' source/fitz/load-jpx.c:(.text+0x119): undefined reference to `opj_stream_set_user_data_length' source/fitz/load-jpx.c:(.text+0x129): undefined reference to `opj_read_header' source/fitz/load-jpx.c:(.text+0x141): undefined reference to `opj_decode' source/fitz/load-jpx.c:(.text+0x14b): undefined reference to `opj_stream_destroy' source/fitz/load-jpx.c:(.text+0x153): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x42d): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x4e1): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x4f8): undefined reference to `opj_stream_destroy' source/fitz/load-jpx.c:(.text+0x500): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x514): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x534): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x548): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x55c): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x570): undefined reference to `opj_image_destroy' build/release/libmupdf.a(load-jpx.o):source/fitz/load-jpx.c:(.text+0x593): more undefined references to `opj_image_destroy' follow source/fitz/load-jpx.c:(.text+0x500): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x514): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x534): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x548): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x55c): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x570): undefined reference to `opj_image_destroy' build/release/libmupdf.a(load-jpx.o):source/fitz/load-jpx.c:(.text+0x593): more undefined references to `opj_image_destroy' follow /usr/bin/ld: build/release/mutool: hidden symbol `opj_setup_decoder' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output /usr/bin/ld: build/release/mujstest: hidden symbol `opj_setup_decoder' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output /usr/bin/ld: build/release/mudraw: hidden symbol `opj_setup_decoder' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output cc: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:248: recipe for target 'build/release/mutool' failed gmake[2]: *** [build/release/mutool] Error 1 gmake[2]: *** Waiting for unfinished jobs.... cc: error: linker command failed with exit code 1 (use -v to see invocation) cc: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:260: recipe for target 'build/release/mujstest' failed gmake[2]: *** [build/release/mujstest] Error 1 Makefile:241: recipe for target 'build/release/mudraw' failed gmake[2]: *** [build/release/mudraw] Error 1 build/release/libmupdf.a(load-jpx.o): In function `fz_load_jpx': source/fitz/load-jpx.c:(.text+0x56): undefined reference to `opj_set_default_decoder_parameters' source/fitz/load-jpx.c:(.text+0x69): undefined reference to `opj_create_decompress' source/fitz/load-jpx.c:(.text+0x84): undefined reference to `opj_set_info_handler' source/fitz/load-jpx.c:(.text+0x94): undefined reference to `opj_set_warning_handler' source/fitz/load-jpx.c:(.text+0xa4): undefined reference to `opj_set_error_handler' source/fitz/load-jpx.c:(.text+0xb1): undefined reference to `opj_setup_decoder' source/fitz/load-jpx.c:(.text+0xc3): undefined reference to `opj_stream_default_create' source/fitz/load-jpx.c:(.text+0xe5): undefined reference to `opj_stream_set_read_function' source/fitz/load-jpx.c:(.text+0xf2): undefined reference to `opj_stream_set_skip_function' source/fitz/load-jpx.c:(.text+0xff): undefined reference to `opj_stream_set_seek_function' source/fitz/load-jpx.c:(.text+0x10e): undefined reference to `opj_stream_set_user_data' source/fitz/load-jpx.c:(.text+0x119): undefined reference to `opj_stream_set_user_data_length' source/fitz/load-jpx.c:(.text+0x129): undefined reference to `opj_read_header' source/fitz/load-jpx.c:(.text+0x141): undefined reference to `opj_decode' source/fitz/load-jpx.c:(.text+0x14b): undefined reference to `opj_stream_destroy' source/fitz/load-jpx.c:(.text+0x153): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x42d): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x4e1): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x4f8): undefined reference to `opj_stream_destroy' source/fitz/load-jpx.c:(.text+0x500): undefined reference to `opj_destroy_codec' source/fitz/load-jpx.c:(.text+0x514): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x534): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x548): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x55c): undefined reference to `opj_image_destroy' source/fitz/load-jpx.c:(.text+0x570): undefined reference to `opj_image_destroy' build/release/libmupdf.a(load-jpx.o):source/fitz/load-jpx.c:(.text+0x593): more undefined references to `opj_image_destroy' follow /usr/bin/ld: build/release/mupdf-x11: hidden symbol `opj_setup_decoder' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output cc: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:268: recipe for target 'build/release/mupdf-x11' failed gmake[2]: *** [build/release/mupdf-x11] Error 1 gmake[2]: Leaving directory '/usr/ports/graphics/mupdf/work/mupdf-1.7-source' ===> Compilation failed unexpectedly. If I install the openjpeg binary pkg version (2.1.0_1) mupdf builds fine. If I install openjpeg from ports (version 2.1.1), the problem happens. (Tried in a poudriere box, jails, and vanilla FreeBSD, all on up to date 10.2-RELEASE). I don't really know where to look for the problem, usually undefined reference means the library is not installed or can not be found, but that is not the case here. (Portsnap up to date as of Fri Sep 25 11:13:39 CEST 2015) Happy to provide more information -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203327-13>