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

RE: [subversion] Re: Anyone managed to build subversion on SCO Openserver 5?

From: Martin J. Evans <martin.evans_at_easysoft.com>
Date: 2004-05-19 12:37:06 CEST

Joe,

Results of investigating removal of -lprot below. How exactly do I make the
--without-iconv work? The top level configure does not mention --without-iconv
but apr's configure does. Do configure arguments get correctly passed down to
apr's configure (they seem to) and if not what do I do to get apr's configure to
see --without-iconv?

I've done the changes below configuring from the top --without-iconv and still
get loads of

iconv_open cannot open conversion file /usr/lib/nls/conv/UTF-8_ISO8859-1

and obviously /usr/lib/nls/conv does not exist.

The only way I've managed to get rid of the iconv_open errors is to edit
apr-util/include/private/apu_config.h and apr-util/include/apu.h and manually
comment out all:

HAVE_ICONV
APU_HAVE_APR_ICONV
APU_HAVE_ICONV

I admit I have an /usr/include/iconv.h if that helps find the problem.

Anyway, thanks for your help, I now have svn working without iconv errors.

As you asked I investigated the -lprot:

Removal of -lprot:
editing apr/configure and commented out code around line 3022:
# if test "x$LIBS" = "x"; then
# echo " setting LIBS to \"-lprot\""
# LIBS="-lprot"
# else
# apr_addto_bugger="-lprot"
# for i in $apr_addto_bugger; do
# apr_addto_duplicate="0"
# for j in $LIBS; do
# if test "x$i" = "x$j"; then
# apr_addto_duplicate="1"
# break
# fi
# done
# if test $apr_addto_duplicate = "0"; then
# echo " adding \"$i\" to LIBS"
# LIBS="$LIBS $i"
# fi
# done
# fi

configure now works fine WITHOUT having to specify LDFLAGS="-lcurses -lm"

Running configure --without-iconv in top dir then make after the above change
needs the following changes to build the svn client:

1. apr/network_io/unix/sockaddr.c
   needs an extern int h_errno; adding to it for SCO OpenServer 5

2. top level makefile --without-iconv leads to -Lno/lib
   removed -Lno/lib

   BTW it also add -Ino/include

3. apr/misc/unix/errorcodes.c
   you get a

errorcodes.c:297: warning: passing arg 3 of `stuffbuffer' makes pointer from
integer without a cast

  because netdb.h does not define hstrerror().

BTW, I've moved on to try and get subversion working on sinix and having a
similar number of problems - can't even get configure working because of all
that configure caching that gets copied down to the subdirs that need
configuring.

Martin

--
Martin J. Evans
Easysoft Ltd, UK
Development
On 18-May-2004 Joe Orton wrote:
> On Tue, May 18, 2004 at 03:56:49PM +0100, Martin J. Evans wrote:
>> I had a few problems that I'll mention here in case it helps anyone else and
>> I'm still left with a iconv error message coming out multiple times for
>> every
>> svn command e.g.
>> 
>> iconv_open - cannot open conversion file
>>   /usr/lib/nls/conv/UTF-8_ISO8859-1
>>
>> This obviously made me think of adding something like --without-iconv which
>> although not mentioned in subversion's configure, is mentioned under
>> apr/apr-util configure (hmm). Reconfiguring with --without-iconv does not
>> help.
>> Any ideas?
> 
> Ah, the apr-util configure script breaks if you use --without-iconv,
> that's a bug - it's the source of the "-Lno/lib" link error.  But a
> working --without-iconv would indeed be the best way to work around the
> error message.
> 
>> 1. Errors during configure for apr saying
>> 
>> "checking for executable suffix... configure: error: installation or
>> configuration problem: compiler cannot create executables."
>> 
>> config.log said:
>> 
>> Undefined                       first referenced
>>  symbol                             in file
>> nap                                 /lib/libprot.so
> ...
>> 
>> Looked like it needed curses and maths (m) libraries.
>> Rerun with LDFLAGS="-lcurses -lm" ./configure
> 
> Do you have any idea whether -lprot is really needed at all?.  It would
> be useful if you could edit the APR configure script to entirely remove
> the section which adds -lprot to LIBS, and re-build from scratch again,
> and see if you get a working SVN.
> 
>> 3. During make
>> 
>> /u/sources/subversion-1.0.2/apr/network_io/unix/sockaddr.c: In
>> function `find_addresses':
>> /u/sources/subversion-1.0.2/apr/network_io/unix/sockaddr.c:518: `h_errno'
>> undeclared (first use in this function)
>> 
>> Fixed by adding "extern int h_errno;" to start of sockaddr.c
> 
> That's an annoying one, slightly tricky to fix right.  Thanks for
> working through all this.
> 
> joe
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 19 12:38:27 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.