From owner-freebsd-net@freebsd.org Mon Mar 27 07:48:20 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB47AD1FEDF for ; Mon, 27 Mar 2017 07:48:20 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7193916D8 for ; Mon, 27 Mar 2017 07:48:20 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Received: by mail-oi0-x232.google.com with SMTP id o67so8348504oib.1 for ; Mon, 27 Mar 2017 00:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kev009.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=R9Vvxc6xxxOzZDmQP0Ud6iKHS/wBEEvOP5Tiywv1wW4=; b=AotEtq4P70CchDoBSOHEgJfvs3wJp/7KEWYazyV5c+PBdBVjAUOyeDKokvKK/vl60P zP1rF4SciwKxwHcsXKAGnoo0OBo6m7YqdDKG9BBpD91UR8Km/ScoBh6zeOot7zS2AZNo 0YJL0uvCZWII+9DM23G1chxsDc0mcYGSU1UgE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=R9Vvxc6xxxOzZDmQP0Ud6iKHS/wBEEvOP5Tiywv1wW4=; b=Dl3nJ0zQAwerAz+OvZBKMusdGVnqiM3It05UK2Vp3PuOgFKZWWOs38ASklUnGA5lJS 3kEJeKmwc9j3B9DmHirGapRM9+pMLBPSTXPSf74avZvmA9drGWKR2nAXi1Qr5pVTgI1h v4moA1e8mjPw/mri7pgwcr0qUPSQU+wh9174zDeas6PsL57zLCOvuomSViBgC+YyM6D/ b9ZpLWX0q6kW5nQa3uZdHF6oVBNZ/va9G4f6ne8NlpyLG5k4vM7+GW3NrRYZIC7CxJtK 6or5hDDpGFCXvdp3qTulpfjkuYVTuxgvP9h0/wbbLEHQat7U8DG7znpsnMwwfgz/1EdR gXHg== X-Gm-Message-State: AFeK/H1uyYMHNt4JlCIKy13fb7bpuIyhn+yjagujp2zQWEix0f1gY6mkxPSQf/K29MbTkzkQB1/eyXFVTxYiGw== X-Received: by 10.202.82.9 with SMTP id g9mr10895771oib.13.1490600899757; Mon, 27 Mar 2017 00:48:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.30.196 with HTTP; Mon, 27 Mar 2017 00:48:19 -0700 (PDT) In-Reply-To: References: From: Kevin Bowling Date: Mon, 27 Mar 2017 00:48:19 -0700 Message-ID: Subject: Re: Error at the time of compiling netmap-fwd on -CURRENT To: "Caraballo-vega, Jordan A. (GSFC-6062)[COMPUTER SCIENCE CORP]" Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 07:48:20 -0000 Hi, The DPRINTF macro in netmap-fwd is defined as #define *DPRINTF*(_fmt, args...) if (verbose) dprintf(_fmt, ## args) while dprintf is defined as dprintf(int fd, const char * restrict format, ...); in stdio.h You could try, simplistically, to change DPRINTF macro to #define *DPRINTF*(_fmt, args...) if (verbose) printf(_fmt, ## args) to get going but there is likely more to the story. Regards, On Fri, Mar 24, 2017 at 4:19 PM, Caraballo-vega, Jordan A. (GSFC-6062)[COMPUTER SCIENCE CORP] wrote: > Hello, > > I am trying to compile netmap-fwd from git > (https://github.com/Netgate/netmap-fwd) on a Dell PE 530 with -CURRENT > updated from today (03/24/17). With the dependencies installed ( # pkg > install libucl libevent2 ) I run make and get the following error > followed by 8 warnings: > > cc -O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wwrite-strings > -Wredundant-decls -Wnested-externs -Winline -I/usr/local/include -c arp.c > In file included from arp.c:51: > ./util.h:33:5: error: conflicting types for 'dprintf' > int dprintf(const char *, ...); > ^ > /usr/include/stdio.h:364:6: note: previous declaration is here > int dprintf(int, const char * __restrict, ...) __printflike(2, 3); > ^ > arp.c:394:11: warning: incompatible pointer to integer conversion > passing 'const char [44]' to parameter of type 'int' > [-Wint-conversion] > DPRINTF("%s: discarding the packet, too short (%d).\n", > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./util.h:29:54: note: expanded from macro 'DPRINTF' > > > Any idea or feedback would be greatly appreciated. > > Cheers, > > Jordan > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >