[vdr] vdr-1.7.22 mips_uClibc-0.9.30.1 (tools.c canonicalize_file_name...)

2012-01-04 Thread Infonux
Hi, 

I try to compile vdr for openwrt (r29611) but I get the following
errors

tools.c: In function 'char* ReadLink(const char*)':
tools.c:514: error: 'canonicalize_file_name' was not declared in this
scope tools.c: In member function 'int cUnbufferedFile::Open(const

more info in attached file.

I had already successfully compiled (vdr-1.7.22) in a later version of
openwrt (r27128)
I just wish find out where the error (like missing option in
uclibc or library...?)

Thanks in advance.


vdr-1.7.22_mips_uclibc_fail.txt.gz
Description: GNU Zip compressed data
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-1.7.22 mips_uClibc-0.9.30.1 (tools.c canonicalize_file_name...)

2012-01-04 Thread Infonux
Wed, 4 Jan 2012 14:46:18 +0100
Infonux infonux__gmail.com wrote:

solved by removing FADVISE and ...

http://svn.exactcode.de/t2/trunk/package/base/uclibc/patches/vdr-realpath.patch
http://www.vdr-portal.de/index.php?page=Threadpostid=641884



vdr-1.7.22_uClibc-0.9.30.1_fix_build.patch.gz
Description: GNU Zip compressed data
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-1.7.22 mips_uClibc-0.9.30.1 (tools.c canonicalize_file_name...)

2012-01-04 Thread Theunis Potgieter
I would change:

-  char *TargetName = canonicalize_file_name(FileName);
+  char *TargetName = MALLOC(char, PATH_MAX);
+  TargetName = realpath(FileName, TargetName);

to

-  char *TargetName = canonicalize_file_name(FileName);
+  TargetName = realpath(FileName, NULL);

From http://linux.die.net/man/3/realpath To prevent a memory leak.

Theunis

On 4 January 2012 21:59, Infonux info...@gmail.com wrote:

 Wed, 4 Jan 2012 14:46:18 +0100
 Infonux infonux__gmail.com wrote:

 solved by removing FADVISE and ...


 http://svn.exactcode.de/t2/trunk/package/base/uclibc/patches/vdr-realpath.patch
 http://www.vdr-portal.de/index.php?page=Threadpostid=641884


 ___
 vdr mailing list
 vdr@linuxtv.org
 http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-1.7.22 mips_uClibc-0.9.30.1 (tools.c canonicalize_file_name...)

2012-01-04 Thread Theunis Potgieter
I meant,

+  char *TargetName = realpath(FileName, NULL);

On 4 January 2012 22:11, Theunis Potgieter theunis.potgie...@gmail.com wrote:

 I would change:

 -  char *TargetName = canonicalize_file_name(FileName);
 +  char *TargetName = MALLOC(char, PATH_MAX);
 +  TargetName = realpath(FileName, TargetName);

 to

 -  char *TargetName = canonicalize_file_name(FileName);
 +  TargetName = realpath(FileName, NULL);

 From http://linux.die.net/man/3/realpath To prevent a memory leak.

 Theunis

 On 4 January 2012 21:59, Infonux info...@gmail.com wrote:

 Wed, 4 Jan 2012 14:46:18 +0100
 Infonux infonux__gmail.com wrote:

 solved by removing FADVISE and ...

 http://svn.exactcode.de/t2/trunk/package/base/uclibc/patches/vdr-realpath.patch
 http://www.vdr-portal.de/index.php?page=Threadpostid=641884


 ___
 vdr mailing list
 vdr@linuxtv.org
 http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr