From owner-freebsd-ports@freebsd.org Mon Oct 16 09:50:30 2017 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 5579DE34E21 for ; Mon, 16 Oct 2017 09:50:30 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A6337518C; Mon, 16 Oct 2017 09:50:30 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x22f.google.com with SMTP id 97so15441994iok.7; Mon, 16 Oct 2017 02:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=McjsAU+E+oBF064fnqpYd0HRxZOOGRtMFuL/jR7VfZo=; b=MjPTqFuy6XbAEKYkKb9YFm0sxNltI4xQIlNEOHCuJKEeKQrZ+GDf79hB6Wgds+nmun 9wv8ltTvYMObikobvo56qYv+Ku/M/5Gzn5708WRe7831jH2ZXUg6hJyrmBiP/7J3lLMm aqXvCj6x1CgrJlTBTrFy96KcwBG1C0x9UkQqZ7coy2tu9wPoh9bvn7RPeQ9arSavEM1U zb7pitJzD52+v1454SBAAYfJT49tIdoMjVJKVlLBRMRPeYC92APhQ+keIcRuLLMtANW9 +6dgmkVeG5wLEtqS/moUcciAfd19NHKC91NtFw8Q7om0Q54DX49O11FRSMZ5pTuYaCFm xY5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=McjsAU+E+oBF064fnqpYd0HRxZOOGRtMFuL/jR7VfZo=; b=b2BUCX4D4UC1kyGRj34bRkTxIV0yiAs9WEEv6AenHsBAbE95Pis30nDOtqFRvmhujW 6uHGPS6Xk2BX7kQ658vfctq2TkXBhZal3n9t/ITrmKc2fEgmyE/wIJjTKG0j4c7Dam34 8sVEY6B/VenGBCcnpcbF2DuJXZXHumfkKO1SRAluEGrb833EvnHaIMvk0D/5kZItYebb kP/fF0Tg8kJrotArE0VBXiVmm6nX6qcnWXMoOQ52z1NhATaCEdJobThSmLUdZDT/BXj3 c/EjBh4DnzSI5K5oRHLRh+/b4FqtAb4qgpwFRECqdpmUNeFZjNE0ca/vHpt+O11iCrEb JsbQ== X-Gm-Message-State: AMCzsaUulfU1nzzKUarj1+fgMro2FqXpHHgyeVVzVNWuvFtEngchHYS5 bOecjguGVyw0PpLWByjsVDssOPA6si3q/RQPM4M8SQ== X-Google-Smtp-Source: AOwi7QAx6aDXKWqSlN1MSywpEHsHkhU8QuSYyG630JSE16v5xBcRYGYRLIPx12C7A3euhcS+AbHv+0ivNfoopWzPT9A= X-Received: by 10.107.135.25 with SMTP id j25mr11287798iod.213.1508147428934; Mon, 16 Oct 2017 02:50:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Mon, 16 Oct 2017 02:50:28 -0700 (PDT) In-Reply-To: <20171016090901.4kx5xrvyyvpemli5@ivaldir.net> References: <20171016080724.4byyskmlbeloxhmt@ivaldir.net> <20171016085009.exrw2xz4mpfp5s7h@ivaldir.net> <20171016090901.4kx5xrvyyvpemli5@ivaldir.net> From: blubee blubeeme Date: Mon, 16 Oct 2017 17:50:28 +0800 Message-ID: Subject: Re: gnu ltdl and FreeBSD To: Baptiste Daroussin Cc: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2017 09:50:30 -0000 @Baptiste adding localbase to the USES macros made it past the previous errors. The compilation fails with this error: gmake[4]: Entering directory '/usr/ports/graphics/utsushi/work/utsushi-c590592/lib' depbase=`echo connexion.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I.. -pthread -I/usr/local/include -DPKGLIBEXECDIR="\"/usr/local/libexec/utsushi\"" -DPKGLIBDIR="\"/usr/local/lib/utsushi\"" -DPKGDATADIR="\"/usr/local/share/utsushi\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -DPKGSYSCONFDIR="\"/usr/local/etc/utsushi\"" -DPKGCONFFILE="\"utsushi.conf\"" -DCOMBOCONFFILE="\"combo.conf\"" -isystem /usr/local/include -I/usr/local/include -I/usr/local/include -Wall -Werror -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MT connexion.lo -MD -MP -MF $depbase.Tpo -c -o connexion.lo connexion.cpp &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: c++ -DHAVE_CONFIG_H -I.. -pthread -I/usr/local/include -DPKGLIBEXECDIR=\"/usr/local/libexec/utsushi\" -DPKGLIBDIR=\"/usr/local/lib/utsushi\" -DPKGDATADIR=\"/usr/local/share/utsushi\" -DLOCALEDIR=\"/usr/local/share/locale\" -DPKGSYSCONFDIR=\"/usr/local/etc/utsushi\" -DPKGCONFFILE=\"utsushi.conf\" -DCOMBOCONFFILE=\"combo.conf\" -isystem /usr/local/include -I/usr/local/include -I/usr/local/include -Wall -Werror -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MT connexion.lo -MD -MP -MF .deps/connexion.Tpo -c connexion.cpp -fPIC -DPIC -o .libs/connexion.o In file included from connexion.cpp:44: ../utsushi/log.hpp:155:36: error: instantiation of variable 'utsushi::log::basic_logger >::os_' required here, but no definition is available [-Werror,-Wundefined-var-template] basic_logger::os_ << *this; ^ ../utsushi/log.hpp:265:23: note: in instantiation of member function 'utsushi::log::basic_message, std::__1::allocator >::~basic_message' requested here expand_named_ctors (fatal, FATAL); ^ ../utsushi/log.hpp:49:47: note: forward declaration of template entity is here static std::basic_ostream& os_; ^ 1 error generated. looking through the config.log files I see many similar errors such as: /usr/bin/ld: cannot find -lusb-1.0 cc: error: linker command failed with exit code 1 (use -v to see invocation) configure:24532: $? = 1 configure:15640: result: no configure:15644: checking for shl_load in -ldld configure:15669: cc -o conftest -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -I/usr/local/include -fstack-protector -L/usr/local/lib conftest.c -ldld >&5 /usr/bin/ld: cannot find -ldld configure:19867: cc -o conftest -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -I/usr/local/include -fstack-protector -L/usr/local/lib conftest.c -ldld >&5 /usr/bin/ld: cannot find -ldld cc: error: linker command failed with exit code 1 (use -v to see invocation) are those the reasons for the compilation error up above? On Mon, Oct 16, 2017 at 5:09 PM, Baptiste Daroussin wrote: > On Mon, Oct 16, 2017 at 08:58:32AM +0000, blubee blubeeme wrote: > > I've tried passing CONFIGURE_ARGS or removing it, both gives the same > error > > below. > > LIB_DEPENDS= libltdl.so:devel/libltdl > > GNU_CONFIGURE= yes > > CONFIGURE_ARGS= --enable-ltdl-install > > USES= autoreconf gmake libtool > > > > the config.log file is there and it's pretty long as well I am looking > > through it but I am not sure what exactly to look for. > > > > Here's a pastebin with that config.log file: > https://pastebin.com/NjkgBTeM > > configure:20354: cc -o conftest -O2 -pipe -fstack-protector > -fno-strict-aliasing -I/usr/local/include -fstack-protector conftest.c > -lltdl > >&5 > /usr/bin/ld: cannot find -lltdl > > > this is your failure. > > Try adding USES=localbase and if it fails adding USES=localbase:ldflags > > Bapt >