add to Makefile this line (to line 78 for example):
CONFIGURE_ARGS+= -Dlibpth="/lib64 /usr/lib64 ${PREFIX}/lib"
this problem is on distributions, where libraries is in lib64 directory
instead lib.
Ondra
On Sat, 11 Nov 2006 15:28:35 +0100
"Zafer Aydogan" <zafer%aydogan.de@localhost> wrote:
> I'm trying to build perl via pkgsrc on Linux (64bit).
> This is where is stops.
> Any Idea ?
>
> >snip>-------------------------
>
> _OFFSET_BITS=64 -O2 -Wno-format -fno-builtin -pthread -I/usr/include -Wall
> `sh cflags "optimize='-O2 -Wno-format -fno-builtin -pthread
> -I/usr/include'" pp_sort.o` pp_sort.c
> CCCMD = gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE
> -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/pkg/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -Wno-format -fno-builtin -pthread
> -I/usr/include -Wall
> rm -f libperl.a
> /usr/bin/ar rcu libperl.a perl.o gv.o toke.o perly.o op.o pad.o
> regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o
> pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o
> deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o
> locale.o pp_pack.o pp_sort.o
> `sh cflags "optimize='-O2 -Wno-format -fno-builtin -pthread
> -I/usr/include'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c
> CCCMD = gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE
> -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/pkg/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -Wno-format -fno-builtin -pthread
> -I/usr/include -Wall
> gcc -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o miniperl miniperlmain.o
> opmini.o libperl.a
> miniperlmain.o: In function `main':
> miniperlmain.c:(.text+0x49): undefined reference to `pthread_atfork'
> opmini.o: In function `Perl_scalar':
> opmini.c:(.text+0x2c95): undefined reference to `pthread_getspecific'
> opmini.o: In function `Perl_list':
> opmini.c:(.text+0x6b46): undefined reference to `pthread_getspecific'
> opmini.o: In function `Perl_load_module_nocontext':
> opmini.c:(.text+0xd292): undefined reference to `pthread_getspecific'
> libperl.a(perl.o): In function `perl_alloc':
> perl.c:(.text+0x7572): undefined reference to `pthread_setspecific'
> perl.c:(.text+0x759f): undefined reference to `pthread_key_create'
> perl.c:(.text+0x75b1): undefined reference to `pthread_setspecific'
> libperl.a(perl.o): In function `perl_fini':
> perl.c:(.text+0x5b01): undefined reference to `pthread_key_delete'
> libperl.a(util.o): In function `Perl_safesyscalloc':
> util.c:(.text+0x1b84): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_safesysmalloc':
> util.c:(.text+0x1c58): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_warner_nocontext':
> util.c:(.text+0x2b38): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_warn_nocontext':
> util.c:(.text+0x2c78): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_croak_nocontext':
> util.c:(.text+0x3aa8): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_set_context':
> util.c:(.text+0x3aee): undefined reference to `pthread_setspecific'
> libperl.a(util.o): In function `Perl_die_nocontext':
> util.c:(.text+0x3d28): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_mess_nocontext':
> util.c:(.text+0x3e68): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_form_nocontext':
> util.c:(.text+0x4028): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_safesysrealloc':
> util.c:(.text+0x4bc0): undefined reference to `pthread_getspecific'
> libperl.a(util.o): In function `Perl_get_context':
> util.c:(.text+0xe37): undefined reference to `pthread_getspecific'
> libperl.a(mg.o):mg.c:(.text+0x2ea): more undefined references to
> `pthread_getspecific' follow
> libperl.a(sv.o): In function `perl_clone':
> sv.c:(.text+0x73c4): undefined reference to `pthread_setspecific'
> libperl.a(sv.o): In function `Perl_sv_setpvf_mg_nocontext':
> sv.c:(.text+0xe708): undefined reference to `pthread_getspecific'
> libperl.a(sv.o): In function `Perl_sv_setpvf_nocontext':
> sv.c:(.text+0x13488): undefined reference to `pthread_getspecific'
> libperl.a(sv.o): In function `Perl_newSVpvf_nocontext':
> sv.c:(.text+0x13678): undefined reference to `pthread_getspecific'
> libperl.a(sv.o): In function `Perl_sv_catpvf_mg_nocontext':
> sv.c:(.text+0x13858): undefined reference to `pthread_getspecific'
> libperl.a(sv.o): In function `Perl_sv_catpvf_nocontext':
> sv.c:(.text+0x13a08): undefined reference to `pthread_getspecific'
> libperl.a(pp.o): In function `Perl_pp_int':
> pp.c:(.text+0x9c72): undefined reference to `floor'
> pp.c:(.text+0x9d75): undefined reference to `ceil'
> libperl.a(pp.o): In function `Perl_pp_sqrt':
> pp.c:(.text+0x9e1a): undefined reference to `sqrt'
> libperl.a(pp.o): In function `Perl_pp_log':
> pp.c:(.text+0x9fca): undefined reference to `log'
> libperl.a(pp.o): In function `Perl_pp_exp':
> pp.c:(.text+0xa17e): undefined reference to `exp'
> libperl.a(pp.o): In function `Perl_pp_cos':
> pp.c:(.text+0xa50e): undefined reference to `cos'
> libperl.a(pp.o): In function `Perl_pp_sin':
> pp.c:(.text+0xa66e): undefined reference to `sin'
> libperl.a(pp.o): In function `Perl_pp_atan2':
> pp.c:(.text+0xa840): undefined reference to `atan2'
> libperl.a(pp.o): In function `Perl_pp_modulo':
> pp.c:(.text+0xcea9): undefined reference to `floor'
> pp.c:(.text+0xcef1): undefined reference to `fmod'
> pp.c:(.text+0xd100): undefined reference to `floor'
> libperl.a(pp.o): In function `Perl_pp_pow':
> pp.c:(.text+0xd2cc): undefined reference to `pow'
> libperl.a(globals.o): In function `Perl_printf_nocontext':
> globals.c:(.text+0x6a): undefined reference to `pthread_getspecific'
> libperl.a(perlio.o): In function `PerlIO_getpos':
> perlio.c:(.text+0xe10): undefined reference to `pthread_getspecific'
> libperl.a(perlio.o): In function `PerlIO_setpos':
> perlio.c:(.text+0xee0): undefined reference to `pthread_getspecific'
> libperl.a(perlio.o): In function `PerlIO_rewind':
> perlio.c:(.text+0xf88): undefined reference to `pthread_getspecific'
> libperl.a(perlio.o): In function `PerlIO_puts':
> perlio.c:(.text+0x1040): undefined reference to `pthread_getspecific'
> libperl.a(perlio.o):perlio.c:(.text+0x109a): more undefined references
> to `pthread_getspecific' follow
> libperl.a(pp_pack.o): In function `S_pack_rec':
> pp_pack.c:(.text+0x2837): undefined reference to `floor'
> pp_pack.c:(.text+0x2886): undefined reference to `floor'
> collect2: ld returned 1 exit status
> *** Error code 1
>
> Stop.
> bmake: stopped in /usr/pkgsrc/lang/perl5/work/perl-5.8.8
> *** Error code 1
>
> Stop.
> bmake: stopped in /usr/pkgsrc/lang/perl5
> *** Error code 1
>
> Stop.
> bmake: stopped in /usr/pkgsrc/lang/perl5
> *** Error code 1
>
> Stop.
> bmake: stopped in /usr/pkgsrc/www/apache2
>
--
Ondřej Tůma
Unix-like system is the best operation system from the top of the world.
I'm lucky BSD and linux user. :) Use unix-like, be free. :)
www.blackmouse.biz hash.webjet.cz
ICQ: 107760454 JABBER: mcbig%jabber.cz@localhost MSN:
ondra.tu%atlas.cz@localhost