FTBFS with CRYPTSETUP_OLD_API set #137

Closed
opened 2 weeks ago by Ray-V · 0 comments
Ray-V commented 2 weeks ago
Collaborator

I got this error building tdelibs

FAILED: tdecore/tdehw/CMakeFiles/tdehw-shared.dir/tdestoragedevice.cpp.o
/usr/bin/g++ -DHAVE_CONFIG_H -DWITH_CRYPTSETUP ....[snipped].... tdecore/tdehw/CMakeFiles/tdehw-shared.dir/tdestoragedevice.cpp.o -c ../tdecore/tdehw/tdestoragedevice.cpp
../tdecore/tdehw/tdestoragedevice.cpp:50:34: error: redefinition of ‘ACTIVE’
   50 |   #define CRYPT_SLOT_ACTIVE_LAST ACTIVE
      |                                  ^~~~~~
../tdecore/tdehw/tdestoragedevice.cpp:48:29: note: ‘ACTIVE’ previously defined here
   48 |   #define CRYPT_SLOT_ACTIVE ACTIVE
      |                             ^~~~~~

It seems from CMakeLists.txt that this is a fallback situation where CRYPTSETUP_OLD_API is set if HAVE_NEW_CRYPTSETUP isn't set, which I fixed by installing a missing dependency.

But otherwise, I would expect this alternative build to work with CRYPTSETUP_OLD_API set.

I got this error building tdelibs ``` FAILED: tdecore/tdehw/CMakeFiles/tdehw-shared.dir/tdestoragedevice.cpp.o /usr/bin/g++ -DHAVE_CONFIG_H -DWITH_CRYPTSETUP ....[snipped].... tdecore/tdehw/CMakeFiles/tdehw-shared.dir/tdestoragedevice.cpp.o -c ../tdecore/tdehw/tdestoragedevice.cpp ../tdecore/tdehw/tdestoragedevice.cpp:50:34: error: redefinition of ‘ACTIVE’    50 |   #define CRYPT_SLOT_ACTIVE_LAST ACTIVE       |                                  ^~~~~~ ../tdecore/tdehw/tdestoragedevice.cpp:48:29: note: ‘ACTIVE’ previously defined here    48 |   #define CRYPT_SLOT_ACTIVE ACTIVE       |                             ^~~~~~ ``` It seems from CMakeLists.txt that this is a fallback situation where CRYPTSETUP_OLD_API is set if HAVE_NEW_CRYPTSETUP isn't set, which I fixed by installing a missing dependency. But otherwise, I would expect this alternative build to work with CRYPTSETUP_OLD_API set.
SlavekB closed this issue 2 weeks ago
SlavekB added this to the R14.1.0 release milestone 2 weeks ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.