From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 16 05:07:28 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32FBF285; Sun, 16 Mar 2014 05:07:28 +0000 (UTC) Received: from mail-oa0-x234.google.com (mail-oa0-x234.google.com [IPv6:2607:f8b0:4003:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E2397E27; Sun, 16 Mar 2014 05:07:27 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id l6so4304109oag.39 for ; Sat, 15 Mar 2014 22:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SqOfVdhx5cgzS4uTkT3jdB6XB6BQQP35Z3XT0EeKuBM=; b=XiTCA3mWc5Pu7c253pTNNu58L5RVHXLxNygsXbhpr7Jt/06Qc7ElZJq5ODQ5OAS4MU VwqQ8ZBu4WNXEy+UbG3ZVaq1F7nQyad96JlXo9jrsV+dKTeQZJpE+6N47O2RyZB6eXzt vY3RQNG3WeToi+RwZK+Fy6OqDk8MWnPaBuLuWo0eMKkM87TSwhOhqePSSNL4B4B+B5GN HcZNPMGniuG5kB0/uSNxWJe3/G39E9CeG2gs+EwZmAwcA2FUXGzu7s/+sdrHaNBWEXBx QCqwu37tFQm5KaHgh9Yls26kI8z4rgXJvKz2RZ0XqNvuey5o9kih5rfXfAbQuJeZyuuJ jMSA== MIME-Version: 1.0 X-Received: by 10.60.62.146 with SMTP id y18mr14798321oer.24.1394946447176; Sat, 15 Mar 2014 22:07:27 -0700 (PDT) Received: by 10.182.130.71 with HTTP; Sat, 15 Mar 2014 22:07:27 -0700 (PDT) In-Reply-To: References: Date: Sun, 16 Mar 2014 01:07:27 -0400 Message-ID: Subject: Re: Definition struct and int From: Joe Nosay To: Adrian Chadd , FreeBSD Hackers Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 05:07:28 -0000 On Fri, Mar 14, 2014 at 5:43 PM, Joe Nosay wrote: > > > > On Thu, Mar 13, 2014 at 9:26 PM, Adrian Chadd wrote: > >> Is this -HEAD, or? >> >> >> -a >> >> >> On 13 March 2014 18:13, Joe Nosay wrote: >> > Testing of a patch for using UDP Lite on FreeBSD caused no compilation >> > errors; however, after adding the options of "VIMAGE" and "MROUTING" to >> > conf/kern?GENERIC, make buildkernel stops with: >> > /usr/src/sys/netinet/udp_usrreq.c:1701:18: error: too few arguments to >> > function >> > call, expected 2, have 1 >> > udp_discardcb(up); >> > ~~~~~~~~~~~~~ ^ >> > /usr/src/sys/netinet/udp_usrreq.c:274:1: note: 'udp_discardcb' declared >> here >> > void >> > ^ >> > 1 error generated. >> > *** Error code 1 >> > >> > The file in question of >> > /usr/src/sys/netinet/udp_usrreq.c >> > >> > has the value of >> > udp_discardcb(struct udpcb *up, int isudp) >> > >> > that is causing the problem. >> > >> > >> > >> > I believe that the compiler is looking for a value to int isudp but that >> > value does not exist. >> > _______________________________________________ >> > freebsd-hackers@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> > To unsubscribe, send any mail to " >> freebsd-hackers-unsubscribe@freebsd.org" >> > > > No, it is 10.0 RELEASE #0 r262601 > > Last time, I had entered too many files. Here are the relative files. > > > There was no problem in compiling as listed earlier. I have not studied C > enough to solve this problem; however, I can see that int isudp happens > once while the next closest account is int isudplite. > > I've just upgraded source to head. I have three patches for UDP Lite. The question is which one(s) should I use. The udp-v.diff only has a reference to udp_discardcb up, while patch udplite and udplite.diff have the struct and int references.