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

Re: undefined reference when compiling on cygwin

From: Colin JN Breame <colin_at_breame.com>
Date: 2004-10-27 11:37:06 CEST

Philip Martin wrote:

>Colin JN Breame <colin@breame.com> writes:
>>cd subversion/libsvn_subr && /bin/bash
>>/home/Colin/src/subversion-1.1.1/libtool --silent --mode=link gcc -g
>>-O2 -DNEON_ZLIB -DNEON_SSL -rpath /usr/lib -o libsvn_subr-1.la
>>-no-undefined auth.lo cmdline.lo config.lo config_auth.lo
>>config_file.lo config_win.lo date.lo error.lo hash.lo io.lo md5.lo
>>opt.lo path.lo pool.lo quoprint.lo sorts.lo stream.lo subst.lo
>>svn_base64.lo svn_string.lo target.lo time.lo utf.lo utf_validate.lo
>>validate.lo version.lo xml.lo /usr/lib/libaprutil-0.la -lgdbm -ldb-4.2
>>-lexpat -liconv /usr/lib/libapr-0.la -lcrypt -lintl
>>/home/Colin/src/subversion-1.1.1/libtool: line 1: sed: command not found
>>make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 127
>>Looks like it can't find sed. However:
>>$ which sed
>libtool is a shell script, you need to determine where and why it is
>failing. Execute the above command from the command line but replace
>--silent with --debug and see if that helps determine where the
>problem lies.
>Did you reuse the compiled objects created by libtool 1.4.3? I don't
>whether that would cause the above problem. I suppose you could try
>"make clean" to get rid of any 1.4.3 stuff.

Eventually got this working. It seems that libtool was failing when
extracting symbols from the dll's. The reason why it was saying it
can't find sed was that the command was written as ' sed' which is
different from 'sed' (Notice the leading space). After changing this,
there were a whole load of other problems and my conclusion is that it
cannot (or has not) been compiled with shared libraries for cygwin.

To get it working, I used:

$ ./configure --disable-shared

Maybe this should be in the instructions, along with the need to delete
apr and apr-util, the need to run ./autogen.sh, etc...?


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 27 11:37:22 2004

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

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