Re: [cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-17 Thread Jeffrey Walton
On Wed, Jan 17, 2018 at 2:43 PM,   wrote:
> Still the same. I tried to uninstall cryptopp and cryptopp-devel packages,
> then do dnf clean all, then install the packages back and still the same
> error. The problem is somewhere in this line:
> CryptoPP::FileSource createFileFingerprint(filePath.c_str(), true, new
> CryptoPP::HashFilter(sha256Hasher, new CryptoPP::HexEncoder(new
> CryptoPP::StringSink(fileFingerprint;

When you make, pipe your output through c++filt:

g++ main.cpp -o main -lcryptopp 2>&1 | c++filt

Then post the error message.

I've got a feeling you are mixing and matching header files. Maybe the
you are using upcoming Crypto++ 6.0 header files and a Crypto++ 5.6.3
library from Fedora. That's because of:

 undefined reference to
CryptoPP::BufferedTransformation::Skip(unsigned long)

The 'unsigned long'  is _now_ the word64 type, but that change
occurred at Crypto++ 5.6.5. At 5.6.4 and below a word64 was 'unsigned
long long'. At Crypto++ 5.6.5 it was changed to a 'unsigned long'
under LP64 data models.

You should not be missing a "BufferedTransformation::Skip(unsigned
long)". If you are missing anything, it should be
"BufferedTransformation::Skip(unsigned long long)".

The change is detailed under "Notes for Distros" at
https://www.cryptopp.com/release565.html .

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-17 Thread zavodnyrichard
Still the same. I tried to uninstall *cryptopp* and *cryptopp-devel* 
packages, then do *dnf clean all*, then install the packages back and still 
the same error. The problem is somewhere in this line:
CryptoPP::FileSource createFileFingerprint(filePath.c_str(), true, new 
CryptoPP::HashFilter(sha256Hasher, new CryptoPP::HexEncoder(new CryptoPP::
StringSink(fileFingerprint;

Everything works fine only if I delete the line above and keep only the 
hasher init:
CryptoPP::SHA256 sha256Hasher;


Dne pondělí 15. ledna 2018 20:19:06 UTC+1 Jeffrey Walton napsal(a):
>
> On Mon, Jan 15, 2018 at 1:59 PM,   
> wrote: 
> > What you mean by "entire build process"? I have installed CryptoPP from 
> > Fedora repos (5.6.3), then for build I do g++ main.cpp -o main 
> -std=c++17 
> > -lcryptopp. Nothing more. I don't use CMake and Make for this program 
> yet. 
> > The error I get is pasted on Pastebin. 
>
> Fedora does not build with -std=c++17. You have to build with the same 
> CFLAGS and same CXXFLAGS as the library was built with. 
>
> First, visit https://admin.fedoraproject.org/pkgdb/package/rpms/cryptopp/ 
> . Second, click on "Package Source" and it take you to 
> http://pkgs.fedoraproject.org/cgit/rpms/cryptopp.git/ . Third, click 
> on "Tree" and it takes you to 
> http://pkgs.fedoraproject.org/cgit/rpms/cryptopp.git/tree/ . Finally, 
> click on "cryptopp.pc" and it takes you to 
> http://pkgs.fedoraproject.org/cgit/rpms/cryptopp.git/tree/cryptopp.pc 
> . 
>
> The *.pc is the package config file. It is located at 
> /usr/local/lib64/pkgconfig/cryptopp.pc on your system. Notice it does 
> not use the flags you are using. Related, why you have to use Cflags 
> (and not Cxxflags), see 
> https://lists.freedesktop.org/archives/pkg-config/2017-November/001087.html 
> . 
>
> The first thing you should do it try again, but this time without 
> -std=c++17 . 
>
> Jeff 
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-15 Thread zavodnyrichard
What you mean by "entire build process"? I have installed CryptoPP from 
Fedora repos (5.6.3), then for build I do *g++ main.cpp -o main -std=c++17 
-lcryptopp*. Nothing more. I don't use CMake and Make for this program yet. 
The error I get is pasted on Pastebin. 

Also, I want apology for my English, since I'm not native. I'll try my best 
for you, to understand me.

Pondělí 15. ledna 2018 15:55:59 UTC+1 Jeffrey Walton napsal(a):
>
> On Mon, Jan 15, 2018 at 9:50 AM,   
> wrote: 
> > Any toughts? 
>
> You have not provided enough information. 
>
> Please provide the entire build process for your program and the 
> library. Be sure it includes your call to make, the compile commands 
> used to compile source files, the link command used to link objects 
> and libraries, and the error messages. 
>
> Jeff 
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-15 Thread Jeffrey Walton
On Mon, Jan 15, 2018 at 9:50 AM,   wrote:
> Any toughts?

You have not provided enough information.

Please provide the entire build process for your program and the
library. Be sure it includes your call to make, the compile commands
used to compile source files, the link command used to link objects
and libraries, and the error messages.

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-15 Thread zavodnyrichard
Any toughts? 

Dne sobota 13. ledna 2018 14:20:36 UTC+1 zavodny...@gmail.com napsal(a):
>
> Does anybody know why I'm getting this error? 
> https://pastebin.com/YeGA4dgN
>
> I just want make fingerprint of a file and put it into string.
> CryptoPP::SHA256 sha256Hasher;
>
> CryptoPP::FileSource createFileFingerprint(filePath.c_str(), true, new 
> CryptoPP::HashFilter(sha256Hasher, new CryptoPP::HexEncoder(new 
> CryptoPP::StringSink(fileFingerprint;
>
>
>
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-13 Thread zavodnyrichard
Oh sorry... If i add the *-Wall* option it show nothing more. I still 
getting the same error as I pasted into Pastebin.

Dne sobota 13. ledna 2018 20:04:39 UTC+1 Jeffrey Walton napsal(a):
>
>
>
> On Saturday, January 13, 2018 at 11:42:22 AM UTC-5, zavodny...@gmail.com 
> wrote:
>>
>> The entire command to compile my project is *g++ main.cpp -o main 
>> -std=c++17 -lcryptopp*. *-Wall* option, show nothing.
>>
>
> When the compile command completes by showing  nothing, that means it 
> succeeded.
>
> Your next step is to run it with ./main
>
> Jeff
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-13 Thread Jeffrey Walton


On Saturday, January 13, 2018 at 11:42:22 AM UTC-5, zavodny...@gmail.com 
wrote:
>
> The entire command to compile my project is *g++ main.cpp -o main 
> -std=c++17 -lcryptopp*. *-Wall* option, show nothing.
>

When the compile command completes by showing  nothing, that means it 
succeeded.

Your next step is to run it with ./main

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-13 Thread zavodnyrichard
The entire command to compile my project is *g++ main.cpp -o main 
-std=c++17 -lcryptopp*. *-Wall* option, show nothing.

Dne sobota 13. ledna 2018 16:39:06 UTC+1 Jeffrey Walton napsal(a):
>
>
>
> On Saturday, January 13, 2018 at 8:20:36 AM UTC-5, zavodny...@gmail.com 
> wrote:
>>
>> Does anybody know why I'm getting this error? 
>> https://pastebin.com/YeGA4dgN
>>
>
> Show the entire build process for your program. Be sure it includes your 
> call to make, the compile commands used to compile source files, the link 
> command used to link objects and libraries, and the error messages.
>
> Jeff
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-13 Thread zavodnyrichard
5.6.3 from Fedora repo. 

Dne sobota 13. ledna 2018 16:39:15 UTC+1 Marcel Raad napsal(a):
>
> Am 13.01.2018 14:29 schrieb :
>
> Using the G++ option *-lcryptopp*. The program will compile if I keep the 
> *CryptoPP::SHA256 
> sha256Hasher;* and comment the FileSource.
>
>
> OK, now that's strange. What version of Crypto++ is this? Are you building 
> it yourself or are you using a system package?
>
> Marcel
>
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-13 Thread Marcel Raad
Am 13.01.2018 14:29 schrieb :

Using the G++ option *-lcryptopp*. The program will compile if I keep
the *CryptoPP::SHA256
sha256Hasher;* and comment the FileSource.


OK, now that's strange. What version of Crypto++ is this? Are you building
it yourself or are you using a system package?

Marcel

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-13 Thread Jeffrey Walton


On Saturday, January 13, 2018 at 8:20:36 AM UTC-5, zavodny...@gmail.com 
wrote:
>
> Does anybody know why I'm getting this error? 
> https://pastebin.com/YeGA4dgN
>

Show the entire build process for your program. Be sure it includes your 
call to make, the compile commands used to compile source files, the link 
command used to link objects and libraries, and the error messages.

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[cryptopp-users] Re: Undefined reference to BufferedTransformation

2018-01-13 Thread zavodnyrichard
Using the G++ option *-lcryptopp*. The program will compile if I keep the 
*CryptoPP::SHA256 
sha256Hasher;* and comment the FileSource.


Dne sobota 13. ledna 2018 14:20:36 UTC+1 zavodny...@gmail.com napsal(a):
>
> Does anybody know why I'm getting this error? 
> https://pastebin.com/YeGA4dgN
>
> I just want make fingerprint of a file and put it into string.
> CryptoPP::SHA256 sha256Hasher;
>
> CryptoPP::FileSource createFileFingerprint(filePath.c_str(), true, new 
> CryptoPP::HashFilter(sha256Hasher, new CryptoPP::HexEncoder(new 
> CryptoPP::StringSink(fileFingerprint;
>
>
>
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.