openssl/openssl

unable to build openssl 3.0.18 using embarcadero c++ builder

オープン

#29,722 opened on 2026/01/22

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C (11,262 件のフォーク)batch import
help wantedissue: bug report

Repository metrics

Stars
 (30,157 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Hi, the issue is consistent using c++ builder 10.3.2 rio and c++ builder 11.3 Patch 1(same unit tests fail). Installled CMake 3.31.10, perl 5.42 (strawberry), ninja 1.12.0 and followed instructions:

copied c:\Program Files (x86)\Embarcadero\Studio\22.0\cmake\Modules\Platform\Windows-Embarcadero.cmake to c:\Program Files\CMake\share\cmake-3.31\Modules\Platform\ and to c:\StrawberryPerl\c\share\cmake-3.29\Modules\Platform\ for c++ builder 11 (for c++ builder 10.3.2 copied from c:\Program Files (x86)\Embarcadero\Studio\20.0\cmake) Open the RAD Studio Command Prompt (rsvars.bat) cd .....\openssl-3.0.18 perl Configure BC-32 --prefix=%CD%` make -N make -N test

Then I get errors: ...

04-test_params_conversion.t ........
        # INFO:
        # Reading ..\..\test\recipes\04-test_params_conversion_data\native_types.txt
        # INFO:
        # Line 336: extra characters at end 'inf' for double
        # INFO:
        # Completed 0 tests with 0 errors and 0 skipped
        # OPENSSL_TEST_RAND_ORDER=1769110144
        not ok 1 - iteration 1
# ------------------------------------------------------------------------------
    # OPENSSL_TEST_RAND_ORDER=1769110144
    not ok 1 - run_param_file_tests
# ------------------------------------------------------------------------------
C:\StrawberryPerl\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\test\params_conversion_test.exe ..\..\test\recipes\04-test_params_conversion_data\native_types.txt => 1
not ok 1 - running params_conversion_test native_types.txt
04-test_params_conversion.t ........ 1/? ---------------------------------------
#   Failed test 'running params_conversion_test native_types.txt'
#   at test\recipes\04-test_params_conversion.t line 21.
04-test_params_conversion.t ........ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests

...

> 80-test_cmsapi.t ...................
>         # ERROR: (ptr) 'cms = d2i_CMS_bio(bio, NULL) != NULL' failed @ test\cmsapitest.c:335
>         # 0x0
>         # 889F0000:error:0680008E:asn1 encoding routines:asn1_d2i_read_bio:not enough data:crypto\asn1\a_d2i_fp.c:219:
>         # OPENSSL_TEST_RAND_ORDER=1769111364
>         not ok 1 - iteration 1
> # ------------------------------------------------------------------------------
>         # ERROR: (ptr) 'cms = d2i_CMS_ContentInfo(NULL, &tmp, buf_len) != NULL' failed @ test\cmsapitest.c:342
>         # 0x0
>         # 889F0000:error:0680009B:asn1 encoding routines:ASN1_get_object:too long:crypto\asn1\asn1_lib.c:95:
>         # 889F0000:error:06800066:asn1 encoding routines:asn1_check_tlen:bad object header:crypto\asn1\tasn_dec.c:1178:
>         # 889F0000:error:0688010A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto\asn1\tasn_dec.c:349:Type=CMS_ContentInfo
>         # OPENSSL_TEST_RAND_ORDER=1769111364
>         not ok 2 - iteration 2
> # ------------------------------------------------------------------------------
>     # OPENSSL_TEST_RAND_ORDER=1769111364
>     not ok 6 - test_d2i_CMS_decode
> # ------------------------------------------------------------------------------
> C:\StrawberryPerl\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\test\cmsapitest.exe ..\..\test\certs\servercert.pem ..\..\test\certs\serverkey.pem ..\..\test\recipes\80-test_cmsapi_data\encryptedData.der => 1
> not ok 1 - running cmsapitest
> 80-test_cmsapi.t ................... 1/? ---------------------------------------
> #   Failed test 'running cmsapitest'
> #   at test\recipes\80-test_cmsapi.t line 19.
> 80-test_cmsapi.t ................... Dubious, test returned 1 (wstat 256, 0x100)
>

...

> 90-test_asn1_time.t ................
>         # ERROR: (int) 'ASN1_TIME_cmp_time_t(&atime, td->t) == 0' failed @ test\asn1_time_test.c:130
>         # [-1] compared to [0]
>         # INFO:
>         # ASN1_TIME_cmp_time_t(19011213204552Z vs -2147483648) compare failed
>         # ERROR: (int) 'ptime->type == td->expected_type' failed @ test\asn1_time_test.c:170
>         # [23] compared to [24]
>         # INFO:
>         # ASN1_TIME_set(-2147483648) unexpected type
>         # INFO:
>         # ASN1_TIME_set() = 380119031408Z
>         # ERROR:
>         # atime=19011213204552Z
>         #
>         # OPENSSL_TEST_RAND_ORDER=1769111495
>         not ok 47 - iteration 1
> # ------------------------------------------------------------------------------
>         # ERROR: (int) 'ASN1_TIME_cmp_time_t(&atime, td->t) == 0' failed @ test\asn1_time_test.c:130
>         # [-1] compared to [0]
>         # INFO:
>         # ASN1_TIME_cmp_time_t(691006121456Z vs -7472704) compare failed
>         # ERROR: (int) 'ptime->type == td->expected_type' failed @ test\asn1_time_test.c:170
>         # [24] compared to [23]
>         # INFO:
>         # ASN1_TIME_set(-7472704) unexpected type
>         # INFO:
>         # ASN1_TIME_set() = 21051111184312Z
>         # ERROR: (int) 'ASN1_TIME_cmp_time_t(ptime, td->t) == 0' failed @ test\asn1_time_test.c:244
>         # [-1] compared to [0]
>         # INFO:
>         # ASN1_TIME_to_generalizedtime(691006121456Z->19691006121456Z) bad result
>         # ERROR:
>         # atime=691006121456Z
>         #
>         # OPENSSL_TEST_RAND_ORDER=1769111495
>         not ok 48 - iteration 2
> # ------------------------------------------------------------------------------
>         # ERROR: (int) 'ASN1_TIME_cmp_time_t(&atime, td->t) == 0' failed @ test\asn1_time_test.c:130
>         # [-1] compared to [0]
>         # INFO:
>         # ASN1_TIME_cmp_time_t(19691006121456Z vs -7472704) compare failed
>         # ERROR: (int) 'ptime->type == td->expected_type' failed @ test\asn1_time_test.c:170
>         # [24] compared to [23]
>         # INFO:
>         # ASN1_TIME_set(-7472704) unexpected type
>         # INFO:
>         # ASN1_TIME_set() = 21051111184312Z
>         # ERROR:
>         # atime=19691006121456Z
>         #
>         # OPENSSL_TEST_RAND_ORDER=1769111495
>         not ok 49 - iteration 3
> # ------------------------------------------------------------------------------
>     # OPENSSL_TEST_RAND_ORDER=1769111495
>     not ok 2 - test_table_neg
> # ------------------------------------------------------------------------------
> C:\StrawberryPerl\perl\bin\perl.exe ..\..\util\wrap.pl ..\..\test\asn1_time_test.exe => 1
> not ok 1 - running asn1_time_test
> 90-test_asn1_time.t ................ 1/? ---------------------------------------
> #   Failed test 'running asn1_time_test'
> #   at C:\Users\alain.bourgeois\tst\openssl-3.0.18\util\perl/OpenSSL/Test/Simple.pm line 77.
> 90-test_asn1_time.t ................ Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/1 subtests
>

...

Test Summary Report
-------------------
04-test_params_conversion.t      (Wstat: 256 (exited 1) Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
80-test_cmsapi.t                 (Wstat: 256 (exited 1) Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
90-test_asn1_time.t              (Wstat: 256 (exited 1) Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=257, Tests=3207, 1602 wallclock secs ( 0.50 usr +  0.12 sys =  0.62 CPU)
Result: FAIL

** error 1 ** deleting run_tests

** error 1 ** deleting _tests

** error 1 ** deleting tests

コントリビューターガイド