Use of undeclared identifier 'fpgetmask'

bob prohaska fbsd at www.zefox.net
Mon Jan 22 16:48:47 UTC 2018


On Sun, Jan 21, 2018 at 10:12:14AM -0800, Steve Kargl wrote:
> On Sun, Jan 21, 2018 at 09:58:40AM -0800, bob prohaska wrote:
> > 
> > Main.cpp contains a test:
> > 
> > #ifdef HAVE_IEEEFP_H
> > #include <ieeefp.h>
> > #endif
> > 
> > and, in /usr/ports/graphics/inkscape/work/inkscape-0.92.2/include/config.h is
> > found
> > 
> > /* Define to 1 if you have the <ieeefp.h> 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
> 
> Does this include fpgetmask 

Running grep -i fpgetmask on both files discloses no matching lines.

> and does the compiler include -I/usr/include
> in its command line?  

I can't find that exact string in the log file, but lots of other include
files do seem to be found. Might it be incuded implicitly, from elsewhere?

> Is config.h included in main.cpp?
> 
> 
Seemingly yes.

> What happens if you force inclusion by deleting #ifdef HAVE_IEEEFP_H?
> 
After commenting out the test, running make clean and restarting a single-
threaded make the process stops with the same error:

src/main.cpp:679:15: error: use of undeclared identifier 'fpgetmask'
    fpsetmask(fpgetmask() & ~(FP_X_DZ | FP_X_INV));


I've placed a copy of the make log file at 
http://www.zefox.net/~fbsd/rpi2/inkscape/ieeefp_h_included.log

Thanks for reading!

bob prohaska



More information about the freebsd-ports mailing list