pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

İlgi: lang/perl5 on Linux/x86_64 2.6.x build failing



Can you help me with the same problem compiling mysql5-client ?

cd .. && bmake  am--refresh
/bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=link g++
-DDBUG_OFF -O2 -Wno-format -fno-builtin -DUSE_OLD_FUNCTIONS
-I/usr/include -I/usr/pkg/include   -fno-implicit-templates
-fno-exceptions -fno-rtti  -Wl,-R/usr/pkg/lib/mysql -L/usr/lib64
-Wl,-R/usr/lib64 -Wl,-R/usr/pkg/lib -rdynamic -o mysql  mysql.o
readline.o  sql_string.o completion_hash.o -lreadline -lcurses
-ltermcap ../libmysql/libmysqlclient.la  -lrt -lcrypt -lnsl -lm
-L/usr/pkg/lib -lssl -lcrypto
g++ -DDBUG_OFF -O2 -Wno-format -fno-builtin -DUSE_OLD_FUNCTIONS
-I/usr/pkgsrc/databases/mysql5-client/work/.buildlink/include
-fno-implicit-templates -fno-exceptions -fno-rtti
-Wl,-R/usr/pkg/lib/mysql -Wl,-R/usr/lib64 -Wl,-R/usr/pkg/lib -rdynamic
-o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o
/usr/pkgsrc/databases/mysql5-client/work/.buildlink/lib/libreadline.so
-lncurses -lcurses -ltermcap ../libmysql/.libs/libmysqlclient.so
-L/usr/pkgsrc/databases/mysql5-client/work/.buildlink/lib -lrt -lcrypt
-lnsl -lm -lssl -lcrypto -Wl,--rpath
-Wl,/usr/pkgsrc/databases/mysql5-client/work/.buildlink/lib
-Wl,--rpath -Wl,/usr/pkg/lib/mysql
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
cannot find -lcurses
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/databases/mysql5-client/work/mysql-5.0.26/client
*** Error code 1

libcurses.so.1.0.0 is in /usr/lib64/

Any Idea ?


2006/12/6, Ondřej Tůma <pkgsrc%blackmouse.biz@localhost>:
Hi,

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.

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


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

> In the build phase I get this:
>
> /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 -I/usr/include/gdbm -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(.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
> `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
> `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
> `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
> `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
>
> Stop.
> bmake: stopped in /usr/pkgsrc-local/wrkobj/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
>
> ---
>
> This is a CentOS 4 x86_64 host.
>
> % uname -a
> Linux localhost 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006
> x86_64 x86_64 x86_64 GNU/Linux
>
>
> Any ideas?
>
> Thanks!
> - Jesse
>
>
>
>
> --
> Jesse Peterson <jesse.peterson%exbiblio.com@localhost>
>
>
>


--
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




Home | Main Index | Thread Index | Old Index