New port assistance for mlr
jungle Boogie
jungleboogie0 at gmail.com
Sun Jan 31 06:46:11 UTC 2016
Hi Kurt,
On 30 January 2016 at 22:40, Kurt Jaeger <lists at opsec.eu> 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=clang
>
> 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= miller
>> PORTVERSION= 3.3.2
>> DISTVERSIONPREFIX= v
>> CATEGORIES= textproc
>>
>> MAINTAINER= jungleboogie0+mlr at 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)
>
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 at opsec.eu +49 171 3101372 4 years to go !
--
-------
inum: 883510009027723
sip: jungleboogie at sip2sip.info
xmpp: jungle-boogie at jit.si
More information about the freebsd-ports
mailing list