NetBSD Problem Report #52358

From www@NetBSD.org  Sun Jul  2 09:38:24 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A931E7A264
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  2 Jul 2017 09:38:24 +0000 (UTC)
Message-Id: <20170702093823.3F06A7A265@mollari.NetBSD.org>
Date: Sun,  2 Jul 2017 09:38:23 +0000 (UTC)
From: triaxx@triaxx.org
Reply-To: triaxx@triaxx.org
To: gnats-bugs@NetBSD.org
Subject: x11/libxcb building inconsistency
X-Send-Pr-Version: www-1.0

>Number:         52358
>Category:       pkg
>Synopsis:       x11/libxcb building inconsistency
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 02 09:40:01 +0000 2017
>Originator:     Frederic Fauberteau
>Release:        pkgsrc-2017Q1
>Organization:
>Environment:
NetBSD mutalisk.triaxx.org 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
>Description:
Building of awesome fails on my host due to error from lua-gi and this error is 
related to cairo.

This problem occurs with packages installed from remote binary repositories.

I try to load cairo from lua-gi and get the following error:
>>>>>
$ /usr/pkg/bin/lua5.3
Lua 5.3.4  Copyright (C) 1994-2017 Lua.org, PUC-Rio
> cairo=require("lgi").cairo
/usr/pkg/share/lua/5.3/lgi/override/cairo.lua:31: attempt to index a nil value (field '_module')
stack traceback:
        /usr/pkg/share/lua/5.3/lgi/override/cairo.lua:31: in main chunk
        [C]: in function 'require'
        /usr/pkg/share/lua/5.3/lgi/namespace.lua:176: in function 'lgi.require'
        (...tail calls...)
        stdin:1: in main chunk
        [C]: in ?
<<<<<   

Actually, the problem occurs when GModule loads libcairo.so.2. It is underlined
by the following code:
>>>>>
#include <gmodule.h>

int main(int argc, char **argv)
{
  GModule *module;
  //module = g_module_open("/usr/lib/libcairo.so.2", 0);
  module = g_module_open("libcairo.so.2", 0);
  g_print("addr=%p\n", module);
  g_print("%s\n", g_module_error());

  return 0;
}

$ ./cairo-gmodule
addr=0x0
/usr/pkg/lib/libxcb-shm.so.0: Undefined PLT symbol "xcb_send_request_with_fds" (symnum = 26)
<<<<<

If I rebuild x11/libxcb from my local repository, the problem is resolved. But I 
have no idea to definitly fix it...
>How-To-Repeat:
pkg_delete -f libxcb && pkgin install libxcb

The load of libcairo.so.2 by GModule fails again
>Fix:
Just rebuild the package fixes the error. But no idea what happens on the building host system...

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.