NetBSD Problem Report #54634

From www@netbsd.org  Mon Oct 21 15:09:04 2019
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 653027A1FC
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 21 Oct 2019 15:09:04 +0000 (UTC)
Message-Id: <20191021150903.91FDC7A242@mollari.NetBSD.org>
Date: Mon, 21 Oct 2019 15:09:03 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: compiling devel/glib2 on Solaris 11
X-Send-Pr-Version: www-1.0

>Number:         54634
>Category:       pkg
>Synopsis:       compiling devel/glib2 on Solaris 11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 21 15:10:00 +0000 2019
>Closed-Date:    Mon Feb 10 18:08:27 +0000 2020
>Last-Modified:  Mon Feb 10 18:08:27 +0000 2020
>Originator:     Joern Clausen
>Release:        
>Organization:
Bielefeld University
>Environment:
>Description:
See the current follow-up discussion to PR/41601 on the pkgsrc-user list for reference.

Compiling devel/glib2 on Solaris 11.3 needs a current patch-level of the OS, due to changes in /usr/include/sys/feature_tests.h. I needed to upgrade to the most recent release "entire@0.5.11-0.175.3.35.0.6.0".

In addition, this patch is necessary:

--- Makefile    2019/10/10 10:08:04     1.1
+++ Makefile    2019/10/21 15:07:53
@@ -11,6 +11,7 @@
 # Avoid linux dependency on libmount-dev
 MESON_ARGS+=   -Dlibmount=false

+CPPFLAGS.SunOS+=-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1
 LDFLAGS.SunOS+=                -lintl -lnsl

 REPLACE_PYTHON+=       gio/gio-querymodules-wrapper.py


otherwise this error occurs:

../gio/gsocket.c:4385:11: error: 'struct msghdr' has no member named 'msg_control'
 4385 |       _msg->msg_control = NULL; \
      |           ^~

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Sun, 09 Feb 2020 21:32:35 +0000
State-Changed-Why:
On 2019-11-28 some CPPFLAGS have been added.
Does the problem still persist?


From: =?UTF-8?Q?Clausen=2c_J=c3=b6rn?= <joern.clausen@uni-bielefeld.de>
To: <gnats-bugs@netbsd.org>, <pkg-manager@netbsd.org>,
	<pkgsrc-bugs@netbsd.org>, <gnats-admin@netbsd.org>, <rillig@netbsd.org>
Cc: 
Subject: Re: pkg/54634 (compiling devel/glib2 on Solaris 11)
Date: Mon, 10 Feb 2020 09:30:52 +0100

 > On 2019-11-28 some CPPFLAGS have been added.
 > Does the problem still persist?

 The added CPPFLAGS work for me (using GCC 9.2.0). Jonathan Perkin's 
 valuable discussion on this subject is probably already recorded in 
 pkgsrc's archive, but just for good measure:

 https://gist.github.com/jperkin/b08f9108daf8d0ac695067d71f882a9d

 Feel free to close this PR. Thanks to all involved.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum
 https://www.uni-bielefeld.de/bits

State-Changed-From-To: feedback->closed
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Mon, 10 Feb 2020 18:08:27 +0000
State-Changed-Why:
Fixed in November 2019 already.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.