Results 1 to 4 of 4

Thread: Error compiling MAME.

  1. #1
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Error compiling MAME.

    Hi there guys,

    One of the private trackers that I'm a member of has just started running arcade machine gaming competitions. To be able to enter I need to run a specific version of MAME (WolfMAME 0.148).

    I can't find any pre-built binaries for my system so I'm trying to compile it myself using the official MAME source (here) and the WolfMAME patches (here).
    I should have all of the dependencies as I've already run 'sudo apt-get build-dep mame', but when I run the make command it fails with the following error...
    Code:
    Linking mame64...
    /usr/bin/ld: obj/sdl64/libocore.a(sdlsync_tc.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
    /usr/bin/ld: note: 'pthread_mutexattr_settype@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libpthread.so.0 so try adding it to the linker command line
    /lib/x86_64-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    make: *** [mame64] Error 1
    I've tried building the vanilla source without the patches and this fails in the same way, so it's a MAME issue rather than a problem with WolfMAME.

    Any ideas/suggestions would be very welcome.
    Cheesemill

  2. #2
    Join Date
    Jun 2007
    Beans
    13,107

    Re: Error compiling MAME.

    You could try adding this to your ./configure - (or some variation of ? like lgthread-2.0, ect.
    Code:
    LDFLAGS=-lpthread-2.0

  3. #3
    Join Date
    May 2013
    Beans
    1

    Re: Error compiling MAME.

    I too am having the same issue as Original Poster. How do I go about adding "LDFLAGS=-lpthread-2.0"? OP, did this solution work for you? I am currently on Xubuntu 13.04 x64 and have compiled MAME successfully on Lubuntu 12.04 & 12.10 x64.

    Edit: also wanted to menton that I am only using a Vanilla 0.148 source code with no nag patch.
    Last edited by Magicantian; May 19th, 2013 at 05:26 AM.

  4. #4
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •