Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Compile-errors with control-plugin ...



On Sun, Oct 12 2003, at 06:18:58 +0200, Rene Bartsch wrote:
> Hi,
> 
> I'm trying to compile the control-plugin 0.0.1 against VDR-1.2.2 and 
> DVB-driver 1.0.1, but get the following errors.
> 
> Can anyone give me hint what's going wrong?

These definitions in global.h are not according to the C specs:

	#define ESYSLOG( x... ) esyslog( "[control] "##x );
	#define ISYSLOG( x... ) isyslog( "[control] "##x );
	#define DSYSLOG( x... ) dsyslog( "[control] "##x );
	#define TSYSLOG( x... ) dsyslog( "[control] "##x );

If I recall correctly the CPP pasting operator ## must produce a
token such as a variable. Older GCCs accepted the above, but it is
now depricated.  What C compiler and version are you using?

Try removing the '##' from the macros (haven't tried
it myself), so that you get the following:

	#define ESYSLOG( x... ) esyslog( "[control] "x );
	#define ISYSLOG( x... ) isyslog( "[control] "x );
	#define DSYSLOG( x... ) dsyslog( "[control] "x );
	#define TSYSLOG( x... ) dsyslog( "[control] "x );



> echelon:/usr/src/VDR/VDR# make plugins
> make[1]: Entering directory `/usr/src/VDR/vdr-1.2.2/PLUGINS/src/control-0.0.1'
> control.c:137:69: pasting ""[control] "" and ""terminal opened %s (%i)"" does 
> not give a valid preprocessing token
> control.c:141:59: pasting ""[control] "" and ""Error opening terminal %s"" 
> does not give a valid preprocessing token
[etc.]

  Björn

-- 
Björn Andersson <bjorn@iki.fi>
PGP id 5AFC144B


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index