[oi-dev] pkg broken after recent pkg update?

Alexander Pyhalov alp at sfedu.ru
Fri Mar 13 14:45:25 UTC 2020


OK.
I have an idea what's going on - SFE GCC runtime lives in /usr/gnu/lib{/amd64}, and python embeds runpath to /usr/gnu/lib/amd64 due to some ncurses libraries. Now we have outdated GCC runtime, which loads before proper one from  /usr/gcc/6/lib/amd64 .
So, I see two possibilities here
1) SFE uses system compilers,
2) SFE uses some non-standard paths for its compiler runtimes.

As workaround, you can remove SFE runtime libraries out of /usr/gnu/lib... Unfortunately, this will likely make SFE packages unusable.

С уважением,
Александр Пыхалов,
программист отдела телекоммуникационной инфраструктуры
управления информационно-коммуникационной инфраструктуры ЮФУ


________________________________________
От: Alexander Pyhalov via oi-dev <oi-dev at openindiana.org>
Отправлено: 13 марта 2020 г. 17:26
Кому: Till Wegmüller; Predrag Zecevic - Unix Systems Administrator; oi-dev at openindiana.org
Копия: Alexander Pyhalov
Тема: Re: [oi-dev] pkg broken after recent pkg update?

Strange.
rapidjson-35 has dependency on system/library/g++-6-runtime at 6.5.0-2019.0.0.2.

Can you show versions of installed pkg, rapidjson-35 and g++-6-runtime?

С уважением,
Александр Пыхалов,
программист отдела телекоммуникационной инфраструктуры
управления информационно-коммуникационной инфраструктуры ЮФУ

________________________________________
От: Till Wegmüller <toasterson at gmail.com>
Отправлено: 13 марта 2020 г. 16:16
Кому: Predrag Zecevic - Unix Systems Administrator; oi-dev at openindiana.org
Тема: Re: [oi-dev] pkg broken after recent pkg update?

Ah it is a problem with your version of
/usr/gcc/6/lib/amd64/libstdc++.so.6 being to old.

Can you revert to the BE before the update and run the pkg commands again?

If your version of system/library/g++-6-runtime is below
6.5.0-2019.0.0.2 you must update that manually first before updating pkg.

That should solve your problem. I have
pkg list system/library/g++-6-runtime
NAME (PUBLISHER)                                  VERSION
     IFO
system/library/g++-6-runtime                      6.5.0-2019.0.0.2
     i--

and my pkg works.

Greetings
Till
On 13.03.20 14:00, Predrag Zecevic - Unix Systems Administrator wrote:
>
>
> On 03/13/20 13:55, Till Wegmüller wrote:
>> Hi Stephan
>>
>> Thanks for the notice.
>>
>> @Predrag looping you in as you have the same problem.
>>
>> Unfortunately you will need to revert to a previous BE to fix it.
>>
>> This seems to be a wird one. The missing symbol ist part of
>> /usr/gcc/6/lib/amd64/libstdc++.so.6 which is installed by
>> system/library/g++-6-runtime. The dependencies of the packages are
>> sound. Which version of library/python/rapidjson-35 have you installed?
>> Do you have packages from other publishers?
>>
>> I just updated a zone to test and have system/library/g++-6-runtime
>> properly installed. No problem with pkg for me.
>>
>> What is the output of the following commands on your systems?
>> ldd /usr/lib/python3.5/vendor-packages/rapidjson.cpython-35m.so
>>
>> nm /usr/gcc/6/lib/amd64/libstdc++.so.6 | grep __gxx_personality_v0
>>
>> pkg contents -m library/python/rapidjson-35 | grep
>> system/library/g++-6-runtime
>>
>> Greetings
>> Till
>>
>
> Thanks Till,
>
> here we go:
>
> :; ldd /usr/lib/python3.5/vendor-packages/rapidjson.cpython-35m.so
>         libpython3.5m.so.1.0 =>  /usr/lib/64/libpython3.5m.so.1.0
>         libstdc++.so.6 =>        /usr/gnu/lib/amd64/libstdc++.so.6
>         libstdc++.so.6 (GLIBCXX_3.4.21) =>       (version not found)
>         libstdc++.so.6 (CXXABI_1.3.9) =>         (version not found)
>         libm.so.2 =>     /lib/64/libm.so.2
>         libgcc_s.so.1 =>         /usr/gnu/lib/amd64/libgcc_s.so.1
>         libc.so.1 =>     /lib/64/libc.so.1
>         librt.so.1 =>    /lib/64/librt.so.1
>         libintl.so.1 =>  /lib/64/libintl.so.1
>         libdl.so.1 =>    /lib/64/libdl.so.1
>         libsendfile.so.1 =>      /lib/64/libsendfile.so.1
>
> :; nm /usr/gcc/6/lib/amd64/libstdc++.so.6 | grep __gxx_personality_v0
> 00000000000dadd0 T __gxx_personality_v0
> 00000000001c31e0 d DW.ref.__gxx_personality_v0
>
> :; pkg contents -m library/python/rapidjson-35 | grep
> system/library/g++-6-runtime
> Traceback (most recent call last):
>   File "/usr/bin/pkg", line 87, in <module>
>     import pkg.actions as actions
>   File "/usr/lib/python3.5/vendor-packages/pkg/actions/__init__.py",
> line 68, in <module>
>     globals(), locals(), [modname])
>   File "/usr/lib/python3.5/vendor-packages/pkg/actions/hardlink.py",
> line 33, in <module>
>     from . import generic, link
>   File "/usr/lib/python3.5/vendor-packages/pkg/actions/generic.py", line
> 49, in <module>
>     import pkg.variant as variant
>   File "/usr/lib/python3.5/vendor-packages/pkg/variant.py", line 36, in
> <module>
>     from pkg.misc import EmptyI
>   File "/usr/lib/python3.5/vendor-packages/pkg/misc.py", line 76, in
> <module>
>     import pkg.json as json
>   File "/usr/lib/python3.5/vendor-packages/pkg/json.py", line 24, in
> <module>
>     from rapidjson import loads, load, dumps, dump, JSONDecodeError
> ImportError: ld.so.1: python3.5: fatal: relocation error: file
> /usr/lib/python3.5/vendor-packages/rapidjson.cpython-35m.so: symbol
> __gxx_personality_v0: referenced symbol not found
>
>
> Regards.
>> On 13.03.20 10:13, Stephan Althaus wrote:
>>> Hi!
>>>
>>> I did a "pkg update" some minutes ago,
>>> now "pkg" is broken (??)
>>> ----------------
>>> $ sudo pkg refresh
>>> Traceback (most recent call last):
>>>    File "/usr/bin/pkg", line 87, in <module>
>>>      import pkg.actions as actions
>>>    File "/usr/lib/python3.5/vendor-packages/pkg/actions/__init__.py",
>>> line 68, in <module>
>>>      globals(), locals(), [modname])
>>>    File "/usr/lib/python3.5/vendor-packages/pkg/actions/group.py", line
>>> 33, in <module>
>>>      from . import generic
>>>    File "/usr/lib/python3.5/vendor-packages/pkg/actions/generic.py",
>>> line
>>> 49, in <module>
>>>      import pkg.variant as variant
>>>    File "/usr/lib/python3.5/vendor-packages/pkg/variant.py", line 36, in
>>> <module>
>>>      from pkg.misc import EmptyI
>>>    File "/usr/lib/python3.5/vendor-packages/pkg/misc.py", line 76, in
>>> <module>
>>>      import pkg.json as json
>>>    File "/usr/lib/python3.5/vendor-packages/pkg/json.py", line 24, in
>>> <module>
>>>      from rapidjson import loads, load, dumps, dump, JSONDecodeError
>>> ImportError: ld.so.1: python3.5: fatal: relocation error: file
>>> /usr/lib/python3.5/vendor-packages/rapidjson.cpython-35m.so: symbol
>>> __gxx_personality_v0: referenced symbol not found
>>> ----------------
>>>
>>> Did i miss something?
>>>
>>>
>>> Greetings,
>>> Stephan
>>>
>>>
>>> On 03/12/20 21:31, Alexander Pyhalov via oi-dev wrote:
>>>> Hi.
>>>>
>>>> I need reviewers and testers for
>>>> https://github.com/OpenIndiana/oi-userland/pull/5600. I personally
>>>> have no means to test it. Basic motivation for me was to switch it to
>>>> Python 3.5.
>>>> To build it you'll need 64-bit sane-backends:
>>>> https://github.com/OpenIndiana/oi-userland/commit/a793b0414355f0925b42c8ac67a4ef116698c3d7
>>>>
>>>>
>>>>
>>>> С уважением,
>>>> Александр Пыхалов,
>>>> программист отдела телекоммуникационной инфраструктуры
>>>> управления информационно-коммуникационной инфраструктуры ЮФУ
>>>>
>>>>
>>>> _______________________________________________
>>>> oi-dev mailing list
>>>> oi-dev at openindiana.org
>>>> https://openindiana.org/mailman/listinfo/oi-dev
>>>
>>>
>>>
>>> _______________________________________________
>>> oi-dev mailing list
>>> oi-dev at openindiana.org
>>> https://openindiana.org/mailman/listinfo/oi-dev
>

_______________________________________________
oi-dev mailing list
oi-dev at openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev
_______________________________________________
oi-dev mailing list
oi-dev at openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


More information about the oi-dev mailing list