[ 
https://issues.apache.org/jira/browse/HAWQ-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15343868#comment-15343868
 ] 

Paul Guo commented on HAWQ-847:
-------------------------------

Hi Ming,

I tried building the whole hawq with plr support on mac, and it runs well. 
Commands see below.
brew tap homebrew/science
brew install r
./configure --with-r
make -j4

DLSUFFIX was defined in src/Makefile.port which is linked to a platform 
dependent makefile. 
lrwxr-xr-x   1 pguo  staff    32B Jun 22 14:00 Makefile.port -> 
../src/makefiles/Makefile.darwin
The link was created during configure.

Please check whether this file exist, else you could rerun configure.

I probably saw the Makefile.port link breakage long time ago, but did not look 
into it at that time.


> Build PLR error on Mac
> ----------------------
>
>                 Key: HAWQ-847
>                 URL: https://issues.apache.org/jira/browse/HAWQ-847
>             Project: Apache HAWQ
>          Issue Type: Bug
>            Reporter: Ming LI
>            Assignee: Lei Chang
>
> Reproduce steps:
> 1) download and install R-3.1.3.pkg from https://www.r-project.org/
> 2) set env variable:
> export R_HOME=/Library/Frameworks/R.framework/Resources
> 3) ./configure --with-r
> 4) make
> Error occurs:
> gcc -O0 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -g -ggdb  
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2
>   -I"/Library/Frameworks/R.framework/Resources"/include -I. 
> -I../../../src/include  
> -I/Users/mili/workspace/hawq2/apache-hawq/depends/libhdfs3/build/install/Users/mili/workspace/hawq2/hawq-db-devel/include
>  
> -I/Users/mili/workspace/hawq2/apache-hawq/depends/libyarn/build/install/Users/mili/workspace/hawq2/hawq-db-devel/include
>   -c -o pg_backend_support.o pg_backend_support.c
> pg_backend_support.c:296:2: error: "DLSUFFIX must be defined to compile this 
> file."
> #error "DLSUFFIX must be defined to compile this file."
>  ^
> pg_backend_support.c:333:37: error: use of undeclared identifier 'DLSUFFIX'
>         new = palloc(strlen(name) + strlen(DLSUFFIX) + 1);
>                                            ^
> pg_backend_support.c:335:14: error: use of undeclared identifier 'DLSUFFIX'
>         strcat(new, DLSUFFIX);
>                     ^
> 3 errors generated.
> make[3]: *** [pg_backend_support.o] Error 1
> make[2]: *** [all] Error 1
> make[1]: *** [all] Error 2
> make: *** [all] Error 2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to