From owner-freebsd-office@FreeBSD.ORG Sun Aug 31 16:39:31 2014 Return-Path: Delivered-To: office@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D65BE6B4 for ; Sun, 31 Aug 2014 16:39:31 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EC1F1AE1 for ; Sun, 31 Aug 2014 16:39:31 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id n15so4752799lbi.2 for ; Sun, 31 Aug 2014 09:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=nJHdwE9uCQY+SNwCJYYBK3SNeA62PQman7tPNuYznV8=; b=pia3T3uARvwtVDE3bcAjsVYHxoGJVlkjP4bfNIRHpf1+OqpdVXGWCTDsvr4O2gZKuE 3wHFvXKXKfZ406BmeeAre4IXLOPxzd3abEETTKtRtWB4iVQLhnOAp6JFUe6r0htZ6U3U JnQHxnyRMXd2hWtL7hUv2eCpy/rgjKQYmUIp2g1VAZHzxnru+mvOcpc6tHNVZFoPsxI4 TMtOdt9XQifeRwA+apaswBliHiTKtJhJ/cGVasBsLA24hIVRYrkLkJmY5VX+NHhQEz8Z SNOpqMaFraWaLpi3DQekoPJIceLpCL5Ew3GdgA5KAg13hxcIFqEyAodl5str9XsUgdFH WoXg== X-Received: by 10.112.201.133 with SMTP id ka5mr22780604lbc.61.1409503169263; Sun, 31 Aug 2014 09:39:29 -0700 (PDT) Received: from [10.0.1.23] (broadband-5-228-253-184.nationalcablenetworks.ru. [5.228.253.184]) by mx.google.com with ESMTPSA id v20sm2065258laz.28.2014.08.31.09.39.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 Aug 2014 09:39:28 -0700 (PDT) Sender: Dmitry Sivachenko From: Dmitry Sivachenko Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Need some help with compiling boost-dependent program Message-Id: <9AB609D1-F643-4F77-B2F9-AD32F8988DFD@FreeBSD.org> Date: Sun, 31 Aug 2014 20:39:27 +0400 To: office@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2014 16:39:31 -0000 Hello Boost maintainers! I am trying to port mosesdecoder program (http://www.statmt.org/moses/) = to FreeBSD-10/stable. It uses Boost heavily and depends on other libraries which are built = using gcc-4.7. On some stage it fails to link with reasons unknown to me. I suspect this may be because Boost is built with clang, I build = mosesdecoder with clang and other libraries were built using gcc (4.7). = May be I am wrong. The error is the following: = moses/bin/clang-linux-3.4.1/release/debug-symbols-on/threading-multi/libmo= ses.so : undefined reference to = `randlm::Vocab::getWordID(std::__1::basic_string, std::__1::allocator > const&)' = moses/bin/clang-linux-3.4.1/release/debug-symbols-on/threading-multi/libmo= ses.so : undefined reference to = `lmContainer::CreateLanguageModel(std::__1::basic_strin g, std::__1::allocator >, float, = float)' = moses/bin/clang-linux-3.4.1/release/debug-symbols-on/threading-multi/libmo= ses.so : undefined reference to = `randlm::RandLM::initRandLM(std::__1::basic_string, std::__1::allocator > const&, int, = int)' clang++: error: linker command failed with exit code 1 (use -v to see = invocation ) though linking command includes -lRandLM explicitly. You can get tarball for unfinished port so you can easily reproduce this = here: http://people.freebsd.org/~demon/mosesdecoder.tar.gz Any help would be greatly appreciated. Build log is redirected to ${WRKSRC}/build.log to simplify analysis. Thanks in advance!