From owner-freebsd-current@FreeBSD.ORG Mon Sep 30 20:10:21 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 6C1DECF3; Mon, 30 Sep 2013 20:10:21 +0000 (UTC) (envelope-from vsityz@gmail.com) Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BCB95217E; Mon, 30 Sep 2013 20:10:20 +0000 (UTC) Received: by mail-la0-f46.google.com with SMTP id eh20so4948256lab.33 for ; Mon, 30 Sep 2013 13:10:18 -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=jUGB+vkTaO5ixMaJZVavBuKe4QZn2Up4xm6pO6sBp/U=; b=uBJGtTdnMJBV0a5yPGzVixlx0ddlMEA+joCPQfh2WuL3By6dcjpWiqGpv+xiBOxPE+ vvm/IE40dONDNscD3BjEGirjqFje25myPyVUvLjNNzvSB3/gMu9I20owJpxdRqbD12IN IAciWRMdEjYXURDEUurRiPGlayH/zzFl7VY1ZK5aacZwRhTSLA5/r7wxWPTzctDs0MYf OaLlGrZ+QH1RU0ZOF9+3RoviGlz2T5ysZkFPPWs9iJdI7OtrauuVuO4gRYISHMzfBZpo YUH1CYpi0Dio5Zuy2H2NwLWfib+vxkk8QzZqGbhHVlAXnlQCB2wSh2nNpfhrT3RaHn6R lbyg== X-Received: by 10.112.14.102 with SMTP id o6mr23539520lbc.28.1380571818772; Mon, 30 Sep 2013 13:10:18 -0700 (PDT) Received: from scorpion.kiev.ua ([37.19.204.159]) by mx.google.com with ESMTPSA id ap7sm1772737lac.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Sep 2013 13:10:17 -0700 (PDT) Message-ID: <5249DAA6.4010108@gmail.com> Date: Mon, 30 Sep 2013 23:10:14 +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> In-Reply-To: <20130928203110.GA94316@troutmask.apl.washington.edu> 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: Mon, 30 Sep 2013 20:10:21 -0000 *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? >