LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-26-2011, 08:30 AM   #1
jubitaneja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Rep: Reputation: Disabled
Post 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
 
Old 01-12-2012, 11:43 AM   #2
Mahonri
Member
 
Registered: May 2007
Location: Austin, Texas, USA
Distribution: Debian Etch
Posts: 32

Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rpcbind package installation fails on centos 5.5 arun5002 Linux - Server 6 10-04-2011 07:19 AM
[SOLVED] Building custom kernel fails Bindestreck Slackware 9 08-02-2011 05:29 PM
Compiling KDE4.0 on Fedora 7 fails on building kdepimlibs-3.92.0 fooks Fedora 0 09-03-2007 08:10 AM
Building DRBD into 2.6.17 Debian Fails technick Linux - Kernel 1 08-09-2006 01:10 PM
Wine fails after building font metrics : X error postb99 Linux - Software 2 07-29-2003 02:55 PM


All times are GMT -5. The time now is 10:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration