Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Portmap compile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Alibloke
n00b
n00b


Joined: 04 Feb 2008
Posts: 3

PostPosted: Mon Feb 04, 2008 1:12 pm    Post subject: [solved] Portmap compile error Reply with quote

Hi guys,

I hope you can help me with this issue - it's driving me crazy! I've been unable to compile portmap for several weeks now, it seems to be missing rpc headers, but furious googling just isn't coming up with the goods. Here is the build log:

Code:
>>> Unpacking source...
>>> Unpacking portmap-6.0.tgz to /var/tmp/portage/net-nds/portmap-6.0/work
 * Applying portmap-6.0-tcpd.patch ...
  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-nds/portmap-6.0/work/portmap_6.0 ...
i686-pc-linux-gnu-gcc -MM -O2 -march=prescott -pipe -Wall -Wstrict-prototypes *.c > .depend
i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe -Wall -Wstrict-prototypes -fpie -DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD     -DFACILITY=LOG_DAEMON   -c -
o portmap.o portmap.c
i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe -Wall -Wstrict-prototypes -fpie -DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD     -DFACILITY=LOG_DAEMON   -c -
o pmap_check.o pmap_check.c
i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe -Wall -Wstrict-prototypes -fpie -DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD     -DFACILITY=LOG_DAEMON   -c -
o from_local.o from_local.c
i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe -Wall -Wstrict-prototypes -DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD   -DFACILITY=LOG_DAEMON   -c -o pmap_d
ump.o pmap_dump.c
i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe -Wall -Wstrict-prototypes -DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD   -DFACILITY=LOG_DAEMON   -c -o pmap_s
et.o pmap_set.c
sed -e 's/RPCUSER//' -e 's/DAEMON_UID/1/' -e 's/DAEMON_GID/1/' < portmap.8 > portmap.man
pmap_check.c:38:21: error: rpc/rpc.h: No such file or directory
In file included from pmap_check.c:39:
/usr/include/rpc/pmap_prot.h:43:21: error: rpc/xdr.h: No such file or directory
portmap.c:79:21: error: rpc/rpc.h: No such file or directory
In file included from portmap.c:80:
/usr/include/rpc/pmap_prot.h:43:21: error: rpc/xdr.h: No such file or directory
In file included from portmap.c:80:
/usr/include/rpc/pmap_prot.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xdr_pmap'
/usr/include/rpc/pmap_prot.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xdr_pmaplist'
pmap_dump.c:16:21: error: rpc/rpc.h: No such file or directory
In file included from pmap_dump.c:17:
/usr/include/rpc/pmap_clnt.h:42:23: error: rpc/types.h: No such file or directory
/usr/include/rpc/pmap_clnt.h:43:21: error: rpc/xdr.h: No such file or directory
pmap_set.c:13:21: error: rpc/rpc.h: No such file or directory
In file included from pmap_set.c:14:
/usr/include/rpc/pmap_clnt.h:42:23: error: rpc/types.h: No such file or directory
/usr/include/rpc/pmap_clnt.h:43:21: error: rpc/xdr.h: No such file or directory
distcc[21995] ERROR: compile pmap_check.c on 192.168.1.2:3633 failed
make: *** [pmap_check.o] Error 1
make: *** Waiting for unfinished jobs....
portmap.c:119: error: expected declaration specifiers or '...' before 'SVCXPRT'
portmap.c:119: warning: 'struct svc_req' declared inside parameter list
portmap.c:119: warning: its scope is only this definition or declaration, which is probably not what you want
portmap.c:123: error: expected declaration specifiers or '...' before 'SVCXPRT'
portmap.c:123: warning: 'struct svc_req' declared inside parameter list
portmap.c: In function 'main':
portmap.c:175: error: 'SVCXPRT' undeclared (first use in this function)
portmap.c:175: error: (Each undeclared identifier is reported only once
portmap.c:175: error: for each function it appears in.)
portmap.c:175: error: 'xprt' undeclared (first use in this function)
portmap.c:251: warning: implicit declaration of function 'strerror'
portmap.c:251: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
portmap.c:283: warning: implicit declaration of function 'memset'
portmap.c:283: warning: incompatible implicit declaration of built-in function 'memset'
portmap.c:288: warning: implicit declaration of function 'memcpy'
portmap.c:288: warning: incompatible implicit declaration of built-in function 'memcpy'
portmap.c:295: warning: implicit declaration of function 'svcudp_create'
portmap.c:295: error: expected expression before ')' token
portmap.c:321: warning: implicit declaration of function 'svctcp_create'
portmap.c:321: error: 'RPCSMALLMSGSIZE' undeclared (first use in this function)
portmap.c:322: error: expected expression before ')' token
portmap.c:370: warning: implicit declaration of function 'svc_register'
portmap.c:370: error: 'FALSE' undeclared (first use in this function)
portmap.c:389: warning: implicit declaration of function 'svc_run'
portmap.c: At top level:
portmap.c:421: error: expected declaration specifiers or '...' before 'SVCXPRT'
portmap.c:421: warning: 'struct svc_req' declared inside parameter list
portmap.c:422: error: conflicting types for 'reg_service'
portmap.c:119: error: previous declaration of 'reg_service' was here
portmap.c: In function 'reg_service':
portmap.c:438: error: dereferencing pointer to incomplete type
portmap.c:445: warning: implicit declaration of function 'svc_getrpccaller'
portmap.c:445: error: 'xprt' undeclared (first use in this function)
portmap.c:445: error: dereferencing pointer to incomplete type
portmap.c:445: warning: passing argument 1 of 'check_default' makes pointer from integer without a cast
portmap.c:446: warning: implicit declaration of function 'svc_sendreply'
portmap.c:446: error: 'xdrproc_t' undeclared (first use in this function)
portmap.c:446: error: expected ')' before 'xdr_void'
portmap.c:456: warning: implicit declaration of function 'svc_getargs'
portmap.c:456: error: expected ')' before 'xdr_pmap'
portmap.c:457: warning: implicit declaration of function 'svcerr_decode'
portmap.c:460: error: dereferencing pointer to incomplete type
portmap.c:460: warning: passing argument 1 of 'check_setunset' makes pointer from integer without a cast
portmap.c:488: error: invalid type argument of '->'
portmap.c:504: error: expected ')' before 'xdr_int'
portmap.c:517: error: expected ')' before 'xdr_pmap'
portmap.c:522: error: dereferencing pointer to incomplete type
portmap.c:522: warning: passing argument 1 of 'check_setunset' makes pointer from integer without a cast
portmap.c:536: error: dereferencing pointer to incomplete type
portmap.c:538: warning: passing argument 1 of 'check_privileged_port' makes pointer from integer without a cast
portmap.c:544: error: invalid type argument of '->'
portmap.c:560: error: expected ')' before 'xdr_int'
portmap.c:573: error: expected ')' before 'xdr_pmap'
portmap.c:578: error: dereferencing pointer to incomplete type
portmap.c:579: warning: passing argument 1 of 'check_default' makes pointer from integer without a cast
portmap.c:588: error: expected ')' before 'xdr_int'
portmap.c:601: error: expected ')' before 'xdr_void'
portmap.c:607: error: dereferencing pointer to incomplete type
portmap.c:607: warning: passing argument 1 of 'check_default' makes pointer from integer without a cast
portmap.c:612: error: expected ')' before 'xdr_pmaplist'
portmap.c:628: warning: passing argument 1 of 'callit' from incompatible pointer type
portmap.c:628: error: too many arguments to function 'callit'
portmap.c:633: error: dereferencing pointer to incomplete type
portmap.c:633: warning: passing argument 1 of 'check_default' makes pointer from integer without a cast
portmap.c:634: warning: implicit declaration of function 'svcerr_noproc'
portmap.c: At top level:
portmap.c:651: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xdr_encap_parms'
portmap.c:666: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xdr_rmtcall_args'
portmap.c:679: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xdr_rmtcall_result'
portmap.c:691: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xdr_opaque_parms'
portmap.c:702: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xdr_len_opaque_parms'
portmap.c:732: error: expected declaration specifiers or '...' before 'SVCXPRT'
portmap.c:732: warning: 'struct svc_req' declared inside parameter list
portmap.c:733: error: conflicting types for 'callit'
portmap.c:123: error: previous declaration of 'callit' was here
portmap.c: In function 'callit':
portmap.c:739: error: 'CLIENT' undeclared (first use in this function)
portmap.c:739: error: 'client' undeclared (first use in this function)
portmap.c:740: error: dereferencing pointer to incomplete type
portmap.c:747: error: 'xprt' undeclared (first use in this function)
portmap.c:747: error: 'xdrproc_t' undeclared (first use in this function)
portmap.c:747: error: expected ')' before 'xdr_rmtcall_args'
portmap.c:751: error: dereferencing pointer to incomplete type
portmap.c:751: warning: passing argument 1 of 'check_callit' makes pointer from integer without a cast
portmap.c:767: warning: implicit declaration of function 'get_myaddress'
portmap.c:769: warning: implicit declaration of function 'clntudp_create'
portmap.c:770: error: expected expression before ')' token
portmap.c:771: error: dereferencing pointer to incomplete type
portmap.c:772: warning: implicit declaration of function 'authunix_create'
portmap.c:772: error: dereferencing pointer to incomplete type
portmap.c:773: error: dereferencing pointer to incomplete type
portmap.c:773: error: dereferencing pointer to incomplete type
portmap.c:773: error: dereferencing pointer to incomplete type
portmap.c:773: error: dereferencing pointer to incomplete type
portmap.c:776: warning: implicit declaration of function 'clnt_call'
portmap.c:776: error: expected ')' before 'xdr_opaque_parms'
portmap.c:778: error: 'RPC_SUCCESS' undeclared (first use in this function)
portmap.c:779: error: expected ')' before 'xdr_rmtcall_result'
portmap.c:782: warning: implicit declaration of function 'AUTH_DESTROY'
portmap.c:783: warning: implicit declaration of function 'clnt_destroy'
distcc[22003] ERROR: compile pmap_set.c on 192.168.1.2:3633 failed
make: *** [pmap_set.o] Error 1
distcc[21994] ERROR: compile portmap.c on localhost failed
make: *** [portmap.o] Error 1
distcc[22001] ERROR: compile pmap_dump.c on 192.168.1.2:3633 failed
make: *** [pmap_dump.o] Error 1
 *
 * ERROR: net-nds/portmap-6.0 failed.
 * Call stack:
 *            ebuild.sh, line 1701:  Called dyn_compile
 *            ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *            ebuild.sh, line   44:  Called src_compile
 *   portmap-6.0.ebuild, line   36:  Called die
 * The specific snippet of code:
*      emake NO_TCP_WRAPPER="$(use tcpd || echo NO)" || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-nds/portmap-6.0/temp/build.log'.
 *


Here is my emerge --info:

Code:
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686)
=================================================================
System uname: 2.6.23-gentoo-r6 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Timestamp of tree: Sun, 03 Feb 2008 17:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com"
LINGUAS="en_GB en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa ao apm audiofile autostart bash-completion bitmap-fonts bluetooth bzip2 cairo caps ccache cddb cdparanoia cdr clamav cli cpudetection cracklib crypt ctype cups dbase dbus dedicated dri dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg firefox flac fortran frontendonly ftp gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal hddtemp iconv ipod isdnlog java javascript jpeg jpeg2k kerberos lame ldap lm_sensors mad maildir matroska midi mikmod mmx mmxext mp2 mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nxclient ogg openal opengl openmp oss pam pcre pdf perl png pnm posix pppd python qt3support quicktime readline real reflection samba sdl sdlmad session smp speex spell spl sse sse2 ssl svg svga syslog tcpd theora threads tiff truetype truetype-fonts type1 type1-fonts unicode usb vidix vim-syntax vorbis win32codecs wmf x264 x86 xanim xinetd xml xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="nvidia i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Just should if you need any more info.

Thanks,


Last edited by Alibloke on Mon Feb 04, 2008 5:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Mon Feb 04, 2008 4:25 pm    Post subject: Reply with quote

Code:
...
pmap_check.c:38:21: error: rpc/rpc.h: No such file or directory
In file included from pmap_check.c:39:
/usr/include/rpc/pmap_prot.h:43:21: error: rpc/xdr.h: No such file or directory
...

This (rpc/rpc.h) file seems to be missing or is not found - as well as (rpc/xdr.h).
This file is installed by sys-libs/glibc AFAIK and it should be there.
Is it?

HTH
_________________
Cheers
Back to top
View user's profile Send private message
Alibloke
n00b
n00b


Joined: 04 Feb 2008
Posts: 3

PostPosted: Mon Feb 04, 2008 4:39 pm    Post subject: Reply with quote

I don't think it is on my system, a quick locate shows:

Code:
ali@trent ~ $ locate rpc.h
/usr/include/gssrpc/rpc.h
/usr/include/libmsrpc.h
/usr/include/ptclib/pxmlrpc.h
/usr/include/wine/windows/rpc.h
/usr/src/linux-2.6.23-gentoo-r6/include/config/sunrpc.h
/usr/src/linux-2.6.23-gentoo-r6/include/linux/rxrpc.h
/usr/src/linux-2.6.23-gentoo-r6/include/net/af_rxrpc.h
/usr/src/linux-2.6.23-gentoo-r6/net/atm/lec_arpc.h


I'm re-emerging glibc just in case.....
Back to top
View user's profile Send private message
Alibloke
n00b
n00b


Joined: 04 Feb 2008
Posts: 3

PostPosted: Mon Feb 04, 2008 5:04 pm    Post subject: Reply with quote

Woohoo - Re-emerging glibc fixed it, nice work......although I wonder why it didn't install properly last time?
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Mon Feb 04, 2008 5:11 pm    Post subject: Reply with quote

Nice it works now - I would'nt know why it was not installed properly... ;)
You could find some clues by looking through the emerge logs if you have them:
in
/var/log and /var/log/portage
_________________
Cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum