unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Debian package build problems with 2.0.9 (from git)
@ 2013-06-15 18:06 Rob Browning
  2013-06-15 20:47 ` Ludovic Courtès
  2013-06-16  0:22 ` Daniel Hartwig
  0 siblings, 2 replies; 7+ messages in thread
From: Rob Browning @ 2013-06-15 18:06 UTC (permalink / raw)
  To: guile-devel


It looks like the newer libgc is headed for unstable, and I'm working on
the Debian packages for 2.0.9, where I've run into a couple of problems.

The first might be a problem caused by my packaging, but in case not,
the build from git fails because doc/ref/effective-version.texi doesn't
exist when it tries to build guile.info.  Here's how I fixed that for
now in doc/ref/Makefile.am:

  -guile.texi: libguile-autoconf.texi
  +guile.texi: effective-version.texi libguile-autoconf.texi

The second problem is that the net-db.test is failing:

  Running net-db.test
  unexpected error code: -11 "System error"
  FAIL: net-db.test: getaddrinfo: no name

But it looks like at least on my current (Debian unstable) system,
that may be the normal behavior.  This program:

  #include <errno.h>
  #include <netdb.h>
  #include <stdio.h>
  #include <string.h>

  int
  main(int argc, char **argv)
  {
    struct addrinfo c_hints, *c_result;

    memset(&c_hints, 0, sizeof (c_hints));
    const int err = getaddrinfo ("does-not-exist",
                                 NULL,
                                 &c_hints,
                                 &c_result);
    if (err == 0)
      freeaddrinfo (c_result);

    printf("err: %d\n", err);
    printf("errno: %d\n", errno);

    return 0;
  }

Produces this output:

  $ ./foo
  err: -11
  errno: 2

So I'm wondering if there's a problem with my test code, my system, or
if the test might need another exception here:

            (and (or (= errcode EAI_NONAME)
                     (and (defined? 'EAI_NODATA)  ; GNU extension
                          (= errcode EAI_NODATA))
                     (= errcode EAI_AGAIN)

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-16 15:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 18:06 Debian package build problems with 2.0.9 (from git) Rob Browning
2013-06-15 20:47 ` Ludovic Courtès
2013-06-15 21:28   ` Rob Browning
2013-06-15 22:21     ` Ludovic Courtès
2013-06-16 15:18       ` Ludovic Courtès
2013-06-16  0:22 ` Daniel Hartwig
2013-06-16  4:52   ` Rob Browning

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).