Subject: Re: lang/perl5 on Linux/x86_64 2.6.x build failing
To: None <pkgsrc-users@netbsd.org>
From: =?ISO-8859-2?Q?Ond=F8ej_T=F9ma?= <pkgsrc@blackmouse.biz>
List: pkgsrc-users
Date: 12/06/2006 10:27:47
Hi,=20

add to Makefile this line (to line 78 for example):

CONFIGURE_ARGS+=3D        -Dlibpth=3D"/lib64 /usr/lib64 ${PREFIX}/lib"

this problem is on distributions, where libraries is in lib64 directory
instead lib.

I post this way to package maintainer but ...:(


On Sun, 3 Dec 2006 20:02:36 -0800
Jesse Peterson <jesse.peterson@exbiblio.com> wrote:

> In the build phase I get this:
>=20
> /usr/bin/ar rcu libperl.a perl.o  gv.o toke.o perly.o op.o pad.o =20
> regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o =20
> pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o =20
> deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o =20
> locale.o pp_pack.o pp_sort.o
> `sh  cflags "optimize=3D'-O2 -Wno-format -fno-builtin -pthread -I/usr/=20
> include'" opmini.o`  -DPERL_EXTERNAL_GLOB opmini.c
>            CCCMD =3D  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -=20
> DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-=20
> statement -I/usr/pkg/include -D_LARGEFILE_SOURCE -=20
> D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O2 -Wno-format -fno-=20
> builtin -pthread -I/usr/include  -Wall
> gcc -Wl,-R/usr/pkg/lib  -L/usr/pkg/lib -o miniperl  miniperlmain.o =20
> opmini.o libperl.a
> miniperlmain.o(.text+0x3b): In function `main':
> : undefined reference to `pthread_atfork'
> opmini.o(.text+0x4d67): In function `Perl_scalar':
> : undefined reference to `pthread_getspecific'
> opmini.o(.text+0x9414): In function `Perl_list':
> : undefined reference to `pthread_getspecific'
> opmini.o(.text+0xb7a2): In function `Perl_load_module_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(perl.o)(.text+0x27): In function `perl_alloc':
> : undefined reference to `pthread_key_create'
> libperl.a(perl.o)(.text+0x39): In function `perl_alloc':
> : undefined reference to `pthread_setspecific'
> libperl.a(perl.o)(.text+0x7b): In function `perl_alloc':
> : undefined reference to `pthread_setspecific'
> libperl.a(perl.o)(.text+0x107): In function `perl_fini':
> : undefined reference to `pthread_key_delete'
> libperl.a(util.o)(.text+0x18): In function `Perl_safesysmalloc':
> : undefined reference to `pthread_getspecific'
> libperl.a(util.o)(.text+0x100): In function `Perl_safesysrealloc':
> : undefined reference to `pthread_getspecific'
> libperl.a(util.o)(.text+0x204): In function `Perl_safesyscalloc':
> : undefined reference to `pthread_getspecific'
> libperl.a(util.o)(.text+0x12d8): In function `Perl_form_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(util.o)(.text+0x1648): In function `Perl_mess_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(util.o)(.text+0x2008): more undefined references to =20
> `pthread_getspecific' follow
> libperl.a(util.o)(.text+0x434e): In function `Perl_set_context':
> : undefined reference to `pthread_setspecific'
> libperl.a(util.o)(.text+0x4337): In function `Perl_get_context':
> : undefined reference to `pthread_getspecific'
> libperl.a(mg.o)(.text+0x104b): In function `Perl_magic_get':
> : undefined reference to `pthread_getspecific'
> libperl.a(mg.o)(.text+0x240a): In function `Perl_csighandler':
> : undefined reference to `pthread_getspecific'
> libperl.a(mg.o)(.text+0x5c0e): In function `Perl_sighandler':
> : undefined reference to `pthread_getspecific'
> libperl.a(reentr.o)(.text+0x440): In function `Perl_reentrant_retry':
> : undefined reference to `pthread_getspecific'
> libperl.a(sv.o)(.text+0x9ac9): In function `perl_clone':
> : undefined reference to `pthread_setspecific'
> libperl.a(sv.o)(.text+0xf588): In function =20
> `Perl_sv_setpvf_mg_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(sv.o)(.text+0x13b88): In function `Perl_sv_setpvf_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(sv.o)(.text+0x13d78): In function `Perl_newSVpvf_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(sv.o)(.text+0x13f58): In function =20
> `Perl_sv_catpvf_mg_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(sv.o)(.text+0x14108): In function `Perl_sv_catpvf_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(pp.o)(.text+0x2ec2): In function `Perl_pp_pow':
> : undefined reference to `pow'
> libperl.a(pp.o)(.text+0x3c1f): In function `Perl_pp_modulo':
> : undefined reference to `floor'
> libperl.a(pp.o)(.text+0x3c47): In function `Perl_pp_modulo':
> : undefined reference to `floor'
> libperl.a(pp.o)(.text+0x3d13): In function `Perl_pp_modulo':
> : undefined reference to `fmod'
> libperl.a(pp.o)(.text+0x8860): In function `Perl_pp_atan2':
> : undefined reference to `atan2'
> libperl.a(pp.o)(.text+0x8951): In function `Perl_pp_sin':
> : undefined reference to `sin'
> libperl.a(pp.o)(.text+0x8aa1): In function `Perl_pp_cos':
> : undefined reference to `cos'
> libperl.a(pp.o)(.text+0x8e81): In function `Perl_pp_exp':
> : undefined reference to `exp'
> libperl.a(pp.o)(.text+0x9015): In function `Perl_pp_log':
> : undefined reference to `log'
> libperl.a(pp.o)(.text+0x91a5): In function `Perl_pp_sqrt':
> : undefined reference to `sqrt'
> libperl.a(pp.o)(.text+0x93ea): In function `Perl_pp_int':
> : undefined reference to `ceil'
> libperl.a(pp.o)(.text+0x9403): In function `Perl_pp_int':
> : undefined reference to `floor'
> libperl.a(globals.o)(.text+0xf8): In function `Perl_printf_nocontext':
> : undefined reference to `pthread_getspecific'
> libperl.a(perlio.o)(.text+0x128): In function `PerlIO_debug':
> : undefined reference to `pthread_getspecific'
> libperl.a(perlio.o)(.text+0x1ee): In function `PerlIO_debug':
> : undefined reference to `pthread_getspecific'
> libperl.a(perlio.o)(.text+0x3635): In function `PerlIO_importFILE':
> : undefined reference to `pthread_getspecific'
> libperl.a(perlio.o)(.text+0x3ea8): In function `PerlIO_exportFILE':
> : undefined reference to `pthread_getspecific'
> libperl.a(perlio.o)(.text+0x3fc2): more undefined references to =20
> `pthread_getspecific' follow
> libperl.a(pp_pack.o)(.text+0x4add): In function `S_pack_rec':
> : undefined reference to `floor'
> libperl.a(pp_pack.o)(.text+0x4b01): In function `S_pack_rec':
> : undefined reference to `floor'
> collect2: ld returned 1 exit status
> *** Error code 1
>=20
> Stop.
> bmake: stopped in /usr/pkgsrc-local/wrkobj/lang/perl5/work/perl-5.8.8
> *** Error code 1
>=20
> Stop.
> bmake: stopped in /usr/pkgsrc/lang/perl5
> *** Error code 1
>=20
> Stop.
> bmake: stopped in /usr/pkgsrc/lang/perl5
>=20
> ---
>=20
> This is a CentOS 4 x86_64 host.
>=20
> % uname -a
> Linux localhost 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 =20
> x86_64 x86_64 x86_64 GNU/Linux
>=20
>=20
> Any ideas?
>=20
> Thanks!
> - Jesse
>=20
>=20
>=20
>=20
> --
> Jesse Peterson <jesse.peterson@exbiblio.com>
>=20
>=20
>=20


--=20
Ond=F8ej T=F9ma

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      MSN: ondra.tu@atlas.cz