Opened 11 years ago

Closed 11 years ago

#2458 closed defect (fixed)

#6540 Compile Error in module-dvbapi.c

Reported by: JoSquillo Owned by:
Priority: Please fill in Component: DVBApi
Severity: Please fill in Keywords:
Cc: Sensitive: no

Description

The Compile stops with this error

lib/libcs-mipsel-tuxbox-linux-glibc.a(module-dvbapi.o): In function `dvbapi_resort_ecmpids':
module-dvbapi.c:(.text+0x4990): undefined reference to `get_betatunnel_caid_to'
module-dvbapi.c:(.text+0x4ed4): undefined reference to `get_betatunnel_caid_to'
collect2: ld returned 1 exit status
make[1]: * [Distribution/oscam-1.20-unstable_svn6540-mipsel-tuxbox-linux-glibc] Error 1
make: [cross-mipsel-tuxbox-linux-glibc] Error 2 (ignored)

Change History (3)

comment:1 by BurnMasterRecords, 11 years ago

Change this Lines and Compile will work again.

Index: trunk/module-stat.c
===================================================================
--- a/trunk/module-stat.c
+++ b/trunk/module-stat.c
@@ -45,5 +45,18 @@

#define LINESIZE 1024

-
+#endif
+

+#if defined WITH_LB
defined HAVE_DVBAPI

+uint16_t get_betatunnel_caid_to(uint16_t caid)
+{
+ if (caid == 0x1801) return 0x1722;
+ if (caid == 0x1833) return 0x1702;
+ if (caid == 0x1834) return 0x1722;
+ if (caid == 0x1835) return 0x1722;
+ return 0;
+}
+#endif
+
+#ifdef WITH_LB

void load_stat_from_file()
{

@@ -750,13 +763,4 @@

return cfg.lb_reopen_seconds;

return (time_t)stat->fail_factor * (time_t)cfg.lb_reopen_seconds;

-}
-
-uint16_t get_betatunnel_caid_to(uint16_t caid)
-{

  • if (caid == 0x1801) return 0x1722;
  • if (caid == 0x1833) return 0x1702;
  • if (caid == 0x1834) return 0x1722;
  • if (caid == 0x1835) return 0x1722;
  • return 0; }

comment:2 by JoSquillo, 11 years ago

Thanks. I suppose that the last code block is preceded by a "-". Is this right?

comment:3 by JoSquillo, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.