You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Com Wiz <ri...@gmail.com> on 2009/03/25 13:48:45 UTC

Error in compiling Subversion from source code

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=1415607

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Error in compiling Subversion from source code

Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
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@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@subversion.tigris.org].

Re: Error in compiling Subversion from source code

Posted by CW <ri...@gmail.com>.
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@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?

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Error in compiling Subversion from source code

Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
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@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

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Error in compiling Subversion from source code

Posted by CW <ri...@gmail.com>.
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@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.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Error in compiling Subversion from source code

Posted by Bogdan Cristea <cr...@gmail.com>.
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@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.

-- 
Bogdan