Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2617

Perl Bindings Cannot Compile on Mandriva 2007

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • 1.8.0
    • bindings_swig_perl
    • Linux

    Description

      The Perl Bindings cannot compile on Mandriva 2007. I'm getting the following 
      errors: (I'll shortly attach the entire dump).
      
      <<<<<<<<<<<<<<<<<<
      if 
      test "/home/shlomi/progs/svn/SVN-From-Repos/vanilla/trunk/subversion/bindings/swig/perl" != "/home/shlomi/progs/svn/SVN-From-Repos/vanilla/trunk/subversion/bindings/swig/perl"; 
      then \
      	  
      ln -sf /home/shlomi/progs/svn/SVN-From-Repos/vanilla/trunk/subversion/bindings/swig/perl/native/*.c /home/shlomi/progs/svn/SVN-From-Repos/vanilla/trunk/subversion/bindings/swig/perl/native; 
      \
      	fi
      cd /home/shlomi/progs/svn/SVN-From-Repos/vanilla/trunk/subversion/bindings/swig/perl/native; 
      make
      make[1]: Entering directory 
      `/home/shlomi/progs/svn/SVN-From-Repos/vanilla/trunk/subversion/bindings/swig/perl/native'
      gcc -c  -I/usr/local/apps/apache2/include   -I/usr/local/apps/apache2/include -I/usr/local/apps/db-4.2//include  -I../../../../../subversion/bindings/swig/perl/libsvn_swig_perl  -I../../../../../subversion/include  -I../../../../..//subversion  -I../../../../../subversion/bindings/swig -g -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux/CORE"   
      core.c
      In file included from /usr/local/apps/apache2/include/apr_pools.h:37,
                       from ../../../../../subversion/include/svn_time.h:25,
                       from core.c:1146:
      /usr/local/apps/apache2/include/apr.h:270: error: 
      expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘apr_off_t’
      In file included from ../../../../../subversion/include/svn_string.h:71,
                       from ../../../../../subversion/include/svn_props.h:30,
                       from ../../../../../subversion/include/svn_error_codes.h:48,
                       from ../../../../../subversion/include/svn_error.h:48,
                       from ../../../../../subversion/include/svn_time.h:28,
                       from core.c:1146:
      /usr/local/apps/apache2/include/apr_strings.h:297: error: expected declaration 
      specifiers or ‘...’ before ‘apr_off_t’
      /usr/local/apps/apache2/include/apr_strings.h:313: error: expected ‘)’ 
      before ‘*’ token
      /usr/local/apps/apache2/include/apr_strings.h:349: error: expected ‘)’ 
      before ‘size’
      In file included from /usr/local/apps/apache2/include/apr_file_io.h:29,
                       from ../../../../../subversion/include/svn_io.h:30,
                       from ../../../../../subversion/include/svn_delta.h:35,
                       
      from ../../../../../subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.h:35,
                       from core.c:1150:
      /usr/local/apps/apache2/include/apr_file_info.h:204: error: expected 
      specifier-qualifier-list before ‘apr_off_t’
      In file included from ../../../../../subversion/include/svn_io.h:30,
                       from ../../../../../subversion/include/svn_delta.h:35,
                       
      from ../../../../../subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.h:35,
                       from core.c:1150:
      /usr/local/apps/apache2/include/apr_file_io.h:548: error: expected declaration 
      specifiers or ‘...’ before ‘apr_off_t’
      /usr/local/apps/apache2/include/apr_file_io.h:740: error: expected declaration 
      specifiers or ‘...’ before ‘apr_off_t’
      >>>>>>>>>>>>>>>
      
      I compile Subversion like that:
      
      <<<<<<<<<<<<<<<<
      apache_path=/usr/local/apps/apache2/
      args="--with-apr=$apache_path 
            --with-apr-util=$apache_path  
            --without-apxs
            --disable-neon-version-check
            --without-sasl
            "
      
      ./configure --prefix=/usr/local/apps/svn-repos --enable-maintainer-mode $args
      >>>>>>>>>>>>>>>>
      

      Attachments

        1. 2_swig-pl-build.patch
          0.6 kB
          Subversion Importer
        2. 1_make-swig-pl-dump.txt
          33 kB
          Shlomi Fish

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shlomif Shlomi Fish
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: