Re: graphics/poppler-glib not build

From: Alexander Panyushkin <vsityz_at_gmail.com>
Date: Mon, 30 Sep 2013 23:10:14 +0300
*make.conf*
.if ${.CURDIR:N*/ports/graphics/poppler*} == ""
CFLAGS+= -O2 -pipe
CPPFLAGS+= -D_FORTIFY_SOURCE=2
USE_GCC=4.6
.endif

*portmaster  poppler-glib*
   CXXLD  libpoppler-glib.la
c++: warning: argument unused during compilation: '-pthread'
c++: warning: argument unused during compilation: '-pthread'
c++: warning: argument unused during compilation: '-pthread'
c++: warning: argument unused during compilation: '-pthread'
   GISCAN Poppler-0.18.gir
/usr/local/lib/libpoppler.so: undefined reference to 
`std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, 
std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/usr/local/lib/libpoppler.so: undefined reference to 
`std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
/usr/local/lib/libpoppler.so: undefined reference to 
`std::__throw_length_error(char const*)'
collect2: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', 
'/usr/ports/graphics/poppler-glib/work/gnome-libtool', '--mode=link', 
'--tag=CC', '--silent', 'gcc46', '-std=gnu99', '-o', 
'/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib/tmp-introspectJZ7H1B/Poppler-0.18', 
'-export-dynamic', '-Wall', '-O2', '-march=athlon64-sse3', 
'-mtune=athlon64-sse3', '-pipe', '-Wformat', '-Wformat-security', '-O2', 
'-pipe', '-Wl,-rpath=/usr/local/lib/gcc46', '-fno-strict-aliasing', 
'-L/usr/local/lib', '-pthread', '-Wl,-rpath=/usr/local/lib/gcc46', 
'/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib/tmp-introspectJZ7H1B/Poppler-0.18.o', 
'-L.', 'libpoppler-glib.la', '-lgio-2.0', '-lgobject-2.0', 
'-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-L/usr/local/lib', 
'-lglib-2.0', '-lintl']' returned non-zero exit status 1



28.09.2013 23:31, Steve Kargl пишет:
> On Sat, Sep 28, 2013 at 10:37:36PM +0300, Alexander Panyushkin wrote:
>> *make.conf*
>> # ### Build whith  GCC 4.6
>> # ========================
>> .if  ${.CURDIR:N*/ports/graphics/poppler-glib*} == ""
>> CFLAGS= -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -Wformat
>> -Wformat-security
> Should use +=.
>
>> CPPFLAGS+= -D_FORTIFY_SOURCE=2
>> CXXFLAGS+=-rpath /usr/local/lib/gcc46
>> USE_GCC=4.6
> If you're doing the above,
>
>> CC=cc
>> CXX=c++
>> CPP=cpp
> why are you doing this?
>
> ls /usr/local/bin/*46
> /usr/local/bin/c++46*
> /usr/local/bin/cpp46*
> /usr/local/bin/g++46*
> /usr/local/bin/gcc46*
> /usr/local/bin/gcov46*
>
>> /usr/bin/ld: cannot find -lstdc++
>> c++: error: linker command failed with exit code 1 (use -v to see
>> invocation)
> so ld is not being passed the compiler options?
>
Received on Mon Sep 30 2013 - 18:10:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC