Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830560 - app-office/dia-0.97.3-r1 fails to compile: configure: error: Cant find neither a definition of isinf nor ieeefp.h
Summary: app-office/dia-0.97.3-r1 fails to compile: configure: error: Cant find neithe...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: missing-depend
  Show dependency tree
 
Reported: 2022-01-03 20:47 UTC by Agostino Sarubbo
Modified: 2023-05-01 13:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,54.91 KB, text/plain)
2022-01-03 20:47 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,81.45 KB, text/plain)
2022-01-03 20:47 UTC, Agostino Sarubbo
Details
Log output for ./configure; highlighting the issue (config.log,80.61 KB, text/x-log)
2023-05-01 13:22 UTC, fancsali
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-03 20:47:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-office/dia-0.97.3-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-03 20:47:38 UTC
Created attachment 761229 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-03 20:47:40 UTC
Created attachment 761230 [details]
1-config.log

1-config.log
Comment 3 fancsali 2023-05-01 13:22:48 UTC
Created attachment 861014 [details]
Log output for ./configure; highlighting the issue

Not strictly Gentoo related, as I am trying to got this to build on Alpine against musl, but here's what I've found so far.

The ./configure script will try to figure out, whether there's an isinf() macro or function defined; to do this, it tries to get the attached piece of code (config.log:1225) to compile/link.

However, for some weird GCC workaround it tries to redefine isinf as:

char isinf();

... which in conflicts with the musl built in definition of int isinf(...), in fact twice: the return value, and the fact, that it has no arguments:

conftest.c:55:6: warning: conflicting types for built-in function 'isinf'; expected 'int()' [-Wbuiltin-declaration-mismatch]
   55 | char isinf ();
      |      ^~~~~
conftest.c:1:1: note: 'isinf' is declared in header '<math.h>'

... which in turn triggers ./configure to try finding ieeefp.h, which fails.

The offending code begins at configure:18707.