Chris Frey wrote: > On Mon, Jul 23, 2007 at 10:39:44AM -0400, Austin wrote: >> Hi everyone. The current cvs is not building on Mandriva linux. > > Thanks for the bug report! > > What platform are you building on? 64 bit? 32 bit? > > Also, could you find the libtar.h on your system and send it to me? > I'm curious why file handles have suddenly changed from int to long int. > > Also, what prototype is documented in "man 2 read" on your system? I have: > ssize_t read(int fd, void *buf, size_t count);
http://www.pastebin.ca/641380 >> tarfile-ops-nt.cc:107: error: invalid conversion from 'int (*)(int)' to >> 'int (*)(long int)' >> tarfile-ops-nt.cc:107: error: invalid conversion from 'ssize_t (*)(int, >> void*, size_t)' to 'ssize_t (*)(long int, void*, size_t)' >> tarfile-ops-nt.cc:107: error: invalid conversion from 'ssize_t (*)(int, >> const void*, size_t)' to 'ssize_t (*)(long int, const void*, size_t)' > > > These are function prototype / pointer problems... the following patch > should fix it for your system, but I'd like to better understand > why this is needed before I fix CVS. > > - Chris > > > retrieving revision 1.1 > diff -u -r1.1 tarfile-ops-nt.cc > --- tarfile-ops-nt.cc 2 Feb 2007 03:07:23 -0000 1.1 > +++ tarfile-ops-nt.cc 23 Jul 2007 18:03:16 -0000 > @@ -73,7 +73,7 @@ > return index; > } > > - int close_compressed(int fd) > + int close_compressed(long fd) > { > unsigned int ufd = fd; > assert( ufd < gzArraySize ); > @@ -82,14 +82,14 @@ > return ret; > } > > - ssize_t read_compressed(int fd, void *buf, size_t size) > + ssize_t read_compressed(long fd, void *buf, size_t size) > { > unsigned int ufd = fd; > assert( ufd < gzArraySize ); > return gzread(gzHandles[ufd], buf, size); > } > > - ssize_t write_compressed(int fd, const void *buf, size_t size) > + ssize_t write_compressed(long fd, const void *buf, size_t size) > { > unsigned int ufd = fd; > assert( ufd < gzArraySize ); > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Barry-devel mailing list > Barry-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/barry-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel