Re: [PATCH 2/3] perf: Allow strong and weak functions in LIB_OBJS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnaldo Carvalho de Melo
Date: Friday, November 26, 2010 - 2:18 pm

Em Thu, Nov 25, 2010 at 03:12:54PM +1100, Ian Munsie escreveu:

After I applied this patch I got this on a x86_64 Fedora 14 box:

    LINK /home/acme/git/build/perf/perf
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS): In function `pthread_atfork':
(.text+0x0): multiple definition of `__pthread_atfork'
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS):(.text+0x0): first defined here
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS): In function `pthread_atfork':
(.text+0x0): multiple definition of `pthread_atfork'
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS):(.text+0x0): first defined here
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS): In function `pthread_atfork':
(.text+0x0): multiple definition of `__pthread_atfork'
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS):(.text+0x0): first defined here
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS): In function `pthread_atfork':
(.text+0x0): multiple definition of `pthread_atfork'
/usr/lib64/libpthread_nonshared.a(pthread_atfork.oS):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libiberty.a(choose-temp.o): In function `choose_temp_base':
(.text+0x57): warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libiberty.a(strerror.o): In function `errno_max':
(.text+0x151): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libiberty.a(xstrdup.o): In function `xstrdup':
(.text+0x0): multiple definition of `xstrdup'
/home/acme/git/build/perf/libperf.a(wrapper.o):/media/tbs/acme/git/linux/tools/perf/util/wrapper.c:15: first defined here
collect2: ld returned 1 exit status
make: *** [/home/acme/git/build/perf/perf] Error 1
make: Leaving directory `/media/tbs/acme/git/linux/tools/perf'
[acme@felicio linux]$

- Arnaldo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] perf: Correct final kernel map guesses, Ian Munsie, (Wed Nov 24, 9:12 pm)
Re: [PATCH 2/3] perf: Allow strong and weak functions in L ..., Arnaldo Carvalho de Melo, (Fri Nov 26, 2:18 pm)
[tip:perf/core] perf symbols: Correct final kernel map guesses, tip-bot for Ian Munsie, (Sun Nov 28, 1:34 am)
Re: [PATCH 2/3] perf: Allow strong and weak functions in L ..., Arnaldo Carvalho de Melo, (Tue Dec 7, 7:55 am)
[tip:perf/core] perf makefile: Allow strong and weak funct ..., tip-bot for Ian Munsie, (Wed Dec 8, 12:39 am)
Re: [PATCH 3/3] perf, powerpc: Allow perf test to handle P ..., Arnaldo Carvalho de Melo, (Sun Dec 12, 7:39 am)