From owner-freebsd-ports@freebsd.org Sun Jan 21 17:58:44 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0036CED44B7 for ; Sun, 21 Jan 2018 17:58:43 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id ACF5A7511E for ; Sun, 21 Jan 2018 17:58:43 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w0LHweAk086011 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 21 Jan 2018 09:58:41 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w0LHwerb086010; Sun, 21 Jan 2018 09:58:40 -0800 (PST) (envelope-from fbsd) Date: Sun, 21 Jan 2018 09:58:40 -0800 From: bob prohaska To: Steve Kargl Cc: freebsd-ports@freebsd.org Subject: Re: Use of undeclared identifier 'fpgetmask' Message-ID: <20180121175840.GA85758@www.zefox.net> References: <20180120222638.GA82875@www.zefox.net> <20180120230421.GA57305@troutmask.apl.washington.edu> <20180121160130.GA85652@www.zefox.net> <20180121173553.GA73646@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180121173553.GA73646@troutmask.apl.washington.edu> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2018 17:58:44 -0000 On Sun, Jan 21, 2018 at 09:35:53AM -0800, Steve Kargl wrote: > On Sun, Jan 21, 2018 at 08:01:30AM -0800, bob prohaska wrote: > > On Sat, Jan 20, 2018 at 03:04:21PM -0800, Steve Kargl wrote: > > > On Sat, Jan 20, 2018 at 02:26:38PM -0800, bob prohaska wrote: > > > > > > > > use of undeclared identifier 'fpgetmask' > > > > > > > > > > > > > > > > > > man fpsetmask > > > > > > Add "#include " to your code. > > > > > > > Sorry, I chopped off the preamble 8-( > > > > This is in reference to /usr/ports/graphics/inkscape. > > > > Inkscape has lots of dependencies, so knowing where to make a > > change is difficult. With luck it'll be a config option. > > > > I've put the make log at > > http://www.zefox.net/~fbsd/rpi2/inkscape/ > > > > Thanks for reading, and any ideas! > > > > It looks like that you'll need to read main.cpp to see if ieeefp.h > is properly included in the file. Are there any #ifdef HAVE_IEEE > #endif blocks preventing ieeefp.h from being found. > Main.cpp contains a test: #ifdef HAVE_IEEEFP_H #include #endif and, in /usr/ports/graphics/inkscape/work/inkscape-0.92.2/include/config.h is found /* Define to 1 if you have the header file. */ #define HAVE_IEEEFP_H 1 so it looks as if the test is satisfied. A brute-force search of the filesystem discloses several copies of ieeefh.h: /tmp/mountpoint.Jw2teE/www/firefox-esr/work/firefox-52.5.2esr/obj-armv7-unknown-freebsd12.0/config/system_wrappers/ieeefp.h /usr/include/machine/ieeefp.h /usr/include/ieeefp.h /usr/obj/usr/src/arm.armv7/tmp/usr/include/machine/ieeefp.h /usr/obj/usr/src/arm.armv7/tmp/usr/include/ieeefp.h /usr/obj/arm.armv7/usr/src/tmp/usr/include/machine/ieeefp.h /usr/obj/arm.armv7/usr/src/tmp/usr/include/ieeefp.h /usr/src/sys/arm/include/ieeefp.h /usr/src/sys/amd64/include/ieeefp.h /usr/src/sys/arm64/include/ieeefp.h /usr/src/sys/mips/include/ieeefp.h /usr/src/sys/i386/include/ieeefp.h /usr/src/sys/powerpc/include/ieeefp.h /usr/src/sys/sparc64/include/ieeefp.h /usr/src/sys/riscv/include/ieeefp.h /usr/src/include/ieeefp.h ^C It's clear the file is present. All the other include files seem to be found, so it's not an obvious search path defect. Thanks for reading, and any further thoughts! bob prohaska