NetBSD Problem Report #53989

From chris@hp-sepp.localdomain  Mon Feb 18 00:26:08 2019
Return-Path: <chris@hp-sepp.localdomain>
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 C5F077A1AF
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 18 Feb 2019 00:26:07 +0000 (UTC)
Message-Id: <20190217230748.897F587B733@hp-sepp.localdomain>
Date: Mon, 18 Feb 2019 00:07:48 +0100 (CET)
From: chris@groessler.org
Reply-To: chris@groessler.org
To: gnats-bugs@NetBSD.org
Subject: build error with MKX11MOTIF=yes in mk.conf
X-Send-Pr-Version: 3.95

>Number:         53989
>Category:       misc
>Synopsis:       build error with MKX11MOTIF enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mrg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 18 00:30:00 +0000 2019
>Closed-Date:    Tue Feb 19 21:09:06 +0000 2019
>Last-Modified:  Tue Feb 19 21:09:06 +0000 2019
>Originator:     Christian Groessler
>Release:        NetBSD 8.99.34
>Organization:

>Environment:


System: NetBSD hp-sepp 8.99.34 NetBSD 8.99.34 (GENERIC) #0: Thu Feb 14 16:28:26 CET 2019 root@hp-sepp:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Trying to rebuild the system with MKX11MOTIF=yes in /etc/mk.conf fails.

Contents of /etc/mk.conf:
MKCATPAGES=yes
MKCOMPAT=yes
MKCTF=yes
MKDEBUG=yes
MKDEBUGLIB=yes
MKDYNAMICROOT=no
MKOBJ=yes
MKOBJDIRS=yes
MKX11=yes
MKX11MOTIF=yes
TOOLDIR=/usr/tools

Build error:
--- GLwMDrawA.d ---
#    create  libGLw/GLwMDrawA.d
CC=/usr/tools/bin/x86_64--netbsd-gcc /usr/tools/bin/nbmkdep -f GLwMDrawA.d.tmp  --   -std=gnu99   --sysroot=/ -I/usr/pkg/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__     /usr/xsrc/external/mit/glw/dist/GLwMDrawA.c &&  mv -f GLwMDrawA.d.tmp GLwMDrawA.d
In file included from /usr/xsrc/external/mit/glw/dist/GLwMDrawA.c:41:0:
/usr/xsrc/external/mit/glw/dist/GLwDrawA.c:53:10: fatal error: Xm/PrimitiveP.h: No such file or directory
 #include <Xm/PrimitiveP.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
nbmkdep: compile failed.
*** [GLwMDrawA.d] Error code 1

make[4]: stopped in /usr/src/external/mit/xorg/lib/libGLw


I didn't find this file (PrimitiveP.h) in neither the src/ nor the xsrc/ tree.

According to mk.conf(5) this MKX11MOTIF is a valid configuration option.
>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org, chris@groessler.org
Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org
Subject: re: misc/53989: build error with MKX11MOTIF=yes in mk.conf
Date: Tue, 19 Feb 2019 07:08:41 +1100

 i'm fairly sure this is a user-error, though perhaps mk.conf(5)
 should be updated to duplicate this info from bsd.README (which
 is the Real Truth of make variables.):

 MKX11MOTIF:     If "yes", build the native X11 libGLw with Motif stubs.  If
                 Motif is not installed in the default location /usr/pkg, the
                 location can be specified using the X11MOTIFPATH variable.
                 Default: no

 ie, this absolutely requires you to manually point it towards
 the Motif sources that we don't ship.

 can you confirm?  i'll add this info to mk.conf(5) if this still
 works.

 thanks.


 .mrg.

From: Christian Groessler <chris@groessler.org>
To: matthew green <mrg@eterna.com.au>, gnats-bugs@NetBSD.org
Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/53989: build error with MKX11MOTIF=yes in mk.conf
Date: Tue, 19 Feb 2019 20:25:34 +0100

 I've built and installed /usr/pkgsrc/x11/motif and afterwards a test build
 ("make build" in /usr/src) worked fine.

 Please extend the man page and close the PR.

 regards,
 chris

Responsible-Changed-From-To: misc-bug-people->mrg
Responsible-Changed-By: mrg@NetBSD.org
Responsible-Changed-When: Tue, 19 Feb 2019 21:09:06 +0000
Responsible-Changed-Why:
i took care of it.


State-Changed-From-To: open->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Tue, 19 Feb 2019 21:09:06 +0000
State-Changed-Why:
i commited a change to mk.conf.5.  thanks for the bug report!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.