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

Re: Compiling r1587: cannot find the library `'

From: Jens Askengren <jensus_at_linux.nu>
Date: 2002-03-30 21:29:34 CET

lör 2002-03-30 klockan 00.49 skrev Lele Gaifax:

> You have some garbage in some of the libtool-generated .la files. You
> have to visit each `find . -name '*.la'` file, and search for an
> improper option between the libraries.

That makes the linking work without errors.. allmost:

/home/jens/src/subversion-r1587/subversion/libsvn_ra/.libs/libsvn_ra.so:
undefined reference to `mm_create'
/home/jens/src/subversion-r1587/subversion/libsvn_ra/.libs/libsvn_ra.so:
undefined reference to `mm_destroy'
/home/jens/src/subversion-r1587/subversion/libsvn_ra/.libs/libsvn_ra.so:
undefined reference to `mm_malloc'
/home/jens/src/subversion-r1587/subversion/libsvn_ra/.libs/libsvn_ra.so:
undefined reference to `mm_available'
/home/jens/src/subversion-r1587/subversion/libsvn_ra/.libs/libsvn_ra.so:
undefined reference to `mm_calloc'
/home/jens/src/subversion-r1587/subversion/libsvn_ra/.libs/libsvn_ra.so:
undefined reference to `mm_free'

Removing -pthread from the .la files and -lmm to the commandline fixes
the problem. But what about a more permanent fix for the build issue?
What program produces the incompatible .la files?

When running svn it imediately segfaults:

Program received signal SIGSEGV, Segmentation fault.
0x400cdb8f in apr_pool_create_ex (newpool=0xbffff508, parent=0x0,
abort_fn=0x40093a0c <abort_on_pool_failure>, allocator=0x0)
    at apr_pools.c:721
721 allocator = parent->allocator;
(gdb) bt
#0 0x400cdb8f in apr_pool_create_ex (newpool=0xbffff508, parent=0x0,
abort_fn=0x40093a0c <abort_on_pool_failure>,
    allocator=0x0) at apr_pools.c:721
#1 0x40093eda in svn_pool_create (pool=0x0) at
subversion/libsvn_subr/svn_error.c:428
#2 0x804c4bd in main (argc=1, argv=0xbffff6f4) at
subversion/clients/cmdline/main.c:802

Grepping the source reveals that apr-util depends on libmm.
Upgrading libmm to version 1.1.3 fixes the crash.
A check for libmm should probably be added to configure by somone that
knows autoconf. I don't. Sorry.

        -Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 30 21:33:47 2002

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