> 1) I have found a way of copying text from Windows Command Line, so here
> is the first unsolved problem.
> On MinGW-32, the *cryptest.exe v *with CRYPTOPP_NO_UNALIGNED_ACCESS
> defined crashes with SIGSEGV:
>
The problem appears to be with MinGW's automatic PIC. You should file a bug
report with the MinGW project.
I can reproduce with the following:
$ make static dynamic cryptest.exe
$ ./cryptest.exe v
I *CANNOT* reproduce by forcing PIC even though its supposed to be enabled.
Below is a typical CXXFLAGS + fPIC.
make CXXFLAGS="-DNDEBUG -g2 -O2 -fPIC -march=native -Wall -Wextra
-Wno-type-limits -Wno-unknown-pragmas -pipe"
The trick above, placing CXXFLAGS on make's command line, means the
makefile uses precisely that CXXFLAGS. It effectively creates a read-only
CXXFLAGS for the makefile.
The noisy compile below looks like another MinGW bug. You should probably
report it, too.
$ make CXXFLAGS="-DNDEBUG -O1 -fPIC"
WARNING: CRYPTOPP_NO_UNALIGNED_DATA_ACCESS is not defined in config.h
g++ -DNDEBUG -O1 -fPIC -c 3way.cpp
3way.cpp:1:0: warning: -fPIC ignored for target (all code is position
independen
t) [enabled by default]
// 3way.cpp - modifed by Wei Dai from Joan Daemen's 3way.c
^
g++ -DNDEBUG -O1 -fPIC -c adler32.cpp
adler32.cpp:1:0: warning: -fPIC ignored for target (all code is position
indepen
dent) [enabled by default]
// adler32.cpp - written and placed in the public domain by Wei Dai
^
...
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.