delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/07/01:23:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=WeOo4uvdkSjyrcg/91gv18GAZTMKQ6BnvnL5Qbqxjd0hZK4ldyncZ
uBdBbH+lh8QAT3ux0dlO2qV8XiMZPzpilKArWemsodcWyxE86xL+kLbY+FmpFwIx
YDkkzlm3D8pZ/RLIcw4A0VUWMAbPPF5SWysyRN54ifoUw5gsuEYSKU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=Qc/KrqJFrIV4wZvrEJcGQaD1+MM=; b=Tb1TtE7MKmdS/OQmlztBbA8HaEIV
YaYbCVch8nM7tBpgWFKZ6jfDOuT0hURzayZQdAeLPbmQ/fcDxGwVVgPFhgNbPGQG
7XAvBTdpRHgIpNpy/a9s85pB0Lq1+QVNfDVqVdQz9KGJ7sHSnoOx1mDHK4NLkMw+
gjmTla4iF+/p5s4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: "D. Boland" <daniel AT boland DOT nl>
Subject: Re: Minires truncates host names
Date: Mon, 07 Jul 2014 07:27:28 +0200
Lines: 35
Message-ID: <53BA2FC0.D8E12808@boland.nl>
References: <028c01cf9974$ad507120$07f15360$@alum.mit.edu>
Mime-Version: 1.0
X-IsSubscribed: yes

Hi Pierre,

"Pierre A. Humblet" wrote:
> 
> You are right, there is a bug in res_querydomain,
> Line 737 *(ptr++ - 1) = '.';   should be
> *ptr++ = '.';
> 
> I would also add a debug printf at the top of the function:
> DPRINTF(statp->options & RES_DEBUG, "querydomain \"%s\"  \"%s\" type %d\n",
> Name, DomName, Type);
> 
> Unfortunately I am not setup to build Cygwin so I can't test the above nor
> submit a proper patch.

I downloaded the source code from your site:

ftp://ftp.franken.de/pub/support/win32/develop/gnuwin32/cygwin/porters/Humblet_Pierre_A/V1.5/minires-0.97-src.tar.gz

After a 'make', I get multiple warnings and errors, for example:

resolver.h:48:6: fout: conflicting types for `dprintf´
 void dprintf(char * format, ...);
      ^
In file included from /usr/include/string.h:10:0,
                 from resolver.h:16,
                 from minires.c:14:
/usr/include/stdio.h:337:5: note: previous declaration of `dprintf´ was here
 int _EXFUN(dprintf, (int, const char *__restrict, ...)
     ^

Looks like the dprintf function is already defined in stdio.h. Are you using gcc?

Greetings,
Daniel


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019