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

Re: Error in compiling Subversion from source code

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Sat, 28 Mar 2009 21:13:38 -0500

On Mar 27, 2009, at 9:59 PM, CW wrote:

> Hyrum K. Wright wrote:
>>
>> On Mar 26, 2009, at 7:46 PM, CW wrote:
>>
>>> Bogdan Cristea wrote:
>>>>
>>>> On Wednesday 25 March 2009 15:48:45 you wrote:
>>>>
>>>>> I recently downloaded, compiled, and installed sqlite first and
>>>>> then
>>>>> Subversion. However, whenever I try to start Apache (2.2.11), I
>>>>> get the
>>>>> following error. Does anyone have an idea what could be causing
>>>>> this
>>>>> problem?
>>>>>
>>>>> httpd: Syntax error on line 62 of /usr/local/apache2/conf/
>>>>> httpd.conf:
>>>>> Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server:
>>>>> /usr/local/lib/libsvn_subr-1.so.0: undefined symbol:
>>>>> sqlite3_config
>>>>>
>>>>> ------------------------------------------------------
>>>>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1
>>>>> 415607
>>>>>
>>>>> To unsubscribe from this discussion, e-mail:
>>>>> [users-unsubscribe_at_subversion.tigris.org].
>>>>>
>>>> Something went wrong when compiling mod_dav_svn.so against
>>>> sqlite. Verify
>>>> which version of sqlite is recommended by svn 1.6. Try to compile
>>>> sqlite,
>>>> then svn.
>>>>
>>>>
>>> I downloaded the latest version of sqlite's src "sqlite-
>>> amalgamation-3.6.11.tar.gz" and svn's "subversion-1.6.0.tar.gz".
>>> I "configure"d , compiled sqlite (make), and installed it (make
>>> install). I then "configure"d from subversion which it did find
>>> sqlite. I compiled (make) and then installed (make install).
>>> Everything went ok without errors. It's when I try starting
>>> apache with the included
>>> LoadModule dav_svn_module modules/mod_dav_svn.so
>>> LoadModule authz_svn_module modules/mod_authz_svn.so
>>> that I get the error.
>>
>> Can you show us your configure line? Better yet, can you give a
>> complete list of the steps you took in script form? Does
>> config.log show that configure found the amalgamation?
>>
>> (For the curious, it looks like the version of sqlite which APR is
>> compiled against, and is linking in, and the version which
>> Subversion is linking against are different.)
>>
>> -Hyrum
>>
> ./configure --with-ssl --with-swig=/usr/local PYTHON=/usr/local/bin/
> python2.6 --enable-shared --with-neon=/usr/local
>
> I was reading the INSTALL file with SVN and found it talking about
> taking the sqlite3.c file from the sqlite source package and puting
> inside svn's source package in a folder called, "sqlite-
> amalgamation". I tried it and now I don't get the error anymore.
> Why did this fix it? Why did it not compile against sqlite that I
> installed without the c source file?

By compiling with the sqlite-amalgamation directory in the source
tree, you tell Subversion to just statically include the sqlite
library. As a result, Subversion does not need to load or look in any
external libraries, and all sqlite symbols it needs are guaranteed to
be found, no matter the version of the external sqlite libraries
installed on your system.

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1464673

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-29 04:14:39 CEST

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.