From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Core-updates: Downloads do not work Date: Fri, 4 Jan 2013 16:57:14 +0100 Message-ID: <201301041657.17154.andreas@enge.fr> References: <201301030955.07667.andreas@enge.fr> <201301031745.43154.andreas@enge.fr> <87obh6yomo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_dvv5QufIn3uxSe6" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr9eA-0007qe-6Y for bug-guix@gnu.org; Fri, 04 Jan 2013 10:57:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tr9e7-0001o6-Ec for bug-guix@gnu.org; Fri, 04 Jan 2013 10:57:26 -0500 In-Reply-To: <87obh6yomo.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_dvv5QufIn3uxSe6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Donnerstag, 3. Januar 2013 schrieb Ludovic Court=C3=A8s: > Andreas Enge skribis: > > So should this be checked by ./configure? > It wouldn=E2=80=99t be enough: nscd could be running at configure time, a= nd not > later. True, but it would be better than nothing - as long as it is not packaged=20 for distributions, the code will most probably run on the machine where it= =20 has been compiled. > The C library=E2=80=99s getaddrinfo and other lookup functions can of cou= rse be > used without nscd, which is what your applications were using. >=20 > What differs here is that the bootstrap Guile is statically linked, and > getaddrinfo and similar functions are not fully functional in statically > linked binaries. >=20 > Hmm, that said, we should probably build the bootstrap libc with > --disable-nscd to avoid this problem altogether. I=E2=80=99ll try that, = but > rebuilding everything is gonna take ages again... Well, if it solves the problem, it is worth the time! > Can you try: > strace -o ,,s > /nix/store/7ys18z66aih9dwzlwkj2jynk05a3xsds-guile-bootstrap-2.0/bin/gui > le -c '(pk (getaddrinfo "ftp.gnu.org" "80" AI_NUMERICSERV))' grep nscd > ,,s > The above path is that of the bootstrap Guile in master. The same problem: privat@debian:/tmp$ strace -o ,,s=20 /nix/store/7ys18z66aih9dwzlwkj2jynk05a3xsds-guile-bootstrap-2.0/bin/guile - c '(pk (getaddrinfo "ftp.gnu.org" "80" AI_NUMERICSERV))' ;;; ((#(1024 2 1 6 #(2 3497454356 80) #f) #(1024 2 2 17 #(2 3497454356 80)= =20 #f) #(1024 2 3 0 #(2 3497454356 80) #f) #(1024 10 1 6 #(10=20 42541952298791455573290623124440612875 80 0 0) #f) #(1024 10 2 17 #(10=20 42541952298791455573290623124440612875 80 0 0) #f) #(1024 10 3 0 #(10=20 42541952298791455573290623124440612875 80 0 0) #f))) privat@debian:/tmp$ grep nscd ,,s connect(5, {sa_family=3DAF_FILE, path=3D"/var/run/nscd/socket"}, 110) =3D -= 1=20 ENOENT (No such file or directory) connect(5, {sa_family=3DAF_FILE, path=3D"/var/run/nscd/socket"}, 110) =3D -= 1=20 ENOENT (No such file or directory) Admittedly, I recently downloaded new tarballs mainly for my own new=20 packages, and since I needed the hash, I did so using guix-download. So=20 maybe it does not work any more since guix includes the build code from=20 nix? It definitely did work at some point in time for my first "hello". Andreas --Boundary-01=_dvv5QufIn3uxSe6 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Donnerst= ag, 3. Januar 2013 schrieb Ludovic Court=C3=A8s:

> Andrea= s Enge <andreas@enge.fr> skribis:

> > S= o should this be checked by ./configure?

> It wou= ldn=E2=80=99t be enough: nscd could be running at configure time, and not

> later.=

&nb= sp;

True, but i= t would be better than nothing - as long as it is not packaged for distribu= tions, the code will most probably run on the machine where it has been com= piled.

&nb= sp;

> The C = library=E2=80=99s getaddrinfo and other lookup functions can of course be

> used w= ithout nscd, which is what your applications were using.

>

> What d= iffers here is that the bootstrap Guile is statically linked, and

> getadd= rinfo and similar functions are not fully functional in statically

> linked= binaries.

>

> Hmm, t= hat said, we should probably build the bootstrap libc with

> --disa= ble-nscd to avoid this problem altogether. I=E2=80=99ll try that, but

> rebuil= ding everything is gonna take ages again...

&nb= sp;

Well, if it= solves the problem, it is worth the time!

&nb= sp;

> Can yo= u try:

> stra= ce -o ,,s

> /nix/s= tore/7ys18z66aih9dwzlwkj2jynk05a3xsds-guile-bootstrap-2.0/bin/gui

> le -c = '(pk (getaddrinfo "ftp.gnu.org" "80" AI_NUMERICSERV))' = grep nscd

> ,,s

> The ab= ove path is that of the bootstrap Guile in master.

&nb= sp;

The same pr= oblem:

privat@debi= an:/tmp$ strace -o ,,s /nix/store/7ys18z66aih9dwzlwkj2jynk05a3xsds-guile-bo= otstrap-2.0/bin/guile -c '(pk (getaddrinfo "ftp.gnu.org" "80= " AI_NUMERICSERV))'

&nb= sp;

;;; ((#(102= 4 2 1 6 #(2 3497454356 80) #f) #(1024 2 2 17 #(2 3497454356 80) #f) #(1024 = 2 3 0 #(2 3497454356 80) #f) #(1024 10 1 6 #(10 425419522987914555732906231= 24440612875 80 0 0) #f) #(1024 10 2 17 #(10 4254195229879145557329062312444= 0612875 80 0 0) #f) #(1024 10 3 0 #(10 425419522987914555732906231244406128= 75 80 0 0) #f)))

&nb= sp;

privat@debi= an:/tmp$ grep nscd ,,s

connect(5, = {sa_family=3DAF_FILE, path=3D"/var/run/nscd/socket"}, 110) =3D -1= ENOENT (No such file or directory)

connect(5, = {sa_family=3DAF_FILE, path=3D"/var/run/nscd/socket"}, 110) =3D -1= ENOENT (No such file or directory)

&nb= sp;

Admittedly,= I recently downloaded new tarballs mainly for my own new packages, and sin= ce I needed the hash, I did so using guix-download. So maybe it does not wo= rk any more since guix includes the build code from nix? It definitely did = work at some point in time for my first "hello".

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_dvv5QufIn3uxSe6--