LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Building RPCBIND fails (https://www.linuxquestions.org/questions/linux-newbie-8/building-rpcbind-fails-920559/)

jubitaneja 12-26-2011 08:30 AM

Building RPCBIND fails
 
Hi All,

I tried to cross build RPCBIND tarball. I am finding problem in building this package. The steps I followed are :

I modified Makefile by replacing : CC=gcc by CC = arm-v7a8v2r2-linux-gnueabi-gcc

Configuration of the package done using :
./configure CC=arm-v7a8v2r2-linux-gnueabi-gcc --target=arm --build=x86 --host=arm./configure CC=arm-v7a8v2r2-linux-gnueabi-gcc --target=arm --build=x86 --host=arm

It works successfully.

Now, when I am building it using : make arch=ARM CROSS_COMPILE=arm-v7a8v2r1-linux-gnueabi-
It ends up throwing error :
In file included from check_bound.c:60:
rpcbind.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'list_rbl'
rpcbind.h:82: warning: 'struct netbuf' declared inside parameter list
rpcbind.h:82: warning: its scope is only this definition or declaration, which is probably not what you want
rpcbind.h:82: warning: 'struct netconfig' declared inside parameter list
rpcbind.h:93: error: expected declaration specifiers or '...' before 'rpcblist_ptr'
rpcbind.h:102: error: expected ')' before '*' token
rpcbind.h:103: error: expected ')' before '*' token
rpcbind.h:105: error: expected ')' before '*' token
rpcbind.h:125: warning: 'struct netbuf' declared inside parameter list
rpcbind.h:126: warning: 'struct netbuf' declared inside parameter list
rpcbind.h:135: warning: 'struct netbuf' declared inside parameter list
check_bound.c: In function 'check_bound':
check_bound.c:90: warning: implicit declaration of function 'uaddr2taddr'
check_bound.c:90: warning: assignment makes pointer from integer without a cast
check_bound.c:94: warning: implicit declaration of function '__rpc_nconf2fd'
check_bound.c:96: error: dereferencing pointer to incomplete type
check_bound.c:101: error: dereferencing pointer to incomplete type
check_bound.c:101: error: dereferencing pointer to incomplete type
check_bound.c:104: error: dereferencing pointer to incomplete type
check_bound.c: At top level:
check_bound.c:111: warning: 'struct netbuf' declared inside parameter list
check_bound.c:111: error: conflicting types for 'add_bndlist'
rpcbind.h:82: note: previous declaration of 'add_bndlist' was here
check_bound.c: In function 'add_bndlist':
check_bound.c:116: warning: implicit declaration of function 'getnetconfigent'
check_bound.c:116: error: dereferencing pointer to incomplete type
check_bound.c:116: warning: assignment makes pointer from integer without a cast
check_bound.c:121: warning: implicit declaration of function 'freenetconfigent'
check_bound.c: In function 'is_bound':
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c:146: error: dereferencing pointer to incomplete type
check_bound.c: In function 'mergeaddr':
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:165: error: dereferencing pointer to incomplete type
check_bound.c:180: warning: implicit declaration of function 'taddr2uaddr'
check_bound.c:180: warning: implicit declaration of function 'svc_getrpccaller'
check_bound.c:180: warning: assignment makes pointer from integer without a cast
check_bound.c:183: error: dereferencing pointer to incomplete type
check_bound.c:204: warning: passing argument 1 of 'addrmerge' makes pointer from integer without a cast
rpcbind.h:135: note: expected 'struct netbuf *' but argument is of type 'int'
check_bound.c: In function 'rpcbind_get_conf':
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
check_bound.c:225: error: dereferencing pointer to incomplete type
make[3]: *** [check_bound.o] Error 1
make[3]: Leaving directory `/data/akhipatel/jubi/NFS/rpcbind-0.2.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/data/akhipatel/jubi/NFS/rpcbind-0.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/akhipatel/jubi/NFS/rpcbind-0.2.0'
make: *** [all] Error

-----------------------------------
I referred one of the threads regarding the same issue: http://www.linuxquestions.org/questi...d-help-722854/

And, I have installed portmap utility and which portmap shows the output as :
/usr/bin/portmap

Can anyone help me in fixing this issue?

Thanks and Regards,
Jubi

Mahonri 01-12-2012 11:43 AM

Seeing the same errors
 
I get these same errors when I try to build rpcbind-0.2.0 on Linux. Did you ever find out where these missing headers are located?


All times are GMT -5. The time now is 02:38 AM.