FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-24-2008, 08:29 PM
"Alexander Beregalov"
 
Default app-arch/zip-3.0 fails to build without 'crypt'

zip.c:3455
IZ_PWLEN is not defined whith NO_CRYPT

When I try to fix it like this:

+#if CRYPT
if (key_needed) {
if ((key = malloc(IZ_PWLEN+1)) == NULL) {
ZIPERR(ZE_MEM, "was getting encryption password");
}
r = encr_passwd(ZP_PW_ENTER, key, IZ_PWLEN+1, zipfile);
if (r != IZ_PW_ENTERED) {
if (r < IZ_PW_ENTERED)
r = ZE_PARMS;
ZIPERR(r, "was getting encryption password");
}
if (*key == '') {
ZIPERR(ZE_PARMS, "zero length password not allowed");
}
if ((e = malloc(IZ_PWLEN+1)) == NULL) {
ZIPERR(ZE_MEM, "was verifying encryption password");
}
r = encr_passwd(ZP_PW_VERIFY, e, IZ_PWLEN+1, zipfile);
if (r != IZ_PW_ENTERED && r != IZ_PW_SKIPVERIFY) {
free((zvoid *)e);
if (r < ZE_OK) r = ZE_PARMS;
ZIPERR(r, "was verifying encryption password");
}
r = ((r == IZ_PW_SKIPVERIFY) ? 0 : strcmp(key, e));
free((zvoid *)e);
if (r) {
ZIPERR(ZE_PARMS, "password verification failed");
}
}
+#endif

it fails anyway
i686-pc-linux-gnu-gcc -o zipcloak zipcloak.o zipfile_.o fileio_.o
util_.o globals.o unix_.o crc32_.o crc_i386.o crypt_.o ttyio.o -lbz2
zipfile_.o: In function `zipcopy':
zipfile.c.text+0x288c): undefined reference to `zipmessage_nl'
zipfile.c.text+0x298b): undefined reference to `zipmessage_nl'
zipfile_.o: In function `readzipfile':
zipfile.c.text+0x378e): undefined reference to `zipmessage'
fileio_.o: In function `close_split':
fileio.c.text+0x1b20): undefined reference to `zipmessage'
fileio.c.text+0x1b3c): undefined reference to `rename_split'
fileio.c.text+0x1b44): undefined reference to `set_filetype'
fileio_.o: In function `bfcopy':
fileio.c.text+0x3eee): undefined reference to `zipmessage_nl'

But I can not find how it is related to CRYPT/NO_CRYPT
 
Old 09-25-2008, 07:26 AM
David Sveningsson
 
Default app-arch/zip-3.0 fails to build without 'crypt'

Alexander Beregalov skrev:
> zip.c:3455
> IZ_PWLEN is not defined whith NO_CRYPT
>
[snip]
>
> But I can not find how it is related to CRYPT/NO_CRYPT
>

I cannot reproduce this (and I even use -Wl,--as-needed).

Whats your "emerge --info"? Which arch? Which other useflags is enabled?

--


//*David Sveningsson [eXt]*

Freelance coder | Game Development Student
http://sidvind.com

Thou shalt make thy program's purpose and structure clear to thy fellow
man by using the One True Brace Style, even if thou likest it not, for
thy creativity is better used in solving problems than in creating
beautiful new impediments to understanding.
 
Old 09-25-2008, 07:46 AM
"Daniel Pielmeier"
 
Default app-arch/zip-3.0 fails to build without 'crypt'

2008/9/24 Alexander Beregalov <a.beregalov@gmail.com>:

Maybe you should look in the bug database first:
http://bugs.gentoo.org/show_bug.cgi?id=238398
 
Old 09-25-2008, 09:28 AM
Mike Frysinger
 
Default app-arch/zip-3.0 fails to build without 'crypt'

On Wednesday 24 September 2008, Alexander Beregalov wrote:
> zip.c:3455
> IZ_PWLEN is not defined whith NO_CRYPT

mailing lists (let alone directly e-mailing developers) is not how you fix
bugs. we have a bugzilla. use it please.
-mike
 

Thread Tools




All times are GMT. The time now is 01:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org