-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi!
I've got a similar situation, ie. Linux with g++ 3.2 and needing the -fPIC flag. I got a similar compile failure with the off-the-shelf crypto50.zip. However, after grabbing the CVS source it compiled (however, it gave some "implicit typename depreciated" warnings). The validation suite reported all tests passed. Here's the CXXFLAGS used: CXXFLAGS = -O2 -DNDEBUG -ffunction-sections -fdata-sections -fPIC On a similar thread, compiling under Linux with g++ 2.95.3, again the crypto50.zip sources give the same asm compile errors when using the -fPIC flag. CVS source works find, only if g++ is not passed any optimization flags, otherwise when trying to link cryptest.exe, there are numerous link errors. If the optimization flag is removed, it compiles fine and cryptest.exe reports all tests passed. The same is true when using the crypto50.zip sources without the -fPIC flag (compiles fine, but will fail to link cryptest.exe). Hope that was useful. Ciao, ajh On Monday 23 December 2002 12:45 pm, Stephen Zander spewed this random garbage: > >>>>> "Wei" == Wei Dai <[EMAIL PROTECTED]> writes: > > Wei> What OS are you compiling for? Some (Darwin and maybe others) > Wei> require PIC (forgot what it stands for) which uses up one > Wei> register. The latest code in CVS under the c50-fixes branch > Wei> conditionalizes the asm code based on the __pic__ > Wei> macro. Please grab that code and try it. > > Linux, and yes I was compiling with -fPIC (position independent code). > The weird thing is that the compilation faliure is intermittent. It > fails on the first build but not on subsequent retries. Very weird. - -- AJ Harrington ajharrington.net http://www.ajharrington.net/ Public Key at http://www.keyserver.net Key fingerprint = 0D2D 9598 659F 4901 7BBB E126 7EDF 04DB 6EE6 87E9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+F5uJft8E227mh+kRAqH2AKCLpwsfTyOXY6xPojCkRdOd8RJCHgCfXXl8 FZPSCwSLTlK13c0Zctt5/58= =DvHf -----END PGP SIGNATURE-----
