Skip to contentSkip to conversation

Fix compile error when using nss libs:

PATCH In review Marcus Sorensen 2 participants 3 messages Jul 22, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Fix compile error when using nss libs:

auth/Crypto.cc:218: error: expected primary-expression before ‘}’ token auth/Crypto.cc:218: error: expected ‘;’ before ‘}’ token

Perhaps something more is missing here but this gets things going... apparently not used much?
---
 src/auth/Crypto.cc |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
src/auth/Crypto.cc +0 -0
index 7251d09..ad256bb 100644
@@ -215,6 +215,7 @@ static void nss_aes_operation(CK_ATTRIBUTE_TYPE

op, const bufferptr& secret,
 err_slot:
  PK11_FreeSlot(slot);
 err:
+  ;
 }

 #else
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 5 lines · Marcus Sorensen

auth/Crypto.cc:218: error: expected primary-expression before ?}? token auth/Crypto.cc:218: error: expected ?;? before ?}? token

Perhaps something more is missing here but this gets things going... apparently not used much?

Looks right. Maybe only some compiler versions bork on that? We also usually build with crypto++ when we can (libnss sucks a several ways).

Can I add your signed-off-by?

Thanks-
sage

Quoted 25 lines

---
 src/auth/Crypto.cc |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
src/auth/Crypto.cc +0 -0
index 7251d09..ad256bb 100644
@@ -215,6 +215,7 @@ static void nss_aes_operation(CK_ATTRIBUTE_TYPE
 op, const bufferptr& secret,

 err_slot:
  PK11_FreeSlot(slot);
 err:
+  ;
 }

 #else
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Yeah, sorry. This was a CentOS 6 system, didn't seem to have any immediate provider of libcrypto++, so just skipped to nss. I figured that not many people are probably using the nss path, so I'm not sure if this is just untested or something wonky on the compiler... at any rate an extra semicolon shouldn't break others :-)

Quoted 33 lines · Sage Weil
Quoted 5 lines · Marcus Sorensen

auth/Crypto.cc:218: error: expected primary-expression before ?}? token auth/Crypto.cc:218: error: expected ?;? before ?}? token

Perhaps something more is missing here but this gets things going... apparently not used much?

Looks right.  Maybe only some compiler versions bork on that?  We also usually build with crypto++ when we can (libnss sucks a several ways).

Can I add your signed-off-by?

Thanks-
sage

Quoted 16 lines

---
 src/auth/Crypto.cc |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
src/auth/Crypto.cc +0 -0
index 7251d09..ad256bb 100644
@@ -215,6 +215,7 @@ static void nss_aes_operation(CK_ATTRIBUTE_TYPE
 op, const bufferptr& secret,

 err_slot:
  PK11_FreeSlot(slot);
 err:
+  ;
 }

Quoted 9 lines
Quoted 9 lines

 #else
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html