Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8929 - hfsplusutils doesn't compile in 1.4_rc1
Summary: hfsplusutils doesn't compile in 1.4_rc1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-09 08:09 UTC by Jonathan Nall
Modified: 2006-02-04 06:03 UTC (History)
0 users

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


Attachments
patch to fix hfsplusutils compile on 1.4_rc1 (hfsplusutils-1.0.4-strmatch.patch,287 bytes, patch)
2002-10-09 08:10 UTC, Jonathan Nall
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Nall 2002-10-09 08:09:26 UTC
hfsplusutils-1.0.4 doesn't compile in gentoo 1.4_rc1. the error is:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libhfsp/src    -O2 -Wall -c glob.c
glob.c: In function `strmatch':
glob.c:51: pointers are not permitted as case values
make[2]: *** [glob.o] Error 1

i'm attaching a patch to fix this problem. the author has a construct like:
switch(char){
   case NULL:
   ...
}

which won't compile. my patch changes the NULL to a '\0', which does what the
author intends and compiles fine.
Comment 1 Jonathan Nall 2002-10-09 08:10:27 UTC
Created attachment 4539 [details, diff]
patch to fix hfsplusutils compile on 1.4_rc1

patch to fix the problem described in this bug
Comment 2 Mark Guertin 2002-10-09 09:57:30 UTC
Thanks Nall

Tested great and comitting now.