Re: [netcdfgroup] Error building netCDF-4.3.0 on OSX 10.9

Hello again,

Sorry for the noise. I just found the following:
  
http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#clang-ncgen3
and will give that a go.

<Insert dope slap>

cheers,

paulv

On Nov 1, 2013, at 10:52 AM, Paul van Delst <Paul.Vandelst@xxxxxxxx> wrote:

> Hello,
> 
> First off, apologies if this question has been asked on this list already - 
> upgrading to OSX Mavericks wiped my local mail database so I don’t have an 
> easy means to search the list locally. (Sigh). Anyhoo…
> 
> I’m building the netCDF 4.3.0 library (which I did successfully under Lion 
> and Mountain Lion) again and I’m getting the three errors shown below in the 
> "Making check in ncgen3” section of the build.
> 
> I’m not C-fluent at all but, just reading the messages, it looks like the 
> interface definition of strlcat() changed in the 10.9 version of XCode.
> 
> Is this correct? If so, I’m not sure if I should file a bug report for netCDF 
> (filing one with Apple would be pointless).
> 
> Any information or workaround tips appreciated.
> 
> paulv
> 
> Three build error output follows: 
> 
> -----%<-----
> In file included from load.c:14:
> ./genlib.h:84:15: error: expected parameter declarator
> extern size_t strlcat(char *dst, const char *src, size_t siz);
>               ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44:
>  note: 
>       expanded from macro 'strlcat'
>   __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
>                                            ^
> -----%<-----
> 
> 
> and
> 
> 
> -----%<-----
> In file included from load.c:14:
> ./genlib.h:84:15: error: expected ')'
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44:
>  note: 
>       expanded from macro 'strlcat'
>   __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
>                                            ^
> -----%<-----
> 
> 
> and
> 
> 
> -----%<-----
> In file included from load.c:14:
> ./genlib.h:84:15: error: conflicting types for '__builtin___strlcat_chk'
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3:
>  note: 
>       expanded from macro 'strlcat'
>   __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
>   ^
> ./genlib.h:84:15: note: '__builtin___strlcat_chk' is a builtin with type 
> 'unsigned long (char *, const char *, unsigned
>       long, unsigned long)'
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3:
>  note: 
>       expanded from macro 'strlcat'
>   __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
>   ^
> 1 warning and 3 errors generated.
> make[1]: *** [load.o] Error 1
> make: *** [check-recursive] Error 1
> -----%<-----
> 
> 

  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: