NetBSD Problem Report #52358

From  Sun Jul  2 09:38:24 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (not verified))
	by (Postfix) with ESMTPS id A931E7A264
	for <>; Sun,  2 Jul 2017 09:38:24 +0000 (UTC)
Message-Id: <>
Date: Sun,  2 Jul 2017 09:38:23 +0000 (UTC)
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
NetBSD 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
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, 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 It is underlined
by the following code:
#include <gmodule.h>

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

  return 0;

$ ./cairo-gmodule
/usr/pkg/lib/ 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...
pkg_delete -f libxcb && pkgin install libxcb

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