-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some issues about the bls.cpp #121
Comments
Read the comments at the start of bls.cpp
You need to link in the pairing code, e.g.
g++ -O2 bls.cpp* bn_pair.cpp* zzn12a.cpp ecn2.cpp zzn4.cpp zzn2.cpp big.cpp
zzn.cpp ecn.cpp miracl.a -o bls
…On Wed, Jun 28, 2023 at 9:51 AM Vageous ***@***.***> wrote:
Hi, I am new to the miracl. When using this library, I meet some issues
about the pairing operation. I first compile miracl follow the first.txt
and I choose to bash linux64_cpp. However, when I test the bls.cpp, we meet
the following problems.
The problem looks like the miracl.a has not compiled the pairing_3.h? So,
how can use the Elliptic curve in miracle?Do I need to modify the file
linux64_cpp? Hope you can help me solve this problem.
/usr/bin/ld: /tmp/ccOjDkJI.o: in function main': bls.cpp:(.text+0x34):
undefined reference to PFC::PFC(int, csprng*)'
/usr/bin/ld: bls.cpp:(.text+0xc4): undefined reference to PFC::random(G2&)'
/usr/bin/ld: bls.cpp:(.text+0xdd): undefined reference to
PFC::random(Big&)'
/usr/bin/ld: bls.cpp:(.text+0x101): undefined reference to PFC::mult(G2
const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x149): undefined
reference to PFC::hash_and_map(G1&, char*)'
/usr/bin/ld: bls.cpp:(.text+0x16d): undefined reference to PFC::mult(G1
const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x294): undefined
reference to PFC::hash_and_map(G1&, char*)'
/usr/bin/ld: bls.cpp:(.text+0x2ad): undefined reference to PFC::precomp_for_pairing(G2&)'
/usr/bin/ld: bls.cpp:(.text+0x328): undefined reference to PFC::multi_pairing(int,
G2**, G1**)'
/usr/bin/ld: bls.cpp:(.text+0x428): undefined reference to PFC::~PFC()'
/usr/bin/ld: bls.cpp:(.text+0x548): undefined reference to PFC::~PFC()'
/usr/bin/ld: /tmp/ccOjDkJI.o: in function G1::operator=(G1 const&)':
bls.cpp:(.text._ZN2G1aSERKS_[_ZN2G1aSERKS_]+0x37): undefined reference to
read_only_error()'
/usr/bin/ld: /tmp/ccOjDkJI.o: in function G2::operator=(G2 const&)':
bls.cpp:(.text._ZN2G2aSERKS_[_ZN2G2aSERKS_]+0x44): undefined reference to
read_only_error()'
collect2: error: ld returned 1 exit status
—
Reply to this email directly, view it on GitHub
<#121>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU3ZDXF3P3ACZ7H3SX7P2LXNPWBNANCNFSM6AAAAAAZWWT7HA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I got it. Thanks for your help!<br/><br/><br/><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div id="imail_signature" class="ntes-signature"> <a href="https://dashi.163.com/projects/signature-manager/detail/index.html?ftlId=1&name=3452724589%40qq.com&uid=3452724589%40qq.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&email=%E9%82%AE%E7%AE%B1%EF%BC%9A3452724589%40qq.com&items=%5B%22%E9%82%AE%E7%AE%B1%EF%BC%9A3452724589%40qq.com%22%5D" style="display:block;background:#fff; max-width: 400px; _width: 400px;padding:15px 0 10px 0;text-decoration: none; outline:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
<table cellpadding="0" style='width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse;color: #9b9ea1;font-size: 14px;line-height:1.3;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;'>
<tbody style="font-family: 'PingFang SC', 'Hiragino Sans GB','WenQuanYi Micro Hei', 'Microsoft Yahei', '微软雅黑', verdana !important; word-wrap:break-word; word-break:break-all;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
<tr>
<td width="38" style="padding:0; box-sizing: border-box; width: 38px;">
<img width="38" height="38" style="vertical-align:middle; width: 38px; height: 38px; border-radius:50%;" src="https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png" />
</td>
<td style='padding: 0 0 0 10px; color: #31353b;'>
<div style="font-size: 16px;font-weight:bold; width:100%; white-space: nowrap; overflow:hidden;text-overflow: ***@***.***</div>
</td>
</tr>
<tr width="100%" style="font-size: 14px !important; width: 100%;">
<td colspan='2' style="padding:10px 0 0 0; font-size:14px !important; width: 100%;">
<div style="width: 100%;font-size: 14px ***@***.***</div>
</td>
</tr>
</tbody>
</table>
</a></div><br/><br/><br/><div class="ntes-mailmaster-quote" style="padding-top: 1px; padding-bottom: 1px" >
<div style=" margin-top: 20px; margin-bottom: 12px; font-size: 14px; line-height: 1.25; color: #89898c; " >---- Replied Message ----</div>
<div style=" margin-bottom: 12px; font-size: 13px; line-height: 1.25; color: #2c2c2e; padding: 2px; border-radius: 8px; background-color: #f0f0f0; " >
<table width="100%" cellpadding="0" cellspacing="10" border="0">
<tr>
<td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; white-space: nowrap; " >From</td>
<td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " ><a class="mail-from" style="color: #1c83eb; text-decoration: none" ***@***.***" >Michael ***@***.***></a></td>
</tr>
<tr>
<td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; white-space: nowrap; " >Date</td>
<td class="mail-date" valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " >06/28/2023 17:16</td>
</tr>
<tr style="">
<td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; " >To</td>
<td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " ><a class="mail-to" style="color: #1c83eb; text-decoration: none" ***@***.***" >***@***.***></a></td>
</tr>
<tr style="">
<td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; " >Cc</td>
<td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " ><a class="mail-cc" style="color: #1c83eb; text-decoration: none" ***@***.***" >***@***.***></a>、<a class="mail-cc" style="color: #1c83eb; text-decoration: none" ***@***.***" >***@***.***></a></td>
</tr>
<tr>
<td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; " >Subject</td>
<td class="mail-subject" valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " >Re: [miracl/MIRACL] Some issues about the bls.cpp (Issue #121)</td>
</tr>
</table>
</div>
<div><p></p>
Read the comments at the start of bls.cpp
<br>
<br>
You need to link in the pairing code, e.g.
<br>
<br>
g++ -O2 bls.cpp* bn_pair.cpp* zzn12a.cpp ecn2.cpp zzn4.cpp zzn2.cpp big.cpp
<br>
zzn.cpp ecn.cpp miracl.a -o bls
<br>
<br>
On Wed, Jun 28, 2023 at 9:51 AM Vageous ***@***.***> wrote:
<br>
<br>
> Hi, I am new to the miracl. When using this library, I meet some issues
<br>
> about the pairing operation. I first compile miracl follow the first.txt
<br>
> and I choose to bash linux64_cpp. However, when I test the bls.cpp, we meet
<br>
> the following problems.
<br>
> The problem looks like the miracl.a has not compiled the pairing_3.h? So,
<br>
> how can use the Elliptic curve in miracle?Do I need to modify the file
<br>
> linux64_cpp? Hope you can help me solve this problem.
<br>
>
<br>
> /usr/bin/ld: /tmp/ccOjDkJI.o: in function main': bls.cpp:(.text+0x34):
<br>
> undefined reference to PFC::PFC(int, csprng*)'
<br>
> /usr/bin/ld: bls.cpp:(.text+0xc4): undefined reference to PFC::random(G2&)'
<br>
> /usr/bin/ld: bls.cpp:(.text+0xdd): undefined reference to
<br>
> PFC::random(Big&)'
<br>
> /usr/bin/ld: bls.cpp:(.text+0x101): undefined reference to PFC::mult(G2
<br>
> const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x149): undefined
<br>
> reference to PFC::hash_and_map(G1&, char*)'
<br>
> /usr/bin/ld: bls.cpp:(.text+0x16d): undefined reference to PFC::mult(G1
<br>
> const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x294): undefined
<br>
> reference to PFC::hash_and_map(G1&, char*)'
<br>
> /usr/bin/ld: bls.cpp:(.text+0x2ad): undefined reference to PFC::precomp_for_pairing(G2&)'
<br>
> /usr/bin/ld: bls.cpp:(.text+0x328): undefined reference to PFC::multi_pairing(int,
<br>
> G2**, G1**)'
<br>
> /usr/bin/ld: bls.cpp:(.text+0x428): undefined reference to PFC::~PFC()'
<br>
> /usr/bin/ld: bls.cpp:(.text+0x548): undefined reference to PFC::~PFC()'
<br>
> /usr/bin/ld: /tmp/ccOjDkJI.o: in function G1::operator=(G1 const&)':
<br>
> bls.cpp:(.text._ZN2G1aSERKS_[_ZN2G1aSERKS_]+0x37): undefined reference to
<br>
> read_only_error()'
<br>
> /usr/bin/ld: /tmp/ccOjDkJI.o: in function G2::operator=(G2 const&)':
<br>
> bls.cpp:(.text._ZN2G2aSERKS_[_ZN2G2aSERKS_]+0x44): undefined reference to
<br>
> read_only_error()'
<br>
> collect2: error: ld returned 1 exit status
<br>
>
<br>
> —
<br>
> Reply to this email directly, view it on GitHub
<br>
> <#121>, or unsubscribe
<br>
> <https://github.com/notifications/unsubscribe-auth/AAU3ZDXF3P3ACZ7H3SX7P2LXNPWBNANCNFSM6AAAAAAZWWT7HA>
<br>
> .
<br>
> You are receiving this because you are subscribed to this thread.Message
<br>
> ID: ***@***.***>
<br>
>
<br>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="#121 (comment)">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMFONFCPCZTGUQNEIVA3OBDXNPY6DANCNFSM6AAAAAAZWWT7HA">unsubscribe</a>.<br />You are receiving this because you authored the thread.<img src="https://github.com/notifications/beacon/AMFONFBBVYRRVFO4JU7L2T3XNPY6DA5CNFSM6AAAAAAZWWT7HCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTAA3E62.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><miracl/MIRACL/issues/121/1611057645</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#121 (comment)",
"url": "#121 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
</div>
</div>
</body>
</html>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am new to the miracl. When using this library, I meet some issues about the pairing operation. I first compile miracl follow the first.txt and I choose to bash linux64_cpp. However, when I test the bls.cpp, we meet the following problems.
The problem looks like the miracl.a has not compiled the pairing_3.h? So, how can use the Elliptic curve in miracle?Do I need to modify the file linux64_cpp? Hope you can help me solve this problem.
/usr/bin/ld: /tmp/ccOjDkJI.o: in function
main': bls.cpp:(.text+0x34): undefined reference to
PFC::PFC(int, csprng*)'/usr/bin/ld: bls.cpp:(.text+0xc4): undefined reference to
PFC::random(G2&)' /usr/bin/ld: bls.cpp:(.text+0xdd): undefined reference to
PFC::random(Big&)'/usr/bin/ld: bls.cpp:(.text+0x101): undefined reference to
PFC::mult(G2 const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x149): undefined reference to
PFC::hash_and_map(G1&, char*)'/usr/bin/ld: bls.cpp:(.text+0x16d): undefined reference to
PFC::mult(G1 const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x294): undefined reference to
PFC::hash_and_map(G1&, char*)'/usr/bin/ld: bls.cpp:(.text+0x2ad): undefined reference to
PFC::precomp_for_pairing(G2&)' /usr/bin/ld: bls.cpp:(.text+0x328): undefined reference to
PFC::multi_pairing(int, G2**, G1**)'/usr/bin/ld: bls.cpp:(.text+0x428): undefined reference to
PFC::~PFC()' /usr/bin/ld: bls.cpp:(.text+0x548): undefined reference to
PFC::~PFC()'/usr/bin/ld: /tmp/ccOjDkJI.o: in function
G1::operator=(G1 const&)': bls.cpp:(.text._ZN2G1aSERKS_[_ZN2G1aSERKS_]+0x37): undefined reference to
read_only_error()'/usr/bin/ld: /tmp/ccOjDkJI.o: in function
G2::operator=(G2 const&)': bls.cpp:(.text._ZN2G2aSERKS_[_ZN2G2aSERKS_]+0x44): undefined reference to
read_only_error()'collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: