Mailing List archive

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

[vdr] Re: VDR with NTPL



> 
> Afaik nobody does this intentionally.
> 
> Unfortunately, there have been some changes in the 2.6.x kernel series
> which broke backward compatibility.
>  
> > If the DVB driver wants to use features of a newer kernel, 
> these should
> > be enclosed in #if statements and made kernel version dependent.
> 
> Patches are welcome. I'm sure that these patches could be incorporated
> in dvb-kernel if someone would be willing to provide and 
> maintain them.
> 

I am currently trying to test out vdr with and without NPTL enabled so I
changed the code in vdr.c like this (so vdr would startup without having to
disable it):

#ifdef _CS_GNU_LIBPTHREAD_VERSION
  // Check for NPTL and exit if present - VDR apparently doesn't run well
with NPTL:
  char LibPthreadVersion[128];
  if (confstr(_CS_GNU_LIBPTHREAD_VERSION, LibPthreadVersion,
sizeof(LibPthreadVersion)) > 0) {
     if (strstr(LibPthreadVersion, "NPTL")) {
//        fprintf(stderr, "\nvdr: please turn off NPTL by setting 'export
LD_ASSUME_KERNEL=2.4.1' before starting VDR\n");
        isyslog("Warning: NPTL is currently unsupported by VDR.  To remove
this message, turn off NPTL by setting 'export LD_ASSUME_KERNEL=2.4.1'
before starting VDR");
//      return 2;
        }
     }
#endif

The problem that I am now seeing is VDR will startup when I use "export
LD_ASSUME_KERNEL=2.4.1" and not display the warning message in my syslog,
but after a few hours, the warning message appears in the log.  Does that
make any sense?  Why would the warning be displayed after a few hours of use
and not during startup?  If I do not use "export LD_ASSUME_KERNEL=2.4.1" in
the startup script, the warning is displayed immediately..

Thanks.





Home | Main Index | Thread Index