From: Adonay Felipe Nogueira <adfeno@hyperbola.info>
To: 30841@debbugs.gnu.org
Subject: bug#30841: Building Zend PHP (php): tests fail, and "Name or service not known"
Date: Sat, 17 Mar 2018 23:14:28 -0300 [thread overview]
Message-ID: <874llecepn.fsf@hyperbola.info> (raw)
In-Reply-To: <20180317175901.GA2461@jurong>
[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]
> situations, due to a change in glibc. The solution was to install "nscd"
> (possibly in your host distribution if you are not on GuixSD).
>
> Could you give it a try?
I already have host/foreign distro's "nscd" package installed, and the
daemon was/is already running.
- Distro: Trisquel 7
- nscd version: (Ubuntu EGLIBC 2.19-0ubuntu6.14) 2.19
--8<---------------cut here---------------start------------->8---
$ sudo service nscd status
[sudo] password for adfeno:
* Status of Name Service Cache Daemon service:
* running.
$ LANG=C sudo netstat -lanp | grep nscd
unix 2 [ ACC ] STREAM LISTENING 18682 1349/nscd /var/run/nscd/socket
--8<---------------cut here---------------end--------------->8---
I also made my own "/etc/nsswitch.conf" file, which is attached. The
"nscd.conf" --- also attached --- comes from the "nscd" package, and
wasn't changed by me. If I recall correctly, the only think that I made
myself was the nsswitch.conf file, in which the "hosts" entry was based
on GuixSD's related GNU Shepherd service.
I also took care to restart the Guix daemon after changing the
nsswitch.conf file, but got the same result.
[-- Attachment #2: nsswitch.conf --]
[-- Type: application/octet-stream, Size: 511 bytes --]
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files mdns_minimal [NOTFOUND=return] dns ndns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
[-- Attachment #3: nscd.conf --]
[-- Type: application/octet-stream, Size: 2528 bytes --]
#
# /etc/nscd.conf
#
# An example Name Service Cache config file. This file is needed by nscd.
#
# Legal entries are:
#
# logfile <file>
# debug-level <level>
# threads <initial #threads to use>
# max-threads <maximum #threads to use>
# server-user <user to run server as instead of root>
# server-user is ignored if nscd is started with -S parameters
# stat-user <user who is allowed to request statistics>
# reload-count unlimited|<number>
# paranoia <yes|no>
# restart-interval <time in seconds>
#
# enable-cache <service> <yes|no>
# positive-time-to-live <service> <time in seconds>
# negative-time-to-live <service> <time in seconds>
# suggested-size <service> <prime number>
# check-files <service> <yes|no>
# persistent <service> <yes|no>
# shared <service> <yes|no>
# max-db-size <service> <number bytes>
# auto-propagate <service> <yes|no>
#
# Currently supported cache names (services): passwd, group, hosts, services
#
# logfile /var/log/nscd.log
# threads 4
# max-threads 32
# server-user nobody
# stat-user somebody
debug-level 0
# reload-count 5
paranoia no
# restart-interval 3600
enable-cache passwd yes
positive-time-to-live passwd 600
negative-time-to-live passwd 20
suggested-size passwd 211
check-files passwd yes
persistent passwd yes
shared passwd yes
max-db-size passwd 33554432
auto-propagate passwd yes
enable-cache group yes
positive-time-to-live group 3600
negative-time-to-live group 60
suggested-size group 211
check-files group yes
persistent group yes
shared group yes
max-db-size group 33554432
auto-propagate group yes
enable-cache hosts yes
positive-time-to-live hosts 3600
negative-time-to-live hosts 20
suggested-size hosts 211
check-files hosts yes
persistent hosts yes
shared hosts yes
max-db-size hosts 33554432
enable-cache services yes
positive-time-to-live services 28800
negative-time-to-live services 20
suggested-size services 211
check-files services yes
persistent services yes
shared services yes
max-db-size services 33554432
# netgroup caching is known-broken, so disable it in the default config,
# see: https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1068889
enable-cache netgroup no
positive-time-to-live netgroup 28800
negative-time-to-live netgroup 20
suggested-size netgroup 211
check-files netgroup yes
persistent netgroup yes
shared netgroup yes
max-db-size netgroup 33554432
next prev parent reply other threads:[~2018-03-18 2:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-17 17:28 bug#30841: Building Zend PHP (php): tests fail, and "Name or service not known" Adonay Felipe Nogueira
2018-03-17 17:59 ` Andreas Enge
2018-03-18 2:14 ` Adonay Felipe Nogueira [this message]
2018-03-20 14:16 ` Adonay Felipe Nogueira
2020-09-22 12:29 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874llecepn.fsf@hyperbola.info \
--to=adfeno@hyperbola.info \
--cc=30841@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).