Opened 13 years ago
Closed 13 years ago
#962 closed defect (duplicate)
config.sh: if disable debug = error on module-dvbapi.c
Reported by: | alborland | Owned by: | |
---|---|---|---|
Priority: | major | Component: | General |
Severity: | medium | Keywords: | |
Cc: | Sensitive: | no |
Description
for testing i disbaled cs_debug in config.sh and try build
but than build error:
In file included from module-dvbapi.c:6:
module-dvbapi.h:188:1: warning: "cs_debug" redefined
In file included from module-dvbapi.c:2:
globals.h:1378:1: warning: this is the location of the previous definition
lib/libcs-mipsel-router-linux-uclibc929.a(module-dvbapi.o): In function `dvbapi_add_emmpid':
module-dvbapi.c:(.text+0x288): undefined reference to `cs_debug'
lib/libcs-mipsel-router-linux-uclibc929.a(module-dvbapi.o): In function `dvbapi_parse_cat':
module-dvbapi.c:(.text+0x410): undefined reference to `cs_debug'
module-dvbapi.c:(.text+0x49c): undefined reference to `cs_debug'
module-dvbapi.c:(.text+0x4fc): undefined reference to `cs_debug'
module-dvbapi.c:(.text+0x574): undefined reference to `cs_debug'
lib/libcs-mipsel-router-linux-uclibc929.a(module-dvbapi.o):module-dvbapi.c:(.text+0x63c): more undefined references to `cs_debug' follow
collect2: ld returned 1 exit status
please correct config.h to set also
module-dvbapi.h:
#ifdef WITH_STAPI
#define cs_log(x...) cs_log("stapi: "x)
#define cs_debug(x...) cs_debug("stapi: "x)
#else
#define cs_log(x...) cs_log("dvbapi: "x)
#define cs_debug(x...) cs_debug("dvbapi: "x)
#endif
to:
#ifdef WITH_STAPI
#define cs_log(x...) cs_log("stapi: "x)
#define cs_debug(x...) cs_debug("stapi: "x)
#else
#define cs_log(x...) cs_log("dvbapi: "x)
#define cs_debug(x...) cs_debug("dvbapi: "x)
#endif
than its ok ;)