[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Private copy build problem

From: Dave Hanson <drhanson_at_gmail.com>
Date: 2004-10-21 16:08:57 CEST

On Thu, 21 Oct 2004 09:10:29 +0200, Ulrich Eckhardt
<eckhardt@satorlaser.com> wrote:
> David Hanson wrote:
> > I tried building a private copy of subversion 1.1.0 on Redhat Linux using:
> >
> > ./configure --enable-all-static --prefix=$HOME
> > make
> >
> > The make failed with errors in compiling one of the Kerberos
> > libraries. Is this supposed to work? If not, what's the recommended
> > way to build a private copy?
>
> I did the same, but not using static linking. Had to setup PATH,
> LD_LIBRARY_PATH, CPPFLAGS and the like, but it works.
>
> Maybe you should give an error message, btw.
>

Turns out I used the dynamic link libaries and sent LD_LIBRARY_PATH,
and it all seems to work. You're correct, however, I should have
included the error message; for the record, they appear below. Looks
like I need to horse with some flags to get --enable-all-static to
work, which I'd still like to figure out.
Thanks,
Dave H

cd subversion/clients/cmdline && /bin/sh
/u/drh/pkg/subversion-1.1.0/libtool --silent --mode=link gcc
-all-static -g -O2 -g -O2 -pthread -DNEON_ZLIB -rpath /u/drh/lib
-o svn add-cmd.o blame-cmd.o cat-cmd.o checkout-cmd.o cleanup-cmd.o
commit-cmd.o copy-cmd.o delete-cmd.o diff-cmd.o export-cmd.o
help-cmd.o import-cmd.o info-cmd.o log-cmd.o ls-cmd.o main.o
merge-cmd.o mkdir-cmd.o move-cmd.o notify.o prompt.o propdel-cmd.o
propedit-cmd.o propget-cmd.o proplist-cmd.o props.o propset-cmd.o
resolved-cmd.o revert-cmd.o status-cmd.o status.o switch-cmd.o
update-cmd.o util.o
../../../subversion/libsvn_client/libsvn_client-1.la
../../../subversion/libsvn_wc/libsvn_wc-1.la
../../../subversion/libsvn_ra/libsvn_ra-1.la
../../../subversion/libsvn_delta/libsvn_delta-1.la
../../../subversion/libsvn_subr/libsvn_subr-1.la
/u/drh/pkg/subversion-1.1.0/apr-util/libaprutil-0.la -lgdbm -ldb-4.1
-lexpat /u/drh/pkg/subversion-1.1.0/apr/libapr-0.la -lrt -lm -lcrypt
-lnsl -lpthread -ldl /u/drh/pkg/subversion-1.1.0/neon/src/libneon.la
-L/u/drh/lib -lz -L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lxml2 -lz -lpthread -lm
/u/drh/pkg/subversion-1.1.0/apr/.libs/libapr-0.a(dso.o)(.text+0x91):
In function `apr_dso_load':
/u/drh/pkg/subversion-1.1.0/apr/dso/unix/dso.c:137: Using 'dlopen' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/kerberos/lib/libgssapi_krb5.a(import_name.o)(.text+0x362): In
function `krb5_gss_import_name':
: Using 'getpwuid' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/u/drh/pkg/subversion-1.1.0/apr/.libs/libapr-0.a(userinfo.o)(.text+0x19):
In function `getpwnam_safe':
/u/drh/pkg/subversion-1.1.0/apr/user/unix/userinfo.c:41: Using
'getpwnam_r' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/u/drh/pkg/subversion-1.1.0/apr/.libs/libapr-0.a(userinfo.o)(.text+0x100):
In function `apr_uid_name_get':
/u/drh/pkg/subversion-1.1.0/apr/user/unix/userinfo.c:117: Using
'getpwuid_r' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/u/drh/pkg/subversion-1.1.0/apr/.libs/libapr-0.a(sockaddr.o)(.text+0x4f3):
In function `call_resolver':
/u/drh/pkg/subversion-1.1.0/apr/network_io/unix/sockaddr.c:359: Using
'getaddrinfo' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/usr/kerberos/lib/libkrb5.a(fcc_gennew.o)(.text+0x6c): In function
`krb5_fcc_generate_new':
: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/kerberos/lib/libkrb5.a(sn2princ.o)(.text+0x22b): In function
`krb5_sname_to_principal':
: Using 'gethostbyaddr' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/usr/kerberos/lib/libkrb5.a(def_realm.o)(.text+0x162): In function
`krb5_get_default_realm':
: Using 'gethostbyname' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/u/drh/pkg/subversion-1.1.0/apr/.libs/libapr-0.a(sockaddr.o)(.text+0x81f):
In function `apr_getservbyname':
/u/drh/pkg/subversion-1.1.0/apr/network_io/unix/sockaddr.c:714: Using
'getservbyname' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/usr/kerberos/lib/libkrb5.a(hst_realm.o)(.text+0x9d): In function
`krb5_try_realm_txt_rr':
: undefined reference to `__res_search'
/usr/kerberos/lib/libkrb5.a(hst_realm.o)(.text+0x131): In function
`krb5_try_realm_txt_rr':
: undefined reference to `__dn_expand'
/usr/kerberos/lib/libkrb5.a(hst_realm.o)(.text+0x1ae): In function
`krb5_try_realm_txt_rr':
: undefined reference to `__dn_expand'
/usr/kerberos/lib/libkrb5.a(locate_kdc.o)(.text+0x859): In function
`krb5_locate_srv_dns':
: undefined reference to `__res_search'
/usr/kerberos/lib/libkrb5.a(locate_kdc.o)(.text+0x8dd): In function
`krb5_locate_srv_dns':
: undefined reference to `__dn_expand'
/usr/kerberos/lib/libkrb5.a(locate_kdc.o)(.text+0x95a): In function
`krb5_locate_srv_dns':
: undefined reference to `__dn_expand'
/usr/kerberos/lib/libkrb5.a(locate_kdc.o)(.text+0xc05): In function
`krb5_locate_srv_dns':
: undefined reference to `__dn_expand'
collect2: ld returned 1 exit status
make: *** [subversion/clients/cmdline/svn] Error 1
13 tux:

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 21 16:56:08 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.