Opened 10 years ago

Closed 10 years ago

#41815 closed defect (fixed)

cryptlib @3.4.2 upgrade fails (can't find CRYPT_ALGO_LAST during compile)

Reported by: posita (Matt Bogosian) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: cryptlib

Description

-v gives the following:

...

In file included from test/loadkey.c:9:
./test/test.h:39:24: warning: '/*' within block comment [-Wcomment]
/* #define TEST_DEVICE /**/
                       ^
In file included from test/lowlvl.c:9:
./test/test.h:39:24: warning: '/*' within block comment [-Wcomment]
/* #define TEST_DEVICE /**/
                       ^
test/lowlvl.c:639:9: error: use of undeclared identifier 'CRYPT_ALGO_CAST'; did you mean 'CRYPT_ALGO_LAST'?
                        case CRYPT_ALGO_CAST:
                             ^~~~~~~~~~~~~~~
                             CRYPT_ALGO_LAST
[INSTALL_ROOT]/include/cryptlib.h:257:2: note: 'CRYPT_ALGO_LAST' declared here
        CRYPT_ALGO_LAST,                                /* Last possible crypt algo value */
        ^

...

In file included from test/lowlvl.c:9:
./test/test.h:39:24: warning: '/*' within block comment [-Wcomment]
/* #define TEST_DEVICE /**/
                       ^
test/lowlvl.c:639:9: error: use of undeclared identifier 'CRYPT_ALGO_CAST'; did you mean 'CRYPT_ALGO_LAST'?
                        case CRYPT_ALGO_CAST:
                             ^~~~~~~~~~~~~~~
                             CRYPT_ALGO_LAST
[INSTALL_ROOT]/include/cryptlib.h:257:2: note: 'CRYPT_ALGO_LAST' declared here
        CRYPT_ALGO_LAST,                                /* Last possible crypt algo value */
        ^

Attachments (1)

main.log (653.1 KB) - added by posita (Matt Bogosian) 10 years ago.

Download all attachments as: .zip

Change History (9)

Changed 10 years ago by posita (Matt Bogosian)

Attachment: main.log added

comment:1 Changed 10 years ago by posita (Matt Bogosian)

Sorry...hit submit before filling out port field. It's: "cryptlib". Hopefully that apparent by the title. It's listed as "nomaintainer@…" in port info.

comment:2 Changed 10 years ago by mf2k (Frank Schima)

Port: cryptlib added

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

The four buildslaves built it fine, and so did I, so I'm guessing this is only an upgrade problem. Try:

sudo port clean cryptlib
sudo port -f deactivate cryptlib
sudo port upgrade cryptlib

comment:4 Changed 10 years ago by posita (Matt Bogosian)

Crap. I should have tried that already. I know better too. Upgrading fails. Building from scratch works. Feel free to close.

comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: cryptlib @3.4.2 build fails (can't find CRYPT_ALGO_LAST during compile)cryptlib @3.4.2 upgrade fails (can't find CRYPT_ALGO_LAST during compile)

No no, we need to fix that somehow. Thanks for verifying that was the problem.

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

I'll mark the build conflict for now (see r114752) and see if I can fix it in a better way later.

comment:7 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed in r114833. I had not seen this problem on my system because I use the patch from #40656 which makes this change globally.

Note: See TracTickets for help on using tickets.