Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jan 2016 22:46:10 -0800
From:      jungle Boogie <jungleboogie0@gmail.com>
To:        Kurt Jaeger <lists@opsec.eu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: New port assistance for mlr
Message-ID:  <CAKE2PDuxb4zdFNMVLB62s02z_eFgyyhwyoVeVfmOdi=bKATAYg@mail.gmail.com>
In-Reply-To: <20160131064018.GZ46096@home.opsec.eu>
References:  <CAKE2PDuYBpo_8cJnps8LR4aObi-OBABAKhTecyUYLdrmSgESVg@mail.gmail.com> <20160131064018.GZ46096@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Kurt,
On 30 January 2016 at 22:40, Kurt Jaeger <lists@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=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 <bsd.port.mk>
>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKE2PDuxb4zdFNMVLB62s02z_eFgyyhwyoVeVfmOdi=bKATAYg>