Re: [Patch] gio-standalone build fail with suncc because retrun value in void function

Alexander Larsson <[email protected]>
Newsgroups gmane.comp.gnome.vfs.general
Message-ID <[email protected]>
On Wed, 2007-11-07 at 20:08 +0900, Takao Fujiwara wrote:
> I thought it's a handy fix since we(each vendor) owns our .spec files.
> 
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/head/grp.h
> _POSIX_PTHREAD_SEMANTICS is defined in Sun's /usr/include/grp.h :
> --------------
>   * NOTE: Support for the Draft 6 definitions is provided for compatibility
>   * only.  New applications/libraries should use the standard definitions.
> 
> #if     (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS)
> 
> #ifdef __PRAGMA_REDEFINE_EXTNAME
> #pragma redefine_extname getgrgid_r __posix_getgrgid_r
> #pragma redefine_extname getgrnam_r __posix_getgrnam_r
> extern int getgrgid_r(gid_t, struct group *, char *, int, struct group **);
> extern int getgrnam_r(const char *, struct group *, char *, int,
>                                                          struct group **);
> #else  /* __PRAGMA_REDEFINE_EXTNAME */
> 
> extern int __posix_getgrgid_r(gid_t, struct group *, char *, size_t,
>      struct group **);
> extern int __posix_getgrnam_r(const char *, struct group *, char *, size_t,
>      struct group **);
> --------------
> 
> I just thought gio is implemented on the standard POSIX.

Its implemented on actual operating systems, not theoretical standards.
And as such we need to handle things like deviations from POSIX.

>  > "glocalfile.c", line 748: unexpected "("
>  > "glocalfile.c", line 777: undefined symbol: unescaped_path
>  >
> 
> Is this a bug? or does your system has the extern 'unescaped_path' ?

This should be fixed in svn.
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.