Re: garnome build on mac os X



Ryan,

I have no knowledge of anyone porting GARNOME to Darwin. If you succeed
in doing do please post your experiences to the list.

The gamin compilation problem... 

Take a look at /usr/include/sys/stat.h.  You will find 'struct
timespec', which is what the code at line 338 was trying to reference.
The missing declaration on Darwin [I am looking at OSX-10.4.3] is:

   struct timespec st_mtim;

Try this:
(0) undo the change you made
(1) add a declaration for st_mtim somewhere in gar_poll_basic.c

Looking at the code I think you will be bitten by this problem again.
On my linux system, an FC4 clone, stat.h contains

    [ignore line wrap ]

        #ifdef __USE_MISC
            /* Nanosecond resolution timestamps are stored in a format
               equivalent to 'struct timespec'.  This is the type used
               whenever possible but the Unix namespace rules do not allow the
               identifier 'timespec' to appear in the <sys/stat.h> header.
               Therefore we have to handle the use of this header in strictly
               standard-compliant sources special.  */
            struct timespec st_atim;            /* Time of last access.  */
            struct timespec st_mtim;            /* Time of last modification.  */
            struct timespec st_ctim;            /* Time of last status change.  */
        # define st_atime st_atim.tv_sec        /* Backward compatibility.  */
        # define st_mtime st_mtim.tv_sec
        # define st_ctime st_ctim.tv_sec
        #else
            __time_t st_atime;                  /* Time of last access.  */
            unsigned long int st_atimensec;     /* Nscecs of last access.  */
            __time_t st_mtime;                  /* Time of last modification.  */
            unsigned long int st_mtimensec;     /* Nsecs of last modification.  */
            __time_t st_ctime;                  /* Time of last status change.  */
            unsigned long int st_ctimensec;     /* Nsecs of last status change.  */
        #endif

You will probably need to add declarations for st_amin and st_cmin


-Joseph

==============================================================================

On Mon, 2006-05-08 at 23:23 -0500, Ryan Barton wrote:
> When I get to the point where i need gamin it fails with this, I had to 
> rename mtim in gam_poll_basic.c to mtime but I don't know where to go 
> from here, anyone know what I can do? Has anyone ever successfully 
> compiled garnome for mac os X?
> 
> Making all in server
> make  all-am
> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../libgamin -I../protocol 
> -I../lib -I../libgamin -I/Users/smach/garnome/include/glib-2.0 
> -I/Users/smach/garnome/lib/glib-2.0/include   
> -DBINDIR=\""/Users/smach/garnome//libexec"\" -DG_DISABLE_DEPRECATED 
> -DGAM_DEBUG_ENABLED    -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare 
> -g  -MT gam_poll_basic.o -MD -MP -MF ".deps/gam_poll_basic.Tpo" -c -o 
> gam_poll_basic.o gam_poll_basic.c; \
> then mv -f ".deps/gam_poll_basic.Tpo" ".deps/gam_poll_basic.Po"; else rm 
> -f ".deps/gam_poll_basic.Tpo"; exit 1; fi
> gam_poll_basic.c: In function 'gam_poll_basic_poll_file':
> gam_poll_basic.c:338: error: request for member 'tv_sec' in something 
> not a structure or union
> gam_poll_basic.c:338: error: request for member 'tv_nsec' in something 
> not a structure or union
> gam_poll_basic.c:338: error: request for member 'tv_sec' in something 
> not a structure or union
> gam_poll_basic.c:338: error: request for member 'tv_nsec' in something 
> not a structure or union
> make[3]: *** [gam_poll_basic.o] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
-- 
joseph_sacco [at] comcast [dot] net




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