Re: Installing Newt
- From: Christopher Nehren <apeiron+usenet@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Jun 2007 18:18:46 GMT
On 2007-06-30, swylieguard-google@xxxxxxxxxxx scribbled these
curious markings:
I'm trying to install Newt on a Kubuntu 7 box using CPAN shell and get
a message:
listbox.c: in function listboxEvent:
listbox.c: 634: error: label at end of compound statement.
Since you didn't say *which* version of newt, I'm going to have to guess
that you're trying to install the latest version.
Around line 634 of listbox.c is this beautiful code:
case NEWT_KEY_END:
if(li->numItems <= 0) break;
li->startShowItem = li->numItems - li->curHeight;
if(li->startShowItem < 0)
li->startShowItem = 0;
li->currItem = li->numItems - 1;
newtListboxRealSetCurrent(co);
er.result = ER_SWALLOWED;
break;
default:
/* keeps gcc quiet */
}
break;
Interestingly, the line that "keeps gcc quiet" is the line that breaks
things. Removing the C<default:> line fixes things, at least for my
compiler. I've no idea whether the code will actually finish building,
though, because it seems to have been written in an extremely unportable
fashion (<alloca.h> and friends... may as well do #ifndef LINUX #error
"no newt for you" #endif). Seems to me like this code was written for
either an older compiler, a broken, RH-specific compiler, or both. Good
luck, I hope you know C, and GCC's oft-weird implementation thereof.
Best Regards,
Christopher Nehren
.
- References:
- Installing Newt
- From: swylieguard-google
- Installing Newt
- Prev by Date: Suspended: bignum incompatible with looks_like_number() ???
- Previous by thread: Installing Newt
- Index(es):
Relevant Pages
|