Falha ao instalar o perf no slackware 13.1

4

Eu estava tentando instalar o perf no slackware 13.1 Quando eu corri pela primeira vez em / usr / src / linux / tools / perf, tive alguns erros. E eu encontrei este patch link E quando eu corri fazer novamente, emitiu alguns erros diferentes como abaixo. Mas eu já instalei o pacote perl perl-5.10.1-i486-1

libperf.a(trace-event-perl.o): In function 'define_flag_value':
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:125: undefined reference to 'Perl_push_scope'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:126: undefined reference to 'Perl_save_int'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:129: undefined reference to 'Perl_newSVpv'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:129: undefined reference to 'Perl_sv_2mortal'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:130: undefined reference to 'Perl_newSVpv'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:130: undefined reference to 'Perl_sv_2mortal'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:131: undefined reference to 'Perl_newSVuv'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:131: undefined reference to 'Perl_sv_2mortal'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:132: undefined reference to 'Perl_newSVpv'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:132: undefined reference to 'Perl_sv_2mortal'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:135: undefined reference to 'Perl_get_cv'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:136: undefined reference to 'Perl_call_pv'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:139: undefined reference to 'Perl_free_tmps'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:132: undefined reference to 'Perl_stack_grow'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:131: undefined reference to 'Perl_stack_grow'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:130: undefined reference to 'Perl_stack_grow'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:129: undefined reference to 'Perl_stack_grow'
/usr/src/linux-2.6.33.4/tools/perf/util/trace-event-perl.c:127: undefined reference to 'Perl_markstack_grow'
    
por sleetdrop 04.06.2011 / 20:24

1 resposta

4

Por fim, resolvi esse problema apenas comente a seguinte linha no Makefile

#ifndef NO_LIBPERL
#PERL_EMBED_LDOPTS = 'perl -MExtUtils::Embed -e ldopts 2>/dev/null'
#PERL_EMBED_CCOPTS = 'perl -MExtUtils::Embed -e ccopts 2>/dev/null'
#endif

Parecia que o MExtUtils :: Embed gerava o LDFLAGS errado para libperl Eu também descobri que o pacote perl do slackware apenas fornece libperl.a lib estática

    
por 06.06.2011 / 07:15