From owner-freebsd-ports@freebsd.org Sun Jan 31 06:40:22 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 163CCA736D3 for ; Sun, 31 Jan 2016 06:40:22 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CBB5810F7 for ; Sun, 31 Jan 2016 06:40:21 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aPlgI-000OXp-Dl; Sun, 31 Jan 2016 07:40:18 +0100 Date: Sun, 31 Jan 2016 07:40:18 +0100 From: Kurt Jaeger To: jungle Boogie Cc: freebsd-ports@freebsd.org Subject: Re: New port assistance for mlr Message-ID: <20160131064018.GZ46096@home.opsec.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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:40:22 -0000 > 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=clang I suggest to use the configure.ac infrastrukture that is provided by miller. This is easier most of the time. > My current Makefile: > PORTNAME= miller > PORTVERSION= 3.3.2 > DISTVERSIONPREFIX= v > CATEGORIES= textproc > > MAINTAINER= jungleboogie0+mlr@gmail.com > COMMENT= Like sed, awk, cut, join and sort for name-indexed > data such as CSV > > > LICENSE_FILE= ${PORTNAME}-${PORTVERSION}/LICENSE.txt > > USE_GITHUB= yes > GH_ACCOUNT= johnkerl Add: USES= autoreconf GNU_CONFIGURE= yes and remove WORKSRC= ${PORTNAME}-${PORTVERSION} WRKSRC_SUBDIR= c > > WORKSRC= ${PORTNAME}-${PORTVERSION} > WRKSRC_SUBDIR= c > > .include Please note that after that change it almost compiles, but there are issues. libtool: link: cc -g -pg -Wall -std=gnu99 -O2 -pipe -fstack-protector -fno-strict-aliasing -fstack-protector -o mlrp mlrp-mlrmain.o cli/.libs/libcli.a containers/.libs/libcontainers.a stream/.libs/libstream.a input/.libs/libinput.a mapping/.libs/libmapping.a output/.libs/liboutput.a lib/.libs/libmlr.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 invocation) -- pi@opsec.eu +49 171 3101372 4 years to go !