Summary: | `sys/times.h` issue while cross-compiling on openSUSE | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Werner Lemberg <wl> |
Component: | Build Process | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris.liddell |
Priority: | P2 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- |
Description
Werner Lemberg
2025-01-23 20:56:24 UTC
More analysis showed that some GNU/Linux distributions like Fedora or openSUSE have `/usr/include/sys/times.h`, while others like Ubuntu or Debian have `/usr/include/x86_64-linux-gnu/sys/times.h`. The problem is that `unix-aux.mak` looks hard-coded into `/usr/include` to produce `gconfig_.h`. That's wrong - not only for cross-compiling, but also for native compilation. It only becomes a problem with cross-compilation, though. The comment suggests the stuff in unix-aux.mak is a hack for a specific problem or set of problems with specific environments - probably historical at this point, but still, I think it should be benign if we do the "earlier" bits properly. I'm hoping this resolves the problem: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/user/chrisl/ghostpdl.git/commit/?id=9b5d2d46361f83f7d5c2baee911e038961d522f1 What do you think Werner? (Apologies for the long delay... it's been a busy few months) (In reply to Chris Liddell (chrisl) from comment #2) Looks good to me, thanks! (In reply to Werner Lemberg from comment #3) > (In reply to Chris Liddell (chrisl) from comment #2) > > Looks good to me, thanks! Thanks Werner. Pushed: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=dcfe10972b9 |