Date: Sun, 31 Jan 2016 07:40:18 +0100 From: Kurt Jaeger <lists@opsec.eu> To: jungle Boogie <jungleboogie0@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: New port assistance for mlr Message-ID: <20160131064018.GZ46096@home.opsec.eu> In-Reply-To: <CAKE2PDuYBpo_8cJnps8LR4aObi-OBABAKhTecyUYLdrmSgESVg@mail.gmail.com> References: <CAKE2PDuYBpo_8cJnps8LR4aObi-OBABAKhTecyUYLdrmSgESVg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <bsd.port.mk> 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 !
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160131064018.GZ46096>