[BLFS Trac] #2047: Subversion-1.3.2

BLFS Trac trac at linuxfromscratch.org
Fri Oct 27 15:58:54 PDT 2006


#2047: Subversion-1.3.2
----------------------------------------+-----------------------------------
 Reporter:  randy at linuxfromscratch.org  |        Owner:  blfs-book at linuxfromscratch.org
     Type:  task                        |       Status:  new                           
 Priority:  normal                      |    Milestone:  6.2.0                         
Component:  BOOK                        |      Version:  SVN                           
 Severity:  normal                      |   Resolution:                                
 Keywords:                              |  
----------------------------------------+-----------------------------------
Comment (by dnicholson at linuxfromscratch.org):

 A month late, but I think this is a good choice. I've been running
 subversion-1.3.2 client and server at home for quite a while. And I the
 Python and perl SWIG bindings against swig-1.3.25. I even got to use of
 the svn perl bindings when I imported an svn repository into a git
 repository.

 I did have an issue building the perl bindings resulting in this error:

 {{{
 cc -c  -I/usr/include/apache2   -I/usr/include/apache2
 -I../../../../../subver
 sion/bindings/swig/perl/libsvn_swig_perl
 -I../../../../../subversion/include  -
 I../../../../../subversion/bindings/swig -g -O2 -pipe -fno-strict-aliasing
 -Wdec
 laration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
 -DVERS
 ION=\"\" -DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.8/i686-linux/CORE"
 core
 .c
 In file included from /usr/include/apache2/apr_pools.h:37,
                  from ../../../../../subversion/include/svn_time.h:25,
                  from core.c:1094:
 /usr/include/apache2/apr.h:270: error: syntax error before 'apr_off_t'
 }}}

 The problem is that this needs to be built with -DGNU_SOURCE, which are in
 the CPPFLAGS which configure gets from apr. Unfortunately, the CPPFLAGS
 are not used in the perl bindings Makefile where they're needed. Fixed
 with this command before configure:

 {{{
 sed -i.bak 's/@SVN_APR_INCLUDES@/& @CPPFLAGS@/' \
         subversion/bindings/swig/perl/native/Makefile.PL.in
 }}}

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2047>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch



More information about the blfs-book mailing list