develooper Front page | perl.perl5.porters | Postings from January 2017

[perl #130631] static build with gdbm + gettext

Thread Previous | Thread Next
From:
Francois PERRAD via RT
Date:
January 23, 2017 12:39
Subject:
[perl #130631] static build with gdbm + gettext
Message ID:
rt-4.0.24-30004-1485175164-67.130631-15-0@perl.org
On Mon, 23 Jan 2017 04:16:00 -0800, hmbrand wrote:
> On Mon, 23 Jan 2017 04:06:05 -0800, "James E Keenan via RT"
> <perlbug-followup@perl.org> wrote:
> 
> > On Mon, 23 Jan 2017 10:21:17 GMT, fperrad wrote:
> > > This is a bug report for perl from francois.perrad@gadz.org,
> > > generated with the help of perlbug 1.40 running under perl 5.24.1.
> > >
> > >
> > > -----------------------------------------------------------------
> > > [Please describe your issue here]
> > >
> > > A static build with the library gdbm (with gettext support),
> > > causes the following linking error:
> > >
> > > /home/dev/checkout/BR/build/perl-static/host/usr/bin/arm-linux-gcc
> > > -static -lm -Wl,-E -o perl perlmain.o libperl.a lib/auto/B/B.a
> > > lib/auto/Devel/Peek/Peek.a lib/auto/Fcntl/Fcntl.a
> > > lib/auto/File/DosGlob/DosGlob.a lib/auto/File/Glob/Glob.a
> > > lib/auto/GDBM_File/GDBM_File.a lib/auto/Hash/Util/Util.a
> > > lib/auto/Hash/Util/FieldHash/FieldHash.a
> > > lib/auto/I18N/Langinfo/Langinfo.a lib/auto/Opcode/Opcode.a
> > > lib/auto/POSIX/POSIX.a lib/auto/PerlIO/encoding/encoding.a
> > > lib/auto/PerlIO/mmap/mmap.a lib/auto/PerlIO/scalar/scalar.a
> > > lib/auto/PerlIO/via/via.a lib/auto/SDBM_File/SDBM_File.a
> > > lib/auto/Sys/Hostname/Hostname.a
> > > lib/auto/Tie/Hash/NamedCapture/NamedCapture.a
> > > lib/auto/arybase/arybase.a lib/auto/attributes/attributes.a
> > > lib/auto/mro/mro.a lib/auto/re/re.a
> > > lib/auto/Compress/Raw/Bzip2/Bzip2.a
> > > lib/auto/Compress/Raw/Zlib/Zlib.a
> > > lib/auto/Devel/PPPort/PPPort.a lib/auto/Digest/MD5/MD5.a
> > > lib/auto/Digest/SHA/SHA.a lib/auto/Encode/Encode.a
> > > lib/auto/Filter/Util/Call/Call.a lib/auto/IPC/SysV/SysV.a
> > > lib/auto/MIME/Base64/Base64.a
> > > lib/auto/Math/BigInt/FastCalc/FastCalc.a
> > > lib/auto/List/Util/Util.a lib/auto/Socket/Socket.a
> > > lib/auto/Sys/Syslog/Syslog.a lib/auto/Time/Piece/Piece.a
> > > lib/auto/Unicode/Collate/Collate.a
> > > lib/auto/Unicode/Normalize/Normalize.a
> > > lib/auto/Data/Dumper/Dumper.a
> > > lib/auto/IO/IO.a lib/auto/Cwd/Cwd.a lib/auto/Storable/Storable.a
> > > lib/auto/Time/HiRes/HiRes.a lib/auto/threads/threads.a
> > > lib/auto/threads/shared/shared.a -lm -lcrypt -lgdbm -lm -lrt
> > > -lpthread
> > > /home/dev/checkout/BR/build/perl-static/host/usr/arm-buildroot-
> > > linux-
> > > uclibcgnueabi/sysroot/usr/lib/libgdbm.a(gdbmerrno.o):
> > > In function `gdbm_strerror':
> > > gdbmerrno.c:(.text+0x14): undefined reference to `libintl_dgettext'
> > > /home/dev/checkout/BR/build/perl-static/host/usr/arm-buildroot-
> > > linux-
> > > uclibcgnueabi/sysroot/usr/lib/libgdbm.a(gdbmfetch.o):
> > > In function `gdbm_fetch':
> > > gdbmfetch.c:(.text+0x84): undefined reference to `libintl_dgettext'
> > > /home/dev/checkout/BR/build/perl-static/host/usr/arm-buildroot-
> > > linux-
> > > uclibcgnueabi/sysroot/usr/lib/libgdbm.a(gdbmseq.o):
> > > In function `get_next_key':
> > > gdbmseq.c:(.text+0xc8): undefined reference to `libintl_dgettext'
> > > /home/dev/checkout/BR/build/perl-static/host/usr/arm-buildroot-
> > > linux-
> > > uclibcgnueabi/sysroot/usr/lib/libgdbm.a(gdbmstore.o):
> > > In function `gdbm_store':
> > > gdbmstore.c:(.text+0x168): undefined reference to
> > > `libintl_dgettext'
> > > /home/dev/checkout/BR/build/perl-static/host/usr/arm-buildroot-
> > > linux-
> > > uclibcgnueabi/sysroot/usr/lib/libgdbm.a(bucket.o):
> > > In function `_gdbm_write_bucket':
> > > bucket.c:(.text+0x150): undefined reference to `libintl_dgettext'
> > > /home/dev/checkout/BR/build/perl-static/host/usr/arm-buildroot-
> > > linux-
> > > uclibcgnueabi/sysroot/usr/lib/libgdbm.a(bucket.o):bucket.c:(.text+0x1ec):
> > > more undefined references to `libintl_dgettext' follow
> > > collect2: error: ld returned 1 exit status
> > >
> >
> > What would be the command-line options to ./Configure that I would
> > use to reproduce this problem?
> 
> Also note that not all systems that support gdbm have a (working)
> libintl installed. Adding -lintl without test *will* break systems.
> 

See http://perldoc.perl.org/ExtUtils/MakeMaker.html#LIBS
So, a first test is done with "-lgdbm -lintl",
if this test fails, a second test is done "-lgdbm".

> > Thank you very much.




---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=130631

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About