From owner-freebsd-current@FreeBSD.ORG Wed Oct 2 13:42:18 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BFE38C93; Wed, 2 Oct 2013 13:42:18 +0000 (UTC) (envelope-from vsityz@gmail.com) Received: from mail-ea0-x22e.google.com (mail-ea0-x22e.google.com [IPv6:2a00:1450:4013:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2D1DE2C12; Wed, 2 Oct 2013 13:42:18 +0000 (UTC) Received: by mail-ea0-f174.google.com with SMTP id z15so406948ead.5 for ; Wed, 02 Oct 2013 06:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/iptpzk1CkZ3ruPMFX6kz4gSWZds8CHXUM6BHLDZCzk=; b=Clu2kNuXHtWnFByllvrhem0t2tw2a6w0zAYp0ZR1SqTE0Vuz5vKLANN0Qn0JP3faAY 82AA6JIcvJvL/nGj8B7JWgqTbTMRJyyhSgOdoQ48vbwCjke+SB5vp/BCtI7fr72xDiVo uX6YDTt012l8inIF+tbV3lomGxyg3rrZFkJ/kepPt3QMoA4OlxUMKEUCoFaYx/q2dGM4 53Y8P0Ge4BIBP972QlYgioeajo2uiXMqo0uej+3vn3h7xDir1P+4dMIKffJMglLRqo0L ij558MjrQ9t2AgPgbMbEWZ61ltwcsMM5anRj74/1vV6JeKIBILTIzRt6l5+stpICmUJ3 V87g== X-Received: by 10.14.246.11 with SMTP id p11mr3802704eer.9.1380721336467; Wed, 02 Oct 2013 06:42:16 -0700 (PDT) Received: from scorpion.kiev.ua ([93.180.240.140]) by mx.google.com with ESMTPSA id z12sm3986646eev.6.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Oct 2013 06:42:15 -0700 (PDT) Message-ID: <524C22B4.3030408@gmail.com> Date: Wed, 02 Oct 2013 16:42:12 +0300 From: Alexander Panyushkin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Steve Kargl Subject: Re: graphics/poppler-glib not build References: <5246E64C.3080204@gmail.com> <13ADF1E8-B97E-44E7-8605-B0A4013EDE69@FreeBSD.org> <5247111B.1070702@gmail.com> <0869A0C6-3FCB-4413-9FC6-BC5D3A85BDD5@freebsd.org> <5247255A.6@gmail.com> <20130928190255.GA93842@troutmask.apl.washington.edu> <52473000.7060309@gmail.com> <20130928203110.GA94316@troutmask.apl.washington.edu> <5249DAA6.4010108@gmail.com> In-Reply-To: <5249DAA6.4010108@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: David Chisnall , current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Oct 2013 13:42:18 -0000 The same error is describe here: http://stackoverflow.com/questions/18459894/clang-stdlib-libc-leads-to-undefined-reference How to fix this, if default build world with options WITHOUT_GCC and WITHOUT_GNUCXX? On 30.09.2013 23:10, Alexander Panyushkin wrote: > *make.conf* > .if ${.CURDIR:N*/ports/graphics/poppler*} == "" > CFLAGS+= -O2 -pipe > CPPFLAGS+= -D_FORTIFY_SOURCE=2 > USE_GCC=4.6 > .endif > > *portmaster poppler-glib* > CXXLD libpoppler-glib.la > c++: warning: argument unused during compilation: '-pthread' > c++: warning: argument unused during compilation: '-pthread' > c++: warning: argument unused during compilation: '-pthread' > c++: warning: argument unused during compilation: '-pthread' > GISCAN Poppler-0.18.gir > /usr/local/lib/libpoppler.so: undefined reference to > `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, > std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' > /usr/local/lib/libpoppler.so: undefined reference to > `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)' > /usr/local/lib/libpoppler.so: undefined reference to > `std::__throw_length_error(char const*)' > collect2: ld returned 1 exit status > linking of temporary binary failed: Command '['/bin/sh', > '/usr/ports/graphics/poppler-glib/work/gnome-libtool', '--mode=link', > '--tag=CC', '--silent', 'gcc46', '-std=gnu99', '-o', > '/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib/tmp-introspectJZ7H1B/Poppler-0.18', > '-export-dynamic', '-Wall', '-O2', '-march=athlon64-sse3', > '-mtune=athlon64-sse3', '-pipe', '-Wformat', '-Wformat-security', > '-O2', '-pipe', '-Wl,-rpath=/usr/local/lib/gcc46', > '-fno-strict-aliasing', '-L/usr/local/lib', '-pthread', > '-Wl,-rpath=/usr/local/lib/gcc46', > '/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib/tmp-introspectJZ7H1B/Poppler-0.18.o', > '-L.', 'libpoppler-glib.la', '-lgio-2.0', '-lgobject-2.0', > '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', > '-L/usr/local/lib', '-lglib-2.0', '-lintl']' returned non-zero exit > status 1 > > > > 28.09.2013 23:31, Steve Kargl пишет: >> On Sat, Sep 28, 2013 at 10:37:36PM +0300, Alexander Panyushkin wrote: >>> *make.conf* >>> # ### Build whith GCC 4.6 >>> # ======================== >>> .if ${.CURDIR:N*/ports/graphics/poppler-glib*} == "" >>> CFLAGS= -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -Wformat >>> -Wformat-security >> Should use +=. >> >>> CPPFLAGS+= -D_FORTIFY_SOURCE=2 >>> CXXFLAGS+=-rpath /usr/local/lib/gcc46 >>> USE_GCC=4.6 >> If you're doing the above, >> >>> CC=cc >>> CXX=c++ >>> CPP=cpp >> why are you doing this? >> >> ls /usr/local/bin/*46 >> /usr/local/bin/c++46* >> /usr/local/bin/cpp46* >> /usr/local/bin/g++46* >> /usr/local/bin/gcc46* >> /usr/local/bin/gcov46* >> >>> /usr/bin/ld: cannot find -lstdc++ >>> c++: error: linker command failed with exit code 1 (use -v to see >>> invocation) >> so ld is not being passed the compiler options? >> >