[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Link against libtirpc
From:       Zachary Kotlarek <zach () kotlarek ! com>
Date:       2011-07-11 5:40:41
Message-ID: 8BC57E68-D699-445A-A39D-D10C3ADF3131 () kotlarek ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Jul 10, 2011, at 11:53 PM, Mike Frysinger wrote:

> since this is going to hit many people, we probably want to add some helper 
> code to the build system.


I agree, it's going to be a problem eventual. But at least
for the time being most distros are reverting the removal of
the NIS/RPC headers and functions. Beside being a hassle,
libtirpc is not quite ready to be a full replacement -- libtirpc
itself requires some of the NIS headers that glibc-2.14
removes.


> when i looked at the builds, busybox only needed the headers.  what symbols 
> did you find busybox needed and were provided by -ltirpc ?


It looks like:
	pmap_*
	xdr_*
	clnt_*
	bindresvport
	authunix_create_default
which occur in mount and inetd.

The linking portion of the build log follows:

Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused \
-Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes \
-Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition \
-fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections \
-fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc \
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os -static -o \
busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group \
applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a \
coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a \
editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a \
mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a \
networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a \
runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a \
util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o \
console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o \
debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o \
init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o \
mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o \
networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o \
procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o \
sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o \
-Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group ==========
networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x3f): warning: Using 'getaddrinfo' in statically linked \
applications requires at runtime the shared libraries from the glibc version used for \
linking networking/lib.a(ipcalc.o): In function `ipcalc_main':
ipcalc.c:(.text.ipcalc_main+0x201): warning: Using 'gethostbyaddr' in statically \
linked applications requires at runtime the shared libraries from the glibc version \
used for linking util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xd4): warning: Using 'gethostbyname' in statically linked \
applications requires at runtime the shared libraries from the glibc version used for \
linking networking/lib.a(inetd.o): In function `reread_config_file':
inetd.c:(.text.reread_config_file+0x75b): warning: Using 'getservbyname' in \
statically linked applications requires at runtime the shared libraries from the \
glibc version used for linking networking/lib.a(netstat.o): In function \
`ip_port_str': netstat.c:(.text.ip_port_str+0x3e): warning: Using 'getservbyport' in \
statically linked applications requires at runtime the shared libraries from the \
glibc version used for linking networking/lib.a(inetd.o): In function \
`reread_config_file': inetd.c:(.text.reread_config_file+0x6dd): warning: Using \
'getrpcbyname' in statically linked applications requires at runtime the shared \
libraries from the glibc version used for linking networking/lib.a(inetd.o): In \
function `unregister_rpc': inetd.c:(.text.unregister_rpc+0x1f): undefined reference \
to `pmap_unset' networking/lib.a(inetd.o): In function `register_rpc':
inetd.c:(.text.register_rpc+0x57): undefined reference to `pmap_unset'
inetd.c:(.text.register_rpc+0x73): undefined reference to `pmap_set'
networking/lib.a(inetd.o): In function `prepare_socket_fd':
inetd.c:(.text.prepare_socket_fd+0x7a): undefined reference to `bindresvport'
util-linux/lib.a(mount.o): In function `xdr_fhstatus':
mount.c:(.text.xdr_fhstatus+0xb): undefined reference to `xdr_u_int'
mount.c:(.text.xdr_fhstatus+0x2a): undefined reference to `xdr_opaque'
util-linux/lib.a(mount.o): In function `xdr_dirpath':
mount.c:(.text.xdr_dirpath+0x6): undefined reference to `xdr_string'
util-linux/lib.a(mount.o): In function `xdr_mountres3':
mount.c:(.text.xdr_mountres3+0xa): undefined reference to `xdr_enum'
mount.c:(.text.xdr_mountres3+0x29): undefined reference to `xdr_bytes'
mount.c:(.text.xdr_mountres3+0x42): undefined reference to `xdr_int'
mount.c:(.text.xdr_mountres3+0x50): undefined reference to `xdr_array'
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0x800): undefined reference to `pmap_getmaps'
mount.c:(.text.nfsmount+0x99b): undefined reference to `clntudp_create'
mount.c:(.text.nfsmount+0x9ec): undefined reference to `clnttcp_create'
mount.c:(.text.nfsmount+0xa13): undefined reference to `clnt_spcreateerror'
mount.c:(.text.nfsmount+0xa25): undefined reference to `authunix_create_default'
mount.c:(.text.nfsmount+0xaa8): undefined reference to `clnt_sperror'
mount.c:(.text.nfsmount+0xacf): undefined reference to `clnt_sperror'
mount.c:(.text.nfsmount+0xc62): undefined reference to `bindresvport'
mount.c:(.text.nfsmount+0xcab): undefined reference to `pmap_getport'
collect2: ld returned 1 exit status
make[2]: *** [busybox_unstripped] Error 1
make[2]: Leaving directory `/usr/src/busybox/busybox-1.18.5'
make[1]: *** [comp] Error 2
make[1]: Leaving directory `/usr/src/busybox'
make: *** [all] Error 2


["smime.p7s" (smime.p7s)]

0	*H
 010	+0	*H
 +0'0 0
	*H
010	UUS1
0UIowa10
UAnkeny10U
Zachary P. Kotlarek10Uuberzach.com1 0	*H
	zach@kotlarek.com0
080813225558Z
130812225558Z010	UUS1
0UIowa10
UAnkeny10U
Zachary P. Kotlarek10UZachary P. Kotlarek1 0	*H
	zach@kotlarek.com0"0
	*H
0
m	{']0y|%C/
vF۸۴'CKz \
ayJ?2Ӯ?|hJ-=RL<h\̗׉QA߽*(G>/x<f7ʝb4
 Nn}W޳@)~չ%8'd[c~N)ch&Aɑof/!9惧V-{%r=܋t";h
 =t0% Z:<a_.yU0/򤦕]؈$XլC">[l} YZ򘀬_ZR.cш?
&3m p*m0A;kh9%$ƥ4mɄP!q=x0u@Q#g~|@Dr|Y!SD \
}A0RIB𙚟r81w v47BrDYv7eƧT%l6gSU04q \
k?wiPC00	U00,	`HB OpenSSL Generated \
Certificate0Uzwv~	J0U#0)N\g-z1jjS0U0zach@kotlarek.com0
 	*H
>T9d
1;KHBYe <Y%qU8q,>XYfal|0EaT89Gj'U5
 :>MsWFg Iiap"[iy!*IJ \
mljû6!߱Bo?j1'~igބڕMV)`-\!Q~/pŰ罋sAR6 \
E?됲pv5%^7*1:|?+=g!f`}f*	ЎqTŷJcZFwMN˓./2r;?!86'+Zaz}5m]C)P*/0X+Y[|/=Yn4k \
wDV~JyJ~<4uSSd"W5ݕdjJ(Vۘ@_ֹe\O
 p2zWGu ;|,f
EE1}w1Q0M0010	UUS1
0UIowa10
UAnkeny10U
Zachary P. Kotlarek10Uuberzach.com1 0	*H
	zach@kotlarek.com0	+ 0	*H
	1	*H
0	*H
	1
110711054042Z0#	*H
	1Lb-ArsR!3<0	+710010	UUS1
0UIowa10
UAnkeny10U
Zachary P. Kotlarek10Uuberzach.com1 0	*H
	zach@kotlarek.com0*H
	1 010	UUS1
0UIowa10
UAnkeny10U
Zachary P. Kotlarek10Uuberzach.com1 0	*H
	zach@kotlarek.com0
	*H
g1UqNJrHI=pd|7fZ0.ܧhG"~ok(plB߂>ֶnF	,ճizC	aSMFca֖0#2Ph \
ӄء &# 0(%5	@gvߍy}<-Ь-ro︭ie0CuCFt}i \
gwѡ/.'T:&1Kxo@^\Y98iBnl \
e,`oD>S9֘)na$^%VmX64v7չ \
[L*>W}%onٵo`2leL,'*Ҹ?68Q.lnr~1|{{qҚ<91fxtGpxiu
 ؙh=IRQ{$!r(JXp	xs&ײ {_]=



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic