Click here to get back home

Installing Newt

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Installing Newt swylieguard-google 06-30-2007
`--> Re: Installing Newt Christopher Neh...06-30-2007
Posted by swylieguard-google on June 30, 2007, 4:17 am
Please log in for more thread options


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.

Any ideas?
TIA
Steve


Posted by Christopher Nehren on June 30, 2007, 2:18 pm
Please log in for more thread options


On 2007-06-30, swylieguard-google@yahoo.co.uk 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

Similar ThreadsPosted
Installing GD November 8, 2005, 2:05 pm
Installing Tk November 13, 2005, 10:49 pm
[Q] Installing GD September 25, 2006, 6:38 pm
Error Installing XML::DOM October 15, 2004, 9:16 am
Trouble installing GD November 5, 2004, 10:51 am
installing modules? September 29, 2005, 1:52 pm
Need help installing via CPAN March 17, 2005, 3:33 pm
Newbie & Installing NET::FTP,CGI.PM, etc. July 7, 2005, 8:58 am
installing mod_perl? July 20, 2005, 9:05 pm
Installing modules August 5, 2005, 8:32 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap