Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-504

dev-vcs/git fails compile with undefined reference to symbol 'pthread_create@@GLIBC_2.1'

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • ~x86

    Description

      This is a repeat of FL-295 & FL-310, same problem. I have solved the problem locally by temporarily adding LDFLAGS="-lpthread" to make.conf. I tried to patch the ebuild but no matter where I define LDFLAGS in the source files it fails, as though it is happening externally. Here is a more detailed summary of the failed compile:
      /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld: ../../libgit.a(run-command.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'
      /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
      /lib/libpthread.so.0: could not read symbols: Invalid operation
      collect2: ld returned 1 exit status
      make: *** [svn-fe] Error 1

      • ERROR: dev-vcs/git-1.8.2.1 failed (compile phase):
      • emake failed
        Of course I can supply the complete log if necessary, but that's the gist of it. Also glibc updated just minutes before this occurred, it's current at 2.15-r4.
        Please note that this is on ~x86, 32bit Funtoo. From experience with the previous two bugs 64bit users seem to be immune.

      Attachments

        1. ebuild.diff
          0.4 kB
        2. emerge.info
          5 kB
        3. git-1.8.2.1.ebuild
          17 kB

        Activity

          People

            Unassigned Unassigned
            sputnik sputnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: