Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 142765

Summary: emerge ruby-password failed due to the wrong header file in cracklib-2.8.9
Product: Gentoo Linux Reporter: Ming Zhao (RETIRED) <ming>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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