From owner-freebsd-ports@freebsd.org Sun Jan 31 06:46:11 2016 Return-Path: Delivered-To: freebsd-ports@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 B4FE3A73997 for ; Sun, 31 Jan 2016 06:46:11 +0000 (UTC) (envelope-from jungleboogie0@gmail.com) Received: from mail-vk0-x22c.google.com (mail-vk0-x22c.google.com [IPv6:2607:f8b0:400c:c05::22c]) (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 8761D156D for ; Sun, 31 Jan 2016 06:46:11 +0000 (UTC) (envelope-from jungleboogie0@gmail.com) Received: by mail-vk0-x22c.google.com with SMTP id e64so62220761vkg.0 for ; Sat, 30 Jan 2016 22:46:11 -0800 (PST) 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 :cc:content-type:content-transfer-encoding; bh=7uUo7pUP+1aUX/brnKj/IbTpryN21ZjrOwScTYJXUvA=; b=OnPB4t1Pieu29/YuBkzJsAPU6n6yPnetpuPwnIAmcR04rYBX1bs0PVs2s6p0gifKZ7 ME13POxMvmdn+rlmdtu8uRE60j5T8ogWgVLFwjAzJ24PfWSYTOiPkVmOcgkRPiGbRMAF ZBTdDFlJOflFALiX3CkbE1tUwfRkwPg4PSE81ryRYzaHe+NwTuML5m9rjjXrU9ZoeLyE +0oie7WxkJq3Tm3suFyTzoGWloKHIT35v2/zaPzM0sK00cybyALh6Ozeo1nbQ4/ce4si OKuCzLZGHGg13ntHRU6AxnO2kfj5IHy3Ys9eVf1x+Ts2IobIB5/c1WZ7T5GY3VoxHLPZ JIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7uUo7pUP+1aUX/brnKj/IbTpryN21ZjrOwScTYJXUvA=; b=KPwHHcn3bZXFhXyfIeOPks1Dwspn3EzBd1BnZBv4qHxBG/TGZWIkT+b/eGDc9yqvLE q7En/xPy2+Yf1jbX/k3tovrqu0xaioKFFqEN/s6lHT1Ge6vyC3Tqqf9ta+rSDTfkD+zE tkkzQp6HVOANC8nxq3N1Ms0C6NQl4PXOW1dtvWurMQgd13jSVAUnrDxw4mPxOi0WtU6X lXRLLPzuwxc1bEMGPfK6NMREv+8Wj0TF2m6l9w0Yy11LWTuapbVDOJTa50eu2LTm33Cs fLn7njJmX0WWpXB4I9a/BItZ60bT8vXcldAUknl4nwoKof2WJ3zPPO/96qovxGSGOiAs ZuHg== X-Gm-Message-State: AG10YOTLkHuZj/yL/mYaXhTgAEHK/iAfdMQXvOUvJpurYzKS+a0/7eqROJ00E15Em/rkGAXvpW6RxxqLDj5Dkw== MIME-Version: 1.0 X-Received: by 10.31.137.11 with SMTP id l11mr10365835vkd.98.1454222770531; Sat, 30 Jan 2016 22:46:10 -0800 (PST) Received: by 10.31.56.142 with HTTP; Sat, 30 Jan 2016 22:46:10 -0800 (PST) In-Reply-To: <20160131064018.GZ46096@home.opsec.eu> References: <20160131064018.GZ46096@home.opsec.eu> Date: Sat, 30 Jan 2016 22:46:10 -0800 Message-ID: Subject: Re: New port assistance for mlr From: jungle Boogie To: Kurt Jaeger Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 06:46:11 -0000 Hi Kurt, On 30 January 2016 at 22:40, Kurt Jaeger wrote: >> My question regards how I get my Makefile to show what's actually >> needed to build the package. This is what I do to build from src: >> cd miller/c >> make -f Makefile.no-autoconfig CC=3Dclang > > I suggest to use the configure.ac infrastrukture that is > provided by miller. This is easier most of the time. Most of the time, that's likely true... > >> My current Makefile: >> PORTNAME=3D miller >> PORTVERSION=3D 3.3.2 >> DISTVERSIONPREFIX=3D v >> CATEGORIES=3D textproc >> >> MAINTAINER=3D jungleboogie0+mlr@gmail.com >> COMMENT=3D Like sed, awk, cut, join and sort for name-indexed >> data such as CSV >> >> >> LICENSE_FILE=3D ${PORTNAME}-${PORTVERSION}/LICENSE.txt >> >> USE_GITHUB=3D yes >> GH_ACCOUNT=3D johnkerl > > Add: > > USES=3D autoreconf > GNU_CONFIGURE=3D yes > > and remove > > WORKSRC=3D ${PORTNAME}-${PORTVERSION} > WRKSRC_SUBDIR=3D c > >> >> WORKSRC=3D ${PORTNAME}-${PORTVERSION} >> WRKSRC_SUBDIR=3D c >> >> .include > > Please note that after that change it almost compiles, but there > are issues. > > libtool: link: cc -g -pg -Wall -std=3Dgnu99 -O2 -pipe -fstack-protector -= fno-strict-aliasing -fstack-protector -o mlrp mlrp-mlrmain.o cli/.libs/lib= cli.a containers/.libs/libcontainers.a stream/.libs/libstream.a input/.libs= /libinput.a mapping/.libs/libmapping.a output/.libs/liboutput.a lib/.libs/l= ibmlr.a dsls/.libs/libfdsl.a dsls/.libs/libpdsl.a -lm > /usr/bin/ld: undefined reference to symbol `_end' (try adding -lc) > //lib/libc.so.7: could not read symbols: Bad value > cc: error: linker command failed with exit code 1 (use -v to see invocati= on) > I believe this is because you're using clang and mlr is expecting gcc. I'd rather this compile this with clang as that's the default in freeBSD for a few years now. > -- > pi@opsec.eu +49 171 3101372 4 years to= go ! --=20 ------- inum: 883510009027723 sip: jungleboogie@sip2sip.info xmpp: jungle-boogie@jit.si