From owner-freebsd-stable@freebsd.org Mon Apr 27 16:35:36 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7A25C2BF363 for ; Mon, 27 Apr 2020 16:35:36 +0000 (UTC) (envelope-from pietro.paolini@cognitivecredit.com) Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499r47460Fz4K0S for ; Mon, 27 Apr 2020 16:35:35 +0000 (UTC) (envelope-from pietro.paolini@cognitivecredit.com) Received: by mail-il1-x143.google.com with SMTP id u189so17313693ilc.4 for ; Mon, 27 Apr 2020 09:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cognitivecredit.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AcRnX9bmDhV2TvlPtvBRi0NJBQeWTv3yLVPIg0mtdWw=; b=PrPjRMogicf6lAl4aHmDV0/2+UCmzNXgBgolh76Qu11IE1fE54P8p1ovzLSR7Ouuhv sSB6JhXRtzLVeB4mUTuqTdDZQsE+Gy1jg23z9hJfJki6za9090MkWg32JhUz/zYUEBbM 3J1+pbyeFf4VL0tfB7q77Jz2iultYxOM9Criw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AcRnX9bmDhV2TvlPtvBRi0NJBQeWTv3yLVPIg0mtdWw=; b=XaACyZ4KNEk2Pkaj5fbCBhbbH9qUl9xC36bOTosvy7mOiQy6usVDFP8CrlUui5O+oD huAH2uZ1YoSsEdstMUu/vINfkypxsNfldJjI13TBD9CEjoH9UBKYCqDUKDlacHP45AR2 et1E3gdncNDrpj8XU88kDMPzGX8kbk+VWU8cjCSk5LK+mN9zyoLai2utFva0/Z2F/4kR Ve06NF+GiZb0k1m9henp99D/w7P9/+WbZ2DTHWHCVcaI3zBwlj3am5DKUBEDgeodbzol I4gi7RssrplKcATmwEBzrgu2Jh30evkQUYd1lUOOuJARyldlRvi/CKnx3+hR4R0tKcje d/cg== X-Gm-Message-State: AGi0PuYkji4xBQWzKaZchWtezfK0mH23Pde+4NCSuQGZd8kofPXNvJhs Dv42DZnn4NCMHXf7UhVQ2VICodbzzCk2g4KynnXe5pvq X-Google-Smtp-Source: APiQypKNkLL8wPpgF3P+Z5V9hfWtr8JMsebC6dDtW1zdffTwaRcZ/y6CXHyTIYJxlPUvUP66fi+Uqe8G5cFb+dPIb5o= X-Received: by 2002:a92:9e0b:: with SMTP id q11mr10055688ili.133.1588005334465; Mon, 27 Apr 2020 09:35:34 -0700 (PDT) MIME-Version: 1.0 References: <540dd25f-b57a-6d19-ccdc-82a1945b98e6@aceshardware.com> In-Reply-To: <540dd25f-b57a-6d19-ccdc-82a1945b98e6@aceshardware.com> From: Pietro Paolini Date: Mon, 27 Apr 2020 17:35:23 +0100 Message-ID: Subject: Re: CMake build To: Brian Neal Cc: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 499r47460Fz4K0S X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cognitivecredit.com header.s=google header.b=PrPjRMog; dmarc=pass (policy=none) header.from=cognitivecredit.com; spf=pass (mx1.freebsd.org: domain of pietro.paolini@cognitivecredit.com designates 2607:f8b0:4864:20::143 as permitted sender) smtp.mailfrom=pietro.paolini@cognitivecredit.com X-Spamd-Result: default: False [-3.13 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[cognitivecredit.com:s=google]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cognitivecredit.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[cognitivecredit.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.13)[ip: (0.16), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 16:35:36 -0000 Oks sorry for the nuisance - it is poppler. Apparently I fixed that using LD_LIBRARY_PATH - but I a bit surprised I needed to do anything as CMake should have the job - or at least so I thought. On Mon, Apr 27, 2020 at 5:13 PM Brian Neal wrote: > > You might need to pass the library path on the environment or specify it > somewhere in CMakeLists.txt. Something like: > > $ LIBDIR=/usr/local/lib cmake > > You'll have to check the exact syntax though. I have had similar issues > trying to link LZMA in Dovecot on FreeBSD and specifying the library > path resolves it. > > Cheers, > > -Brian > > On 4/27/2020 9:07 AM, Pietro Paolini wrote: > > Hi all, > > > > I am new to FreeBSD even though I have been working in Unix > > environments for a long while (mainly Linux). I am struggling to build > > a library locally, using cmake - the library builds fine on a Linux > > machine as long as dependencies are satisfied. However in my case > > CMake gets all the dependencies correctly - namely it finds all > > libraries it needs - but it fails lo link them: > > > > ld: error: unable to find library -lnss3 > > ld: error: unable to find library -lsmime3 > > ld: error: unable to find library -lssl3 > > ld: error: unable to find library -lnssutil3 > > ld: error: unable to find library -lplds4 > > ld: error: unable to find library -lplc4 > > ld: error: unable to find library -lnspr4 > > ld: error: unable to find library -lopenjp2 > > ld: error: unable to find library -lnss3 > > ld: error: unable to find library -lsmime3 > > ld: error: unable to find library -lssl3 > > ld: error: unable to find library -lnssutil3 > > ld: error: unable to find library -lplds4 > > ld: error: unable to find library -lplc4 > > ld: error: unable to find library -lnspr4 > > ld: error: unable to find library -lopenjp2 > > > > Not a single one is found - I must be doing a silly mistake somewhere > > - I am wondering, is there any need from my side to tell CMake I am > > about to use not GNU Make ? > > > > I did not specify anything in my case - I only typed 'cmake ..' > > > > Thanks, > > Pietro > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"