ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] need help: perl-Text-BibTeX linking problem
Date: Fri, 12 Mar 2010 14:14:28 +0300
Message-ID: <20100312111428.GO8189@altlinux.org> (raw)
In-Reply-To: <20100312101035.GA4875@odnako.localdomain>

[-- Attachment #1: Type: text/plain, Size: 2288 bytes --]

On Fri, Mar 12, 2010 at 01:10:35PM +0300, Kirill Maslinsky wrote:
> Коллеги, нужна ваша помощь и совет: 
> http://git.altlinux.org/people/kirill/packages/?p=perl-Text-BibTeX.git;a=summary
> 
> Собирается, но на стадии verify-elf обнаруживается странная проблема с линковкой с библиотекой
> libbtparse.so. На обычный случай --as-needed не похоже, т.к. в строке
> линковки все указано в нужном порядке. Но очень сильно смущает то, что
> в процессе сборки эта самая линковка происходит _трижды_. (в логе можно
> поискать по строке: '** Creating libbtparse.so')
> 
> Полный лог сборки в аттаче, для сборки требует perl-Config-AutoConf, 
> он есть у меня в гите.

> Verifying ELF objects in /usr/src/tmp/perl-Text-BibTeX-buildroot (arch=normal,fhs=normal,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal)
> verify-elf: WARNING: ./usr/lib/perl5/vendor_perl/x86_64-linux/auto/Text/BibTeX/BibTeX.so: not found: libbtparse.so
> verify-elf: WARNING: ./usr/lib/perl5/vendor_perl/x86_64-linux/auto/Text/BibTeX/BibTeX.so: undefined symbol: bt_initialize
> verify-elf: WARNING: ./usr/lib/perl5/vendor_perl/x86_64-linux/auto/Text/BibTeX/BibTeX.so: undefined symbol: bt_next_field

> verify-elf: ERROR: ./usr/bin/bibparse: not found: libbtparse.so
> verify-elf: ERROR: ./usr/bin/bibparse: undefined symbol: bt_initialize
> verify-elf: ERROR: ./usr/bin/bibparse: undefined symbol: bt_next_field

There's a problem with hardcoded /usr/lib.

Build.PL:
    53  ## HACK  HACK  HACK  HACK
    54  my $libdir = $builder->install_destination("bin");
    55  if ($^O =~ /mswin32/i) {
    56      $libdir = $ENV{WINDIR} || 'c:\\WINDOWS\\'; ## HACK HACK HACK
    57  } else {
    58      $libdir =~ s/\bbin\b/lib/;
    59  }
    60  $builder->add_build_element('usrlib');
    61  $builder->install_path( 'usrlib' => $libdir );
    62  
    63  $builder->create_build_script;

So the $libdir is "/usr/bin" with "bin" compomnent changed to "lib"
(line 58).  On x86_64, that should be "lib64".

--- a/perl-Text-BibTeX.spec
+++ b/perl-Text-BibTeX.spec
@@ -57,6 +57,8 @@ manual pages in the library).
 
 %prep
 %setup -q -n %m_distro-%version
+perl -pi -e 's|/lib/|/%_lib/|' Build.PL
+
 %build
 %add_optflags %optflags_shared
 %perl_vendor_build

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2010-03-12 11:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-12 10:10 Kirill Maslinsky
2010-03-12 10:14 ` Andrey Rahmatullin
2010-03-12 11:14 ` Alexey Tourbin [this message]
2010-03-12 13:25   ` Kirill Maslinsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100312111428.GO8189@altlinux.org \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git