[ playerstage-Bugs-3541173 ] Readlog incompatible with zlib 1.2.6

SourceForge.net <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Bugs item #3541173, was opened at 2012-07-07 10:37
Message generated for change (Tracker Item Submitted) made by jpgr87
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3541173&group_id=42445

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: player
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Rich Mattes (jpgr87)
Assigned to: Rich Mattes (jpgr87)
Summary: Readlog incompatible with zlib 1.2.6

Initial Comment:

/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 */ 


Fix:
668c668
<         ret = gzseek(this->file,0,SEEK_SET);
---
>         ret = gzseek((gzFile)this->file,0,SEEK_SET);
714c714
<         ret = (gzgets(this->file, this->line, this->line_size) == NULL);
---
>         ret = (gzgets((gzFile)this->file, this->line, this->line_size) == NULL);

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3541173&group_id=42445

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Playerstage-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.