From owner-freebsd-ports@freebsd.org Mon Oct 16 10:16:18 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 9981EE355D8 for ; Mon, 16 Oct 2017 10:16:18 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (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 59F9075C00; Mon, 16 Oct 2017 10:16:18 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x233.google.com with SMTP id 134so11301403ioo.0; Mon, 16 Oct 2017 03:16:18 -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=wQlA9EYrF6cGxIUn1MlVNQRyoOlSeKxlO/yyNtT9FoU=; b=OEEBRXNlxbNNTQ/ZAaKB+LK4ZC7GHsMq01vaJj3vNruRyK+U8/0U/np94mzvtE3eDw +udQi81e4iUPYUwB/JbFDhHzXp+mhB0xJU8L2ifWtGrQZQADhezHjGTW+XrK8dWvVkj6 W6YXC1kcCh1xsCDb4DnN/mFLQsNjKhCCM5tSIkLtqV51HqY+UhYKbE6DpuhlFYGwCd+s wIE1yv/T9E4MHCeGYP2+whKkCl+u8hdfU/g4hRlinLgY/GqoogR1D47Of+5fXygD+BEw Tf10qCtxPGCRbMAqU+nLkKbeq6kt29ms8TT5qTLChzNrNaA+u7LUsXf62A87ym8hnik4 kY8g== 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=wQlA9EYrF6cGxIUn1MlVNQRyoOlSeKxlO/yyNtT9FoU=; b=J+ZOey4ow2AbhvKRCDvSkO3Ft1vqoREO5upauc+WtrhXcXDdjw6fHgbM3+XqRxo2+r Sxho/BXnLFa39lKHqPojo/X7emV8GntguvsN9lItoYRw4/aDd37wB0zUkZbupnR5EHNT TNNCfrnFYbFCm7YLypRf/Kc4m3XR2jdz/6HuucwACOLsNCylWpcyLWNsglLYFrN278HX YNw8FY/CzAjNkgwkh9oTEjk5HawbUBywaZS7nE1F/WawM47VxQQl1Cageob6ohPuzWzu rzpnTcGq47gRpnxaaS65MkTKT4tsVLdVJkXAj7MY+X/8v7MG5bQLb1tejqtyI/jlBrd4 MeHw== X-Gm-Message-State: AMCzsaUZjXcjZ2/ytXG1AQpBOKSkssP62rhFdae803gvutXcGdbDLsP1 vChBMrI0OI4PIFJC6rpR63az3Xwumu1TJKX2ZoEG1A== X-Google-Smtp-Source: ABhQp+RZVC6Rv2erTB8mx21zk0JkIVsSSz3zgAdsqzQfC/YWcLkhMnnzjGttmBRIr2UZ5fGd57TA3mJD2bjt9HAvi6g= X-Received: by 10.107.128.202 with SMTP id k71mr11333478ioi.184.1508148977322; Mon, 16 Oct 2017 03:16:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Mon, 16 Oct 2017 03:16:16 -0700 (PDT) In-Reply-To: References: <20171016080724.4byyskmlbeloxhmt@ivaldir.net> <20171016085009.exrw2xz4mpfp5s7h@ivaldir.net> <20171016090901.4kx5xrvyyvpemli5@ivaldir.net> From: blubee blubeeme Date: Mon, 16 Oct 2017 18:16:16 +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 10:16:18 -0000 I had an idea that maybe the port was failing because of Clang compiler, so I looked through the porters handbook and found USE_GCC this prompted me to install gcc 6.2 which i think is a little overkill plus it also installed a few other packages as well. The build went through and failed at this step trying to install how can I control which version of gcc to use? I think this project should build fine with gcc 4.8 install -m 0644 ./iconv.3 /usr/ports/converters/libiconv/work/stage/usr/local/man/man3/iconv.3 install -m 0644 ./iconv_close.3 /usr/ports/converters/libiconv/work/stage/usr/local/man/man3/iconv_close.3 install -m 0644 ./iconv_open.3 /usr/ports/converters/libiconv/work/stage/usr/local/man/man3/iconv_open.3 install -m 0644 ./iconv_open_into.3 /usr/ports/converters/libiconv/work/stage/usr/local/man/man3/iconv_open_into.3 install -m 0644 ./iconvctl.3 /usr/ports/converters/libiconv/work/stage/usr/local/man/man3/iconvctl.3 if [ ! -d /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv ] ; then /bin/sh ../build-aux/mkinstalldirs /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv ; fi mkdir /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv builddir="`pwd`"; cd . && for f in *.html ; do (cd "$builddir"; echo install -m 0644 ./$f /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/$f ; install -m 0644 ./$f /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/$f) ; done install -m 0644 ./iconv.1.html /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/iconv.1.html install -m 0644 ./iconv.3.html /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/iconv.3.html install -m 0644 ./iconv_close.3.html /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/iconv_close.3.html install -m 0644 ./iconv_open.3.html /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/iconv_open.3.html install -m 0644 ./iconv_open_into.3.html /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/iconv_open_into.3.html install -m 0644 ./iconvctl.3.html /usr/ports/converters/libiconv/work/stage/usr/local/share/doc/libiconv/iconvctl.3.html ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Warning: 'lib/libcharset.so.1.0.0' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'lib/libiconv.so.2.5.1' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} ===> Installing for libiconv-1.14_11 ===> Checking if libiconv already installed ===> An older version of libiconv is already installed (libiconv-1.14_10) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of libiconv without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop. make[4]: stopped in /usr/ports/converters/libiconv *** Error code 1 On Mon, Oct 16, 2017 at 5:50 PM, blubee blubeeme wrote: > @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 >> > >