Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2017 17:50:28 +0800
From:      blubee blubeeme <gurenchan@gmail.com>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: gnu ltdl and FreeBSD
Message-ID:  <CALM2mEm1==_h=U7rzHOo-qYh4KjmMkKO-HtHCP0aVoMWvSytFQ@mail.gmail.com>
In-Reply-To: <20171016090901.4kx5xrvyyvpemli5@ivaldir.net>
References:  <CALM2mE=Pdqrv_2k7KVTQruZ8cFkQpypvy6Qn5OYfcWR7cv5mJA@mail.gmail.com> <20171016080724.4byyskmlbeloxhmt@ivaldir.net> <CALM2mEme59C4yngg618527OgHa1Bbraw8RiM_e6Z%2B8Z05sYN=w@mail.gmail.com> <20171016085009.exrw2xz4mpfp5s7h@ivaldir.net> <CALM2mEmkO9%2B1dzQ_GK9YW7Rcc7rHFQd4wToF_hSU3nAc0NAgJQ@mail.gmail.com> <20171016090901.4kx5xrvyyvpemli5@ivaldir.net>

next in thread | previous in thread | raw e-mail | index | archive | help
@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<char, std::__1::char_traits<char> >::os_'
required here,
      but no definition is available [-Werror,-Wundefined-var-template]
      basic_logger<charT, traits>::os_ << *this;
                                   ^
../utsushi/log.hpp:265:23: note: in instantiation of member function
'utsushi::log::basic_message<char, std::__1::char_traits<char>,
      std::__1::allocator<char> >::~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<charT, traits>& 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 <bapt@freebsd.org>
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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEm1==_h=U7rzHOo-qYh4KjmMkKO-HtHCP0aVoMWvSytFQ>