Mailing List Archive

Fix for compiling 0.9.2 via RPM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

RPM adds an extra -O2 flag, so this small patch is required if you are
using a version of gcc which goes into an infinite loop compiling
twofish.c w/ optimization:

==============================================================================
- --- gnupg-0.9.2/cipher/Makefile.am.~1~ Thu Jan 21 01:17:52 1999
+++ gnupg-0.9.2/cipher/Makefile.am Thu Jan 21 01:18:07 1999
@@ -57,7 +57,7 @@

twofish: $(srcdir)/twofish.c
`echo $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o twofish $(srcdir)/twofish.c | \
- - sed -e 's/-O[0-9]*/ /' `
+ sed -e 's/-O[0-9]*/ /g' `


rndunix: $(srcdir)/rndunix.c
==============================================================================

(I've also attatched a b64-encoded copy of the patch, in case the one
line get's wrapped in transit...)

- -JimC
- --
James H. Cloos, Jr. <http://www.jhcloos.com/cloos/public_key> 1024D/ED7DAEA6
<cloos@jhcloos.com> E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE2ptXNmXqfF+19rqYRAuAsAKCm6ciefmRDB7iLNSgPNt6DbxqcAwCfYITB
1fJqfwE/eRSsnNgIphDUk9Q=
=B6mt
-----END PGP SIGNATURE-----
Re: Fix for compiling 0.9.2 via RPM [ In reply to ]
On Thu, Jan 21, 1999 at 01:23:25AM -0600, James H. Cloos Jr. wrote:

>
> RPM adds an extra -O2 flag, so this small patch is required if you are
> using a version of gcc which goes into an infinite loop compiling
> twofish.c w/ optimization:
>

I've noticed this... this happens only with last version of twofish.c,
yesterday I've build gnupg from latest CVS and all went fine.
rpm adds platform specific options, as stated in /usr/lib/rpmrc.
Can this considered a bug of gcc? (at least of egcs 1.0.2)
I can remove the use of platform specific compilations flag in spec
file, if this can cause problems.
(I'm courious to discover the change in twofish.c that causes this
loop...)





--
Fabio Coatti http://felix.unife.it/~cova
Ferrara Linux Users Group http://flug.unife.it
GnuPG fp:6AB9 277E 9AA7 9D20 E82C 9EE7 2D17 E351 3DCB 0CDC
Old SysOps never die... they simply forget their password.