Bug 1324624

Summary: JS undefined references prevent compilation
Product: [Fedora] Fedora Reporter: Pablo Rodríguez <ousia>
Component: mujsAssignee: Petr Šabata <psabata>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: pavel, psabata, pzhukov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 19:49:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pablo Rodríguez 2016-04-06 19:52:26 UTC
Since a new release of mupdf is around the corner (https://tinyurl.com/mupdf-1-9), I have tried to compile latest master from mupdf, but I get the following error that quits compilation:

 collect2: error: ld returned 1 exit status
 Makefile:256: recipe for target 'build/release/mutool' failed
 make: *** [build/release/mutool] Error 1
 error: Bad exit status from /home/ousia/rpm/tmp/rpm-tmp.MCMqdH (%build)

I have compiled latest mujs, but the problem is that all references JavaScript (variables, I guess [sorry, I’m not a coder myself]) are undefined. To quote a few:

 build/release/libmupdf.a(pdf-xref.o): In function `pdf_close_document':
 /home/ousia/rpm/BUILD/mupdf-1.8-source/source/pdf/pdf-xref.c:1582: undefined reference to `pdf_drop_js'

 build/release/tools/murun.o: In function `ffi_pushbuffer':
 /home/ousia/rpm/BUILD/mupdf-1.8-source/source/tools/murun.c:748: undefined reference to `js_getregistry'
 /home/ousia/rpm/BUILD/mupdf-1.8-source/source/tools/murun.c:749: undefined reference to `js_newuserdatax'

 build/release/tools/murun.o: In function `ffi_readFile':
 /home/ousia/rpm/BUILD/mupdf-1.8-source/source/tools/murun.c:1372: undefined reference to `js_getcontext'
 /home/ousia/rpm/BUILD/mupdf-1.8-source/source/tools/murun.c:1373: undefined reference to `js_tostring

Sorry, but there are circa 500 undefined references. I’m only guessing, but wouldn’t be required a different option in the compiler for mujs?

Many thanks for your help.

Comment 1 Petr Šabata 2016-04-07 10:00:06 UTC
It looks like the build doesn't link against mujs properly.

I tried building 1.9-rc1 and it doesn't appear to support system mujs, just its bundled copy; it will require extra patching.  The HEAD doesn't build for me for some other reasons.

I think this is a question for the mupdf maintainer.  I don't know much about it.

Comment 2 Fedora End Of Life 2016-11-25 07:16:45 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2016-12-20 19:49:53 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Pavel Zhukov 2017-04-12 05:23:03 UTC
Oh. such old needinfo...

(In reply to Pablo Rodríguez from comment #0)
> Since a new release of mupdf is around the corner
> (https://tinyurl.com/mupdf-1-9), I have tried to compile latest master from
> mupdf, but I get the following error that quits compilation:


(In reply to Petr Šabata from comment #1)

> I think this is a question for the mupdf maintainer.  I don't know much
> about it.

Compiling from master is question for upstream maintainers. I don't package pre-release versions of mupdf because it releases pretty often anyway.