NetBSD Problem Report #50241

From mrg@eterna.com.au  Mon Sep 14 06:45:50 2015
Return-Path: <mrg@eterna.com.au>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E106EA5B2E
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Sep 2015 06:45:50 +0000 (UTC)
Message-Id: <20150914064546.AF1F9B380@splode.eterna.com.au>
Date: Mon, 14 Sep 2015 16:45:46 +1000 (AEST)
From: mrg@eterna.com.au
Reply-To: mrg@eterna.com.au
To: gnats-bugs@gnats.NetBSD.org
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
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
Architecture: amd64
Machine: amd64
>Description:

	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/work.space-bird/calibre-2.37.1/src/calibre/plugins/libheadless.la 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/libQt5Gui.la /usr/pkg/qt5/lib/libQt5Core.la -lQt5Gui -lQt5Core -lGL

*
* Running gui
*

Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/var/obj/pkgsrc/misc/calibre/work.space-bird/calibre-2.37.1/setup/__init__.py", line 181, in run_all
    self.run_cmd(self, opts)
  File "/var/obj/pkgsrc/misc/calibre/work.space-bird/calibre-2.37.1/setup/__init__.py", line 175, in run_cmd
    self.run_cmd(scmd, opts)
  File "/var/obj/pkgsrc/misc/calibre/work.space-bird/calibre-2.37.1/setup/__init__.py", line 178, in run_cmd
    cmd.run(opts)
  File "/var/obj/pkgsrc/misc/calibre/work.space-bird/calibre-2.37.1/setup/gui.py", line 41, in run
    self.build_forms(summary=opts.summary)
  File "/var/obj/pkgsrc/misc/calibre/work.space-bird/calibre-2.37.1/setup/gui.py", line 63, in build_forms
    from calibre.gui2 import build_forms
  File "/var/obj/pkgsrc/misc/calibre/work.space-bird/calibre-2.37.1/src/calibre/gui2/__init__.py", line 8, in <module>
    from PyQt5.QtWidgets import QStyle  # Gives a nicer error message than import from Qt
ImportError: Shared object "libfreetype.so.7" not found
*** Error code 1

Stop.
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/work.space-bird/calibre-2.37.1> ldd build/pyqt/qt_hack/.libs/libqt_hack.so | grep 'not found'
        -lQt5Widgets.5 => not found
        -lQt5Gui.5 => not found
        -lfreetype.7 => not found
        -lQt5Core.5 => not found
        -lGL.2 => not found

>How-To-Repeat:

	build calibre on netbsd-6 with native xorg.

>Fix:

	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: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.