On 6/21/14, 4:36 PM, Alexander Hansen wrote:
> OS 10.9.3
> Xcode (CLI tools) 5.1
>
> I got the following:
>
> Making all in common
>    CXX      UnicodeConversions.lo
>    CXX      XML_Node.lo
>    CXX      LargeFileAccess.lo
>    CXX      XMP_LibUtils.lo
> LargeFileAccess.cpp:856:24: error: use of undeclared identifier
> 'malloc'; did
>        you mean 'valloc'?
>                  char* rsrc = (char*)
> malloc((strlen(filePath)+strlen(suf...
>                                       ^~~~~~
>                                       valloc
> /usr/include/unistd.h:707:7: note: 'valloc' declared here
> void    *valloc(size_t);
>           ^
> LargeFileAccess.cpp:869:3: error: use of undeclared identifier 'free'
>                  free ( rsrc );
>
> This looks like the fairly common situation where #include <stdlib.h>
> has to be added explicitly in the appropriate file(s) for the build to
> work on 10.9.

Following up: patching source/common/LargeFileAccess.cpp to have a 
#include <stdlib.h> did indeed allow the build to finish.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to