|
Message-ID: <20060520172043.GI363@annvix.org>
Date: Sat, 20 May 2006 11:20:43 -0600
From: Vincent Danen <vdanen@...sec.ca>
To: owl-users@...ts.openwall.com
Subject: Re: crypt_blowfish 1.0.1, glibc 2.3.5, and gcc 4.0.3 compile problems
* Dmitry V. Levin <ldv@...linux.org> [2006-05-20 16:53:11 +0400]:
> [...]
> > crypt-entry.c:74: warning: function declaration isn't a prototype
> > crypt-entry.c:142: error: 'fcrypt' aliased to undefined symbol 'crypt'
> [...]
> > Any ideas on what might be causing the problem?
>
> Modern gcc requires to make symbol definition available for weak_alias.
>
> In unpatched glibc, "crypt" symbol is defined in the same file
> (crypt-entry.c) as "fcrypt" alias.
> In crypt_blowfish (up to 1.0.1), the "crypt" symbol is defined in wrapper.c
> as weak alias to "__crypt". Obvious fix would be to move "fcrypt"
> definition from crypt-entry.c to wrapper.c
Thanks, I didn't know that. My mastery of C is... dubious at best... =)
Patches both files to move the alias of fcrypt over as suggested and
glibc compiles now.
Thanks very much, Dmitry.
--
Annvix - Secure Linux Server: http://annvix.org/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4}
Wasting time like it was free...
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.