Opened 9 years ago

Closed 9 years ago

#51069 closed defect (fixed)

poppler @0.42.0_1: nss support breaks poppler on 10.6

Reported by: dliessi (Davide Liessi) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: poppler

Description

After r147476 I get this error when using poppler via py-poppler-qt4:

$ python2.7 /opt/local/share/examples/py27-poppler-qt4/demo.py file.pdf
Traceback (most recent call last):
  File "demo.py", line 3, in <module>
    import popplerqt4
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/popplerqt4.so, 2): Symbol not found: _NSS_CMSSignerInfo_Verify
  Referenced from: /opt/local/lib/libpoppler.59.dylib
  Expected in: flat namespace
 in /opt/local/lib/libpoppler.59.dylib

The attached patch disables nss.

Note that, contrary to what is advertised by ./configure --help, the --disable-nss option is not recognized; instead the --disable-libnss option acts as desired. Anyway, this and the fact that among the final lines of the configure log there is

Building poppler with support for:
[...]
  use nss:             
[...]

instead of the expected

Building poppler with support for:
[...]
  use nss:             no
[...]

(i.e., the nss line is empty after the colon), make me suspect a little bug in the configure script.

Of course it would be better to fix nss support on 10.6, but having a working poppler is more important to me.

Attachments (1)

Portfile-poppler.diff (1004 bytes) - added by dliessi (Davide Liessi) 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by dliessi (Davide Liessi)

Attachment: Portfile-poppler.diff added

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Cc: devans@… removed
Owner: changed from macports-tickets@… to devans@…

comment:2 Changed 9 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

I'm able to reproduce this problem on 10.10.5 as well so it's not just a 10.6 problem. Fix committed in r147591 that fixes the nss configuration logic in configure.ac and explicitly disables the broken nss support as per your patch for now. Thanks for your report and the patch.

Note: See TracTickets for help on using tickets.