[Slapt-get-devel] slapt-get fails to compile on slackware-current

Igor Murzov intergalactic.anonymous at gmail.com
Thu Apr 19 10:21:44 EDT 2012


On Wed, 18 Apr 2012 11:02:34 -0400
"Jason Woodward" <woodwardj at jaos.org> wrote:

> > The same warnings are shown during slapt-src compilation.
> 
> Does this fix the problem?
> 
> --- a/src/package.c
> +++ b/src/package.c
> @@ -2634,7 +2634,7 @@ void slapt_free_pkg_err_list(slapt_pkg_err_list_t *l)
> 
>  /* FIXME this sucks... it needs to check file headers and more */
>  static FILE *slapt_gunzip_file (const char *file_name,FILE *dest_file)
>  {
> -  gzFile *data = NULL;
> +  gzFile data = NULL;
>    char buffer[SLAPT_MAX_ZLIB_BUFFER];
>  
>    if (dest_file == NULL)
> 

Here is the patch to fix similar warnings in slapt-src:

--- a/src/source.c
+++ b/src/source.c
@@ -373,7 +373,7 @@ slapt_src_slackbuild_list *slapt_src_get_slackbuilds_from_file (const char *data
 
   /* support reading from gzip'd files */
   if (strstr (datafile, ".gz") != NULL) {
-    gzFile *data = NULL;
+    gzFile data = NULL;
     char gzbuffer[SLAPT_MAX_ZLIB_BUFFER];
 
     if ((f = tmpfile ()) == NULL)
-- 


More information about the Slapt-get-devel mailing list