Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142765 - emerge ruby-password failed due to the wrong header file in cracklib-2.8.9
Summary: emerge ruby-password failed due to the wrong header file in cracklib-2.8.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 03:23 UTC by Ming Zhao (RETIRED)
Modified: 2006-08-20 00:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ming Zhao (RETIRED) gentoo-dev 2006-08-04 03:23:41 UTC
emerging dev-ruby/ruby-password-0.5.2 resulted the following error:

In file included from rbcrack.c:34:
/usr/include/packer.h:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FindPW'
rbcrack.c: In function 'passwd_check':
rbcrack.c:86: warning: assignment makes pointer from integer without a cast

I think it was caused by the wrong ifdef part in /usr/include/packer.h because even compiling "#include <packer.h> void main() {}" will cause a similar error.

I'm also posting a patch against cracklib-2.8.9, which can fix this bug on my box.
Comment 1 Ming Zhao (RETIRED) gentoo-dev 2006-08-04 03:27:36 UTC
I just failed to upload an attachment. So I placed the proposed patch under http://dev.gentoo.org/~ming/stuff/packer.diff
Comment 2 SpanKY gentoo-dev 2006-08-04 20:33:39 UTC
this is by design

ruby-password needs to include one of those headers before pulling in packer.h
Comment 3 SpanKY gentoo-dev 2006-08-05 23:05:16 UTC
sorry, my mistake

cracklib is broken, i'll bug upstream
Comment 4 SpanKY gentoo-dev 2006-08-20 00:39:22 UTC
should be fixed now with 2.8.9-r1