Menu

Compiling Sphinx2-0.5 under Fedora Core 3

Help
Dan Hart
2005-01-14
2012-09-22
  • Dan Hart

    Dan Hart - 2005-01-14

    Just an FYI about compiling Sphinx2-0.5 under RedHat Fedora Core 3. It took me awhile to figure this out so just to let everybody know it is possible. I was getting the message "conflicting types for 'initialize'" during the make.

    The problem is related to gcc 3.4. You can see info about this at: http://lists.debian.org/debian-qa-packages/2004/08/msg00026.html .

    You'll need to download http://mirror.here.dk/debian/pool/main/s/sphinx2/sphinx2_0.5-1.diff.gz and apply that to the sphinx2-0.5 source before you can compile.

    If you need details on how to do that then let me know.

    You'll need to get

     
    • The Grand Janitor

      Hi Dan, Thanks, patch is submitted into the Patches tab in this page. -Arthur

       
    • Skooter

      Skooter - 2005-01-23

      Hi,

      I'm using Mandrake 10.1 - I get the same error:

      cdcn_update.c:128: error: conflicting types for 'initialize'
      cdcn_update.c:61: error: previous declaration of 'initialize' was here
      cdcn_update.c:128: warning: 'initialize' defined but not used
      make[4]: [cdcn_update.lo] Error 1
      make[4]: Leaving directory /home/skooter/apps/sphinx2-0.5/src/libsphinx2' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory/home/skooter/apps/sphinx2-0.5/src/libsphinx2'
      make[2]:
      [all-recursive] Error 1
      make[2]: Leaving directory /home/skooter/apps/sphinx2-0.5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/skooter/apps/sphinx2-0.5'
      make: *** [all] Error 2

      I tried the patch. I pasted it into the root of the sphinx2-dir, correct? But it didn't work. Please help.

       
    • Skooter

      Skooter - 2005-01-26

      sorry, my bad - its:

      patch -p1 <sphinx2-patch_0.5-1.diff

       
    • Skooter

      Skooter - 2005-01-26

      ok... just laugh at me and call me stupid but i'm new to linux - a noob. But for thoes like me this is how you install the patch (I figured it out):

      Unpack the file and copy it to the sphinx2 folder, then:

      cd sphinx2-0.5

      patch p1 <sphinx2-patch_0.5-1.diff

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.