SoftHSM on AIX

Đang mở
#740 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cmake, cpp, linux
Lĩnh vực
backend, build-system

Hướng nghiên cứu

Start by comparing the AIX builds made with Make and CMake using GCC and Clang, then investigate the reported PKCS#11 failures: the Clang build reaches C_FindObjects before Java reports OutOfMemoryError, while the GCC build aborts with std::bad_cast. The issue also reports that the executables cannot be built because getopt is unavailable on AIX. Reproduce the failures on AIX/PowerPC and identify which platform compatibility issue is responsible; the issue names no source files or tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Has anyone successfully tried to compile and build SoftHSM for AIX/PowerPC?

My environment looks like -
bash-5.2# oslevel -s
7200-05-06-2320
bash-5.2# uname -srv
AIX 2 7

I am able to compile the code both with Make and CMake with GCC and Clang but having different issues with both compiled versions (I am using Temurin provided OpenJDK keytool command to test).

Clang compiled SoftHSM -

loadProviderByClass: sun.security.pkcs11.SunPKCS11
Exception in thread "main" java.lang.OutOfMemoryError
at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_FindObjects(Native Method)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.findObjects(P11KeyStore.java:2680)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.mapLabels(P11KeyStore.java:2293)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:769)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1010)
at java.base/sun.security.tools.keytool.Main.run(Main.java:421)
at java.base/sun.security.tools.keytool.Main.main(Main.java:414)

GCC compiled SoftHSM

terminate called after throwing an instance of 'std::bad_cast'
terminate called recursively
IOT/Abort trap (core dumped)

I only built PKCS#11 module for now, as I don't require other executables, but having issues with executables as it requires getopt which is not available on AIX!

Also, to make available the data, I copied the tokens directory from Windows as I couldn't build the executables on AIX due to getopt issues.

Any help would be greatly appreciated.

Ngôn ngữ chính
C++
Star
1.1k
Fork
434
Merge trung bình
12 ngày 14 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của softhsm/SoftHSMv2

Tất cả issue của softhsm/SoftHSMv2

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.