[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: A complaint about glib-2.6 in libgeda



A little more info:  The offending fcn is g_unlink.  It appears here:

    /* Delete the backup file */
    if ( (g_file_test (backup_filename, G_FILE_TEST_EXISTS)) &&
         (!g_file_test(backup_filename, G_FILE_TEST_IS_DIR)) )
    {
      if (g_unlink(backup_filename) != 0) {
        s_log_message("s_page_delete: Unable to delete backup file %s.", backup_filename);      }
    }
    g_free (dirname);
    g_free (only_filename);
    g_free (backup_filename);


I guess this is the autosave stuff.  Is there a glib-2.2 version of
g_unlink? 

Stuart


> 
> Hi --
> 
> I am trying to build gEDA/gaf on my old, creaky FC1 box.  I downloaded
> the latest from CVS.  I have found that libgeda/s_page.nw includes
> this preprocessor directive:
> 
> #include <glib.h>
> #include <glib/gstdio.h>
> 
> However, gstdio doesn't exist on my machine.  I believe it is
> from glib-2.6.X.  IIRC, Ales says that gEDA/gaf requires only
> glib-2.2.  Therefore, this #include shouldn't be there.
> 
> FWIW, when I remove it on my machine I am able to compile
> successfully.  I haven't tried running any gEDA/gaf applications yet.  
> 
> Is there are reason for gstdio to be used?  Do older, equivalent
> functions exist which don't require gstdio.h?  Or am I totally wrong
> about all this?
> 
> Thx,
> 
> Stuart
> 
>