Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails for hurd-i386 (Debian Bug 881179) #61

Open
dun opened this issue Nov 8, 2017 · 1 comment
Open

build fails for hurd-i386 (Debian Bug 881179) #61

dun opened this issue Nov 8, 2017 · 1 comment

Comments

@dun
Copy link
Owner

dun commented Nov 8, 2017

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881179

Builds of munge for hurd-i386 (admittedly not a release architecture) have been failing:

  configure: checking authentication support
  checking for getpeereid... no
  checking for getpeerucred... no
  checking ucred.h usability... no
  checking ucred.h presence... no
  checking for ucred.h... no
  checking for struct ucred... no
  checking for SO_PEERCRED sockopt... no
  checking for struct xucred... no
  checking for LOCAL_PEERCRED sockopt... no
  checking for struct strrecvfd... yes
  checking if file descriptors can be passed over a fifo... no
  checking for /dev/spx... no
  checking for authentication method... failed
  configure: error: cannot determine authentication method

The immediate cause of failure for the fifo-based test was the Hurd's famous lack of PATH_MAX:

  configure:14718: checking if file descriptors can be passed over a fifo
  configure:14773: gcc -o conftest -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro -Wl,-z,now conftest.c  >&5
  conftest.c: In function 'main':
  conftest.c:91:11: error: 'PATH_MAX' undeclared (first use in this function)

When locally patched to avoid relying on PATH_MAX, the test compiled, but proceeded to fail at runtime with ENOTTY (Inappropriate ioctl for device). I suspect, but have NOT confirmed, that a variant of this approach that uses I_RECVFD over a Unix domain socket would fare better.

Could you please take a look?

Thanks!

--
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/[email protected]

@dun dun added the bug label Nov 8, 2017
@dun dun removed the bug label Jan 25, 2020
@dun
Copy link
Owner Author

dun commented Jan 25, 2020

Removing the bug label since this is a failure to build on an unsupported platform, but keeping the issue open until I have a chance to spin up a hurd vm to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant