From owner-freebsd-ports@freebsd.org Sun Jan 31 10:48:14 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 AAEBDA747AA for ; Sun, 31 Jan 2016 10:48:14 +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 6CC90E0D for ; Sun, 31 Jan 2016 10:48:14 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aPpYD-000Om1-Ou; Sun, 31 Jan 2016 11:48:13 +0100 Date: Sun, 31 Jan 2016 11:48:13 +0100 From: Kurt Jaeger To: jungle Boogie Cc: freebsd-ports@freebsd.org Subject: Re: New port assistance for mlr Message-ID: <20160131104813.GA46096@home.opsec.eu> References: <20160131064018.GZ46096@home.opsec.eu> 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 10:48:14 -0000 Hi! > > 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. If I build with gcc: --- mlrp --- /usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end' //lib/libc.so.7: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status -- pi@opsec.eu +49 171 3101372 4 years to go !