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

RE: Error building Subversion 1.6.9 on Solaris 8

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Thu, 28 Jan 2010 09:57:57 +0000

>

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

-----Original Message-----

> From: Stefan Sperling [mailto:stsp_at_elego.de]
> Sent: 27 January 2010 14:33
> To: Giulio Troccoli
> Cc: users_at_subversion.apache.org
> Subject: Re: Error building Subversion 1.6.9 on Solaris 8
>
> On Wed, Jan 27, 2010 at 01:39:59PM +0000, Giulio Troccoli wrote:
> > I'm trying to build 1.6.9 on a Solaris 8 platform.
> >
> > I have successfully built and installed (locally in
> /user/dev/local, for now) the dependencies: apr, apr-util,
> neon, expat and zlib.
> >
> > I configured the build with
> >
> > CC="/opt/SUNWspro/bin/cc" \
> > CPPFLAGS="-I/user/dev/local/include" \
> LDFLAGS="-L/user/dev/local/lib"
> > \ ./configure \ --prefix=/user/dev/local \ --disable-shared \
> > --without-ssl \ --without-berkeley-db \
> --with-apr=/user/dev/local/bin
> > \ --with-apr-util=/user/dev/local/bin \ --without-apxs \
> > --with-neon=/user/dev/local \ --without-serf
> >
> > This ran without errors. When I run make though I have this error
> >
> > cd subversion/svn && /usr/local/bin/bash
> /user/dev/subversion-1.6.9/libtool --tag=CC --silent
> --mode=link /opt/SUNWspro/bin/cc -g -g -mt
> -D_LARGEFILE64_SOURCE -DNE_LFS -L/user/dev/local/lib
> -L/user/dev/local/lib -rpath /user/dev/local/lib -o svn
> add-cmd.o blame-cmd.o cat-cmd.o changelist-cmd.o
> checkout-cmd.o cleanup-cmd.o commit-cmd.o
> conflict-callbacks.o copy-cmd.o delete-cmd.o diff-cmd.o
> export-cmd.o help-cmd.o import-cmd.o info-cmd.o list-cmd.o
> lock-cmd.o log-cmd.o main.o merge-cmd.o mergeinfo-cmd.o
> mkdir-cmd.o move-cmd.o notify.o propdel-cmd.o propedit-cmd.o
> propget-cmd.o proplist-cmd.o props.o propset-cmd.o
> resolve-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o
> status.o switch-cmd.o tree-conflicts.o unlock-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_diff/libsvn_diff-1.la
> ../../subversion/libsvn_subr/libsvn_sub
> > r-1.la /user/dev/local/lib/libaprutil-1.la -lexpat
> /user/dev/local/lib/libapr-1.la -lrt -lsocket -lnsl
> -lpthread -ldl -L/user/dev/local/lib -L/user/dev/local/lib
> -lneon -lnsl -lsocket -lz -lexpat -lsocket
> > ild: (undefined symbol) dngettext -- referenced in the text
> segment of
> > log-cmd.o
> > ild: (undefined symbol) dngettext -- referenced in the text
> segment of
> > info-cmd.o
> > make: *** [subversion/svn/svn] Error 5
>
> Which gettext implementation is Subversion trying to link to?
>
> Try installing GNU gettext, and make sure the corresponding
> directory is in LDFLAGS (-L/usr/local/lib for instance)
> *before* the directory which contains the native gettext
> provided by Solaris.
> You can acheive this e.g. by putting the directory into the
> LDFLAGS environment variable when running the configure script:
>
> env LDFLAGS="-L/usr/local/lib" ./configure --prefix= ... etc.

Thanks Stefan. I have indeed installed gettext (and libiconv for dependencies) in /usr/local/lib from the package from www.sunfreeware.com.

I have reconfigured the build with

CC="/opt/SUNWspro/bin/cc" \
CPPFLAGS="-I/user/dev/local/include" \
LDFLAGS="-L/user/dev/local/lib -L/usr/local/lib" \
./configure \
--prefix=/user/dev/local \
--disable-shared \
--without-ssl \
--without-berkeley-db \
--with-apr=/user/dev/local/bin \
--with-apr-util=/user/dev/local/bin \
--without-apxs \
--with-neon=/user/dev/local \
--without-serf > configure.out 2>&1

This showed that the gettext it found is GNU

...
checking for xgettext... /usr/local/bin/xgettext
checking for library containing bindtextdomain... none required
checking for bind_textdomain_codeset... no
checking if we are using GNU gettext... Yes
...

Still, when I build I get the same error (note that /user/dev/local is where I have installed all Subversion dependencies. I'm testing this so I just want it locally).

I don't think it's related but I also have some suspicious warnings

...
"subversion/libsvn_subr/sqlite.c", line 244: warning: end-of-loop code not reached
"subversion/libsvn_subr/sqlite.c", line 592: warning: end-of-loop code not reached
...
"subversion/libsvn_fs_fs/tree.c", line 756: warning: end-of-loop code not reached
"subversion/libsvn_fs_fs/tree.c", line 1599: warning: end-of-loop code not reached
"subversion/libsvn_fs_fs/tree.c", line 2099: warning: end-of-loop code not reached
...

Thanks
Giulio
Received on 2010-01-28 10:58:33 CET

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.