On 07.01.2009 13:43, jean-paul at goedee.nl wrote:
Klaus,
I get a error while compiling this version:
g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -c -DREMOTE_KBD -DLIRC_DEVICE="/dev/lircd" -DRCU_DEVICE="/dev/ttyS1" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVIDEODIR="/video" -DCONFDIR="/video" -DPLUGINDIR="./PLUGINS/lib" -DLOCDIR="./locale" -I/usr/include/freetype2 timers.c g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -c -DREMOTE_KBD -DLIRC_DEVICE="/dev/lircd" -DRCU_DEVICE="/dev/ttyS1" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVIDEODIR="/video" -DCONFDIR="/video" -DPLUGINDIR="./PLUGINS/lib" -DLOCDIR="./locale" -I/usr/include/freetype2 tools.c tools.c: In member function ssize_t cUnbufferedFile::Write(const void*, size_t): tools.c:1611: error: no matching function for call to min(long unsigned int, off_t) make: *** [tools.o] Error 1
Compiles just fine here with
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)
Try typecasting the first parameter, as in
off_t headdrop = min(off_t(curpos - totwritten), off_t(totwritten * 2));
Klaus
I think the compiler is not the problem (same version). Trying the next option.
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] Copyright (C) 2008 Free Software Foundation, Inc.
JP
Try typecasting the first parameter, as in
off_t headdrop = min(off_t(curpos - totwritten), off_t(totwritten * 2));
Klaus
I think the compiler is not the problem (same version). Trying the next option.
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] Copyright (C) 2008 Free Software Foundation, Inc.
I had same problem with gcc 4.3.2 on Mandriva. (x86_64 env) Adding off_t() typecasting for the first parameter as you suggested fixed it. Klaus do you remember to fix it for next version without patch?
Mika
On 07.01.2009 15:14, Mika Laitio wrote:
Try typecasting the first parameter, as in off_t headdrop = min(off_t(curpos - totwritten), off_t(totwritten * 2)); Klaus
I think the compiler is not the problem (same version). Trying the next option.
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] Copyright (C) 2008 Free Software Foundation, Inc.
I had same problem with gcc 4.3.2 on Mandriva. (x86_64 env) Adding off_t() typecasting for the first parameter as you suggested fixed it. Klaus do you remember to fix it for next version without patch?
If you're using the same compiler as I do, I don't see why such a typecast is necessary on your side, while on my side it compiles just fine.
Are you using any different compiler options than me?
Klaus
Hi
I think the compiler is not the problem (same version). Trying the next option.
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] Copyright (C) 2008 Free Software Foundation, Inc.
I had same problem with gcc 4.3.2 on Mandriva. (x86_64 env) Adding off_t() typecasting for the first parameter as you suggested fixed it. Klaus do you remember to fix it for next version without patch?
Without any problem Debian/Lenny 5.0 : gcc version 4.3.2 (Debian 4.3.2-1.1) Ubuntu/Hardy 8.04: gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Regards Oleg Roitburd
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] Copyright (C) 2008 Free Software Foundation, Inc.
I had same problem with gcc 4.3.2 on Mandriva. (x86_64 env) Adding off_t() typecasting for the first parameter as you suggested fixed it. Klaus do you remember to fix it for next version without patch?
If you're using the same compiler as I do, I don't see why such a typecast is necessary on your side, while on my side it compiles just fine.
Are you using any different compiler options than me?
At least not intentionally. I just - downloaded and extracted vdr-1.7.3.tar.bz2 - cp Make.config.template Make.config - added to Make.config: DVBDIR = < ..path to my dvb-v4l driver sources) - make --> got the error
Mika
Klaus Schmidinger a écrit :
If you're using the same compiler as I do, I don't see why such a typecast is necessary on your side, while on my side it compiles just fine.
Are you using any different compiler options than me?
Didn't I read x86_64 for Mika, when you may use x86_32, Klaus ?
On 07.01.2009 18:58, Nicolas Huillard wrote:
Klaus Schmidinger a écrit :
If you're using the same compiler as I do, I don't see why such a typecast is necessary on your side, while on my side it compiles just fine.
Are you using any different compiler options than me?
Didn't I read x86_64 for Mika, when you may use x86_32, Klaus ?
Yes, mine is a 32 bit system. I'm pretty sure that's what makes the difference.
Klaus
Hi,
Compiling on ARCH Linux x86_64 with gcc 4.3.2 also fails. So it must be the 64 bit compiler.
mfg
Edgar (gimli) Hucek
On 07.01.2009 18:58, Nicolas Huillard wrote:
Klaus Schmidinger a écrit :
If you're using the same compiler as I do, I don't see why such a typecast is necessary on your side, while on my side it compiles just fine.
Are you using any different compiler options than me?
Didn't I read x86_64 for Mika, when you may use x86_32, Klaus ?
Yes, mine is a 32 bit system. I'm pretty sure that's what makes the difference.
Klaus
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr