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 <gurenc...@gmail.com>
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<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 <b...@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
>>
>
>
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to