[3.3.2] Compiling fails under Ubuntu 11.10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raycluster
    Rookie
    • Nov 2011
    • 5

    [3.3.2] Compiling fails under Ubuntu 11.10

    Hi

    I tried to compile version 3.3.2 of Angband under Ubuntu 11.10, but it wont work. (downloaded it here)

    First I installed all necessary packages:

    Code:
    sudo apt-get install autoconf gcc libc6-dev libncurses5-dev libx11-dev \
                 libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev \
                 libgtk2.0-dev libglade2-dev
    Then I ran:

    Code:
    ./configure --prefix=$HOME
    
    [...]
    
    Configuration:
    
      Install path:                           /home/raycluster
      binary path:                            /home/raycluster/games
      config path:                            /home/raycluster/etc/angband/
      lib path:                               /home/raycluster/share/angband/
      var path:                               (not used)
      (with private save and score files in ~/.angband/Angband/)
    
    -- Frontends --
    - Curses                                  Yes
    - GTK 2.x                                 Disabled
    - X11                                     Yes
    - SDL                                     Disabled
    - Test                                    No
    - Stats                                   No
    
    - SDL sound                               Yes
    But when I try to make the project I get this error while linking:

    Code:
    make
    
    [...]
    
    [B]/usr/bin/ld: snd-sdl.o: undefined reference to symbol 'SDL_GetError'[/B]
    /usr/bin/ld: note: 'SDL_GetError' is defined in DSO /usr/lib/libSDL-1.2.so.0 so try adding it to the linker command line
    /usr/lib/libSDL-1.2.so.0: could not read symbols: Invalid operation
    collect2: ld gab 1 als Ende-Status zurück [german for: ld returns 1 as end-status]
    make[3]: *** [angband] Fehler 1 [german 'Fehler' = error]
    make[2]: *** [all] Fehler 1
    make[1]: *** [subdirs] Fehler 1
    make: *** [all] Fehler 1
    make install of course returns a error too after that.

    Can you help me compile it? The version in the Ubuntu repositories is outdated.
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    Ah. d_m also has an Ubuntu build problem - though his is with ncurses rather than SDL. But I do wonder if something in Ubuntu is borked. I don't see that problem building on Debian (which should have most of the same packages as Ubuntu).
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    • raycluster
      Rookie
      • Nov 2011
      • 5

      #3
      Mhh can you build 3.3.2 for me on a debian? Don't feel like installing a virtual machine, just for this program

      Comment

      • Magnate
        Angband Devteam member
        • May 2007
        • 5110

        #4
        Originally posted by raycluster
        Mhh can you build 3.3.2 for me on a debian? Don't feel like installing a virtual machine, just for this program
        Here's one I prepared earlier. But you'll also need this.
        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

        Comment

        • raycluster
          Rookie
          • Nov 2011
          • 5

          #5
          Wow, thank you so much
          Works like a charm.

          Comment

          • Magnate
            Angband Devteam member
            • May 2007
            • 5110

            #6
            Originally posted by raycluster
            Wow, thank you so much
            Works like a charm.
            Excellent! Now to get it into Debian ....
            "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

            Comment

            • raycluster
              Rookie
              • Nov 2011
              • 5

              #7
              Originally posted by Magnate
              Now to get it into Debian ....
              What do you mean?

              Comment

              • Magnate
                Angband Devteam member
                • May 2007
                • 5110

                #8
                Originally posted by raycluster
                What do you mean?
                I'm not authorised to upload those debs to the Debian archive, so I need a "sponsor" to do that for me. I had one for 3.1.1 and 3.1.2, but lost touch when he moved jobs. 3.2.0 was uploaded to Debian about six months after release because I didn't have a sponsor - I now have another one and I'm waiting for him to QA the packages you downloaded. Once he's happy, they'll go into Debian (and then eventually through to Ubuntu).
                "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                Comment

                • raycluster
                  Rookie
                  • Nov 2011
                  • 5

                  #9
                  What about Ubuntu? Can you upload it to it's reps? Or are they the same?

                  Comment

                  • Magnate
                    Angband Devteam member
                    • May 2007
                    • 5110

                    #10
                    Originally posted by raycluster
                    What about Ubuntu? Can you upload it to it's reps? Or are they the same?
                    Well, I'm only the Ubuntu maintainer by default really - I don't know anything about Ubuntu. All I know is that a few weeks after a new version appears in Debian, it gets automatically ported/uploaded to Ubuntu. Since my main interest is in getting it into Debian, I've never worried about uploading directly to Ubuntu.

                    Besides, my new sponsor pointed out a couple of packaging errors in the ones you downloaded, so I'm having to repackage it anyway. He seems quite responsive, so maybe it will go in quite soon.
                    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                    Comment

                    • ViJay
                      Rookie
                      • Mar 2010
                      • 10

                      #11
                      Having read this, i tried to compile V3.3.2 on my Ubuntu 11.10.

                      -- Frontends --
                      - Curses No; missing libraries
                      - GTK 2.x Disabled
                      - X11 Yes
                      - SDL Disabled
                      - Test No
                      - Stats No

                      - SDL sound No; missing libraries

                      It compiled without problems. (./configure ; make ; make install)

                      Something definitely seems wrong with the SDL.

                      Comment

                      • Magnate
                        Angband Devteam member
                        • May 2007
                        • 5110

                        #12
                        Originally posted by ViJay
                        Something definitely seems wrong with the SDL.
                        How do you mean? You didn't configure it to build SDL - you need to run

                        ./configure --enable-sdl

                        to do that.
                        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                        Comment

                        • ViJay
                          Rookie
                          • Mar 2010
                          • 10

                          #13
                          What i mean is that if you compile without the SDL, it compiles without problem. If you (like raycluster) get the SDL packages and compile (based on the errormessages raycluster inlcuded) the libsdl seems to be the problem.

                          Or did you mean to say raycluster forgot to ./configure --enable-sdl ??

                          Comment

                          • Magnate
                            Angband Devteam member
                            • May 2007
                            • 5110

                            #14
                            Originally posted by ViJay
                            What i mean is that if you compile without the SDL, it compiles without problem. If you (like raycluster) get the SDL packages and compile (based on the errormessages raycluster inlcuded) the libsdl seems to be the problem.

                            Or did you mean to say raycluster forgot to ./configure --enable-sdl ??
                            No - I hadn't realised that you had gone on to compile under SDL and found raycluster's problem - or were at least theorising that that would happen.

                            Judging from raycluster's posts, it doesn't look like the problem is specific to SDL - but it would be good if s/he can confirm whether it builds without SDL configured.

                            In other news, Angband 3.3.2 has just been uploaded to Debian Sid (unstable). So it should be in Wheezy (testing) in ten days, and in Ubuntu after that. Yay!
                            "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                            Comment

                            • dionysian
                              Apprentice
                              • Apr 2007
                              • 77

                              #15
                              Unfortunately it has still not made it into Ubuntu..
                              Oh, Mr. Speaker, I had underestimated the tenderness of the feelings of the members opposite.
                              --Barney Frank

                              Comment

                              Working...
                              😀
                              😂
                              🥰
                              😘
                              🤢
                              😎
                              😞
                              😡
                              👍
                              👎