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

Xiang Sheng commented on HAWQ-1283:
-----------------------------------

We do have this undeclared variable before by error.  But this undeclared 
variable was removed during this commit 
(https://github.com/apache/incubator-hawq/commit/bf4742cb6c4cd71c9174f030c54e28b8c2595942
 ) . You can check the rangerrest.c file in line 165  where you have error but 
was removed.     
If this file have the undeclared, please git pull again since the latest code 
didn't have it anymore. If no, please remove the installed content under the 
content and  'find . -name *.o' and rm all the object files. 
P.S. if you build hawq without libhdfs3 and libyarn, you should install them by 
yourself.  And you will build then first. So we don't recommend to build hawq 
without them. Thanks.

For the build with libhdfs3, I don't have any idea now.  But all the devs I met 
haven't meet this problem and they always build hawq with libhdfs3. So maybe an 
environment problem. We could investigate it more.

> error: ‘privilege’ undeclared - when make project
> -------------------------------------------------
>
>                 Key: HAWQ-1283
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1283
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: Security
>            Reporter: Devin Jia
>            Assignee: Xiang Sheng
>             Fix For: 2.2.0.0-incubating
>
>
> when i "git pull" the newest source code,and make project, encounter error:
> {quote}
> ./configure --prefix=/opt/hawq-build --enable-depend --enable-cassert 
> --enable-debug
> make install
> {quote}
> ......
> ......
> gcc -O0 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -g -ggdb  
> -I/usr/include/libxml2 -I../../../src/include -D_GNU_SOURCE  
> -I/opt/incubator-hawq/depends/libhdfs3/build/install/opt/hawq-build/include 
> -I/opt/incubator-hawq/depends/libyarn/build/install/opt/hawq-build/include  
> -c -o rangerrest.o rangerrest.c -MMD -MP -MF .deps/rangerrest.Po
> {color:red}
> rangerrest.c: In function ‘create_ranger_request_json’:
> rangerrest.c:165: error: ‘privilege’ undeclared (first use in this function)
> rangerrest.c:165: error: (Each undeclared identifier is reported only once
> rangerrest.c:165: error: for each function it appears in.)
> {color}



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

Reply via email to