NetBSD Problem Report #50241

From  Mon Sep 14 06:45:50 2015
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id E106EA5B2E
	for <>; Mon, 14 Sep 2015 06:45:50 +0000 (UTC)
Message-Id: <>
Date: Mon, 14 Sep 2015 16:45:46 +1000 (AEST)
Subject: calibre fails to build with native xorg and netbsd-6
X-Send-Pr-Version: 3.95

>Number:         50241
>Category:       pkg
>Synopsis:       calibre fails to build with native xorg and netbsd-6
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 14 06:50:00 +0000 2015
>Originator:     matthew green
>Release:        NetBSD 6.1_STABLE
people's front against (bozotic) www (softwar foundation)
Architecture: amd64
Machine: amd64

	building misc/calibre with latest netbsd-6 installation eventually
	fails as some shlibs are not built with /usr/X11R7/lib in the rpath.

####### Building headless QPA plugin #######
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
libtool --silent --mode=link c++ -avoid-version -rpath /usr/pkg/qt5/plugins/platforms -module  -pthread -Wl,-rpath,/usr/pkg/qt5/lib -shared -o /var/obj/pkgsrc/misc/calibre/ headless_backingstore.lo  main.lo  headless_integration.lo   -L/usr/pkg/lib -L/usr/X11R7/lib -L/usr/pkg/qt5/lib -lQt5PlatformSupport -L/usr/lib -lfontconfig -lfreetype /usr/pkg/qt5/lib/ /usr/pkg/qt5/lib/ -lQt5Gui -lQt5Core -lGL

* Running gui

Traceback (most recent call last):
  File "", line 99, in <module>
  File "", line 85, in main
  File "/var/obj/pkgsrc/misc/calibre/", line 181, in run_all
    self.run_cmd(self, opts)
  File "/var/obj/pkgsrc/misc/calibre/", line 175, in run_cmd
    self.run_cmd(scmd, opts)
  File "/var/obj/pkgsrc/misc/calibre/", line 178, in run_cmd
  File "/var/obj/pkgsrc/misc/calibre/", line 41, in run
  File "/var/obj/pkgsrc/misc/calibre/", line 63, in build_forms
    from calibre.gui2 import build_forms
  File "/var/obj/pkgsrc/misc/calibre/", line 8, in <module>
    from PyQt5.QtWidgets import QStyle  # Gives a nicer error message than import from Qt
ImportError: Shared object "" not found
*** Error code 1

make: stopped in /usr/pkgsrc/misc/calibre
*** Error code 1

	when i inspect the calibre build subdir, i find that 6 shlibs have
	references to objects they do not have in the RPATH:

space-bird calibre/> ldd build/pyqt/qt_hack/.libs/ | grep 'not found'
        -lQt5Widgets.5 => not found
        -lQt5Gui.5 => not found
        -lfreetype.7 => not found
        -lQt5Core.5 => not found
        -lGL.2 => not found


	build calibre on netbsd-6 with native xorg.


	i suspect the fix is to ensure that /usr/X11R7/lib is added to
	the RPATH in various components.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.