Hi,

While testing the new pkg5 build on S10/sparc, the test fails:

# python setup.py test
running test
Segmentation Fault - core dumped
Segmentation Fault - core dumped
Traceback (most recent call last):
  File "run.py", line 60, in <module>
    cov = pkg5testenv.setup_environment("../../proto", covdir=covdir)
  File "./pkg5testenv.py", line 124, in setup_environment
    import pkg5unittest
  File "./pkg5unittest.py", line 66, in <module>
    import pkg.client.publisher as publisher
File "/opt/ws/gate/proto/root_sparc/usr/lib/python2.6/vendor-packages/pkg/client/publisher.py", line 57, in <module>
    import pkg.catalog
File "/opt/ws/gate/proto/root_sparc/usr/lib/python2.6/vendor-packages/pkg/catalog.py", line 40, in <module>
    import pkg.actions
File "/opt/ws/gate/proto/root_sparc/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.py", line 187, in <module>
    from _actions import _fromstr
ImportError: ld.so.1: python: fatal: relocation error: file /opt/ws/gate/proto/root_sparc/usr/lib/python2.6/vendor-packages/pkg/actions/_actions.so: symbol strndup: referenced symbol not found


_actions.so calls strndup(), which doesn't exist on S10. (Does S11 have it now?) I can add a strndup.c to fix this, but I'm not sure how to do it. The pkg gate source doesn't use makefiles for the modules directory, it looks like setup.py does the compiling & linking itself, so I'm not sure what gets added where. If anyone has a clue how to add this in & have it built, I'd greatly appreciate the help. Otherwise, I'll have to paste the function into _actions.c.

Thanks.

        -John


--
John Center
Villanova University

_______________________________________________
oi-dev mailing list
[email protected]
http://openindiana.org/mailman/listinfo/oi-dev

Reply via email to