From: stefano f. <ste...@gm...> - 2012-03-14 15:07:52
|
Compilation of player fails on a recently updated archlinux 64 system with: /home/stefano/builds/player/src/player-3.0.2/server/drivers/shell/readlog.cc: In member function ‘virtual void ReadLog::Main()’: /home/stefano/builds/player/src/player-3.0.2/server/drivers/shell/readlog.cc:668:43: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘gzFile’ for argument ‘1’ to ‘off_t gzseek(gzFile, off_t, int)’ /home/stefano/builds/player/src/player-3.0.2/server/drivers/shell/readlog.cc:714:62: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘gzFile’ for argument ‘1’ to ‘char* gzgets(gzFile, char*, int)’ make[2]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/__/drivers/shell/readlog.o] Error 1 make[1]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/all] Error 2 make: *** [all] Error 2 This may be related to the API change in zlib from 1.2.5 to 1.2.6, which is now installed on my system. According to another archlinux user, there has been a change in zlib.h in 1.2.6: - typedef voidp gzFile; /* opaque gzip file descriptor */ + typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */ However, this is as far as I got. I took a look at readlog.cc, but I don't know how to fix the two offending lines (assuming I got the diagnosis right). Cheers, Stefano -- __________________________________________________ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA st...@ta... http://stefano.cleinias.org |