On Thu, September 9, 2021 00:14, Omar Polo wrote:
>
> "Kirill Bychkov" <ki...@linklevel.net> writes:
>
>> [...]
>>> - graphics/mapnik
>>>     breaks because of python2.  Easy to fix, but then fails at
>>>     linking:
>>>
>>> ----------------8<----------------
>>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol typeinfo
>>> for
>>> boost::wrapexcept<boost::bad_function_call>; recompile with -fPIC
>>>>>> defined in src/expression_grammar.os
>>>>>> referenced by expression_grammar.cpp
>>>>>>               src/expression_grammar.os:(void
>>>>>> boost::throw_exception<boost::bad_function_call>(boost::bad_function_call
>>>>>> const&))
>>>
>>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol vtable
>>> for
>>> boost::exception_detail::clone_base; recompile with -fPIC
>>>>>> defined in src/expression_grammar.os
>>>>>> referenced by expression_grammar.cpp
>>>>>>               
>>>>>> src/expression_grammar.os:(boost::wrapexcept<boost::bad_function_call>::wrapexcept(boost::bad_function_call
>>>>>> const&))
>>>
>>> ...
>>> ---------------->8----------------
>>>
>>>     it shouldn't be hard to fix, I haven't really investigated it
>>>     because I was working on the other ports
>>>
>>>     Attaching wip diff
>>
>> Hi,
>> Adding -fPIC fixes linking:
>> -WARNING_CXXFLAGS="-I${X11BASE}/include/freetype2" \
>> +WARNING_CXXFLAGS="-I${X11BASE}/include/freetype2 -fPIC" \
>
> Yes, thanks for spotting it!  I went for a slightly different tweak
> (adding CUSTOM_CXXFLAGS) instead, but that' the trick :)
>
>
This one looks better.
About
-from __future__ import print_function # support python2
Is this removal needed for py3 support?
If so, should we drop ${MODPY_DEFAULT_VERSION_2} from ports Makefile?
Removing "env.SourceCode(".", None)" does not break scons-2.x as I've
noticed.


Reply via email to