[mythtv] lcddevice.cpp:137: error: ‘system’ was not declared in this scope

Ruediger Oertel ro at suse.de
Sun Nov 4 12:18:49 UTC 2007

On Sun, 4 Nov 2007, Bart Schelstraete wrote:

> Hello,
> I'm trying to build MythTv from source, but doesn't work as expected.
> I used the trunk version by executing:  svn co
> http://cvs.mythtv.org/svn/trunk/mythtv
> Then I' v run the following configure: ./configure --prefix=/usr
> --enable-iptv --disable-firewire --disable-lirc
> --disable-joystick-menu --disable-dvb  --disable-audio-jack
> --disable-dbox2 --disable-hdhomerun  --disable-audio-alsa
> --disable-audio-oss --disable-mmx --disable-ivtv  --disable-directfb
> --enable-proc-opt
> but this fails:
> lcddevice.cpp: In member function 'bool LCD::connectToHost(const
> QString&, unsigned int)':
> lcddevice.cpp:137: error: 'system' was not declared in this scope
> make[2]: *** [lcddevice.o] Error 1
> Anybody who has the same problem, and knows what to do?

wild guess: you are using a gcc-4.3 snapshot.
try to include <stdlib.h> or <cstdlib> which should help.

I've already got a patch to be able to compile mythtv with
gcc-4.3 but haven't got around to go all the way through mythplugins

with kind regards (mit freundlichem Grinsen),
   Ruediger Oertel (ro at novell.com,ro at suse.de,bugfinder at t-online.de)
Linux Fatou #1 SMP 2007/10/19 20:37:48 UTC x86_64
Key fingerprint = 17DC 6553 86A7 384B 53C5  CA5C 3CE4 F2E7 23F2 B417
SUSE LINUX Products GmbH,  GF: Markus Rex,   HRB 16746 (AG Nürnberg)

More information about the mythtv-dev mailing list