Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@skaji
Last active December 29, 2016 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skaji/52ceedc73799f118de191fa339f1e1ae to your computer and use it in GitHub Desktop.
Save skaji/52ceedc73799f118de191fa339f1e1ae to your computer and use it in GitHub Desktop.
root@b4551bd37718:~# perl -v
This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
root@b4551bd37718:~# apt-get install libdb-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdb5.3-dev
Suggested packages:
db5.3-doc
The following NEW packages will be installed:
libdb-dev libdb5.3-dev
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 718 kB of archives.
After this operation, 3029 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libdb5.3-dev amd64 5.3.28-3ubuntu3 [716 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main libdb-dev amd64 1:5.3.21~exp1ubuntu1 [2282 B]
Fetched 718 kB in 1s (395 kB/s)
Selecting previously unselected package libdb5.3-dev.
(Reading database ... 17221 files and directories currently installed.)
Preparing to unpack .../libdb5.3-dev_5.3.28-3ubuntu3_amd64.deb ...
Unpacking libdb5.3-dev (5.3.28-3ubuntu3) ...
Selecting previously unselected package libdb-dev:amd64.
Preparing to unpack .../libdb-dev_1%3a5.3.21~exp1ubuntu1_amd64.deb ...
Unpacking libdb-dev:amd64 (1:5.3.21~exp1ubuntu1) ...
Setting up libdb5.3-dev (5.3.28-3ubuntu3) ...
Setting up libdb-dev:amd64 (1:5.3.21~exp1ubuntu1) ...
root@b4551bd37718:~# cpanm -n -v -l local DB_File
cpanm (App::cpanminus) 1.7041 on perl 5.024000 built for x86_64-linux
Work directory is /root/.cpanm/work/1483017847.3631
You have make /usr/bin/make
You have /usr/bin/curl
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
Searching DB_File () on cpanmetadb ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 170 100 170 0 0 331 0 --:--:-- --:--:-- --:--:-- 332
--> Working on DB_File
######################################################################## 100.0%
OK
Unpacking DB_File-1.839.tar.gz
DB_File-1.839/
DB_File-1.839/MANIFEST
DB_File-1.839/DB_File.pm
DB_File-1.839/README
DB_File-1.839/ppport.h
DB_File-1.839/Changes
DB_File-1.839/config.in
DB_File-1.839/hints/
DB_File-1.839/hints/sco.pl
DB_File-1.839/hints/dynixptx.pl
DB_File-1.839/version.c
DB_File-1.839/Makefile.PL
DB_File-1.839/DB_File_BS
DB_File-1.839/patches/
DB_File-1.839/patches/5.004_04
DB_File-1.839/patches/5.004_01
DB_File-1.839/patches/5.005
DB_File-1.839/patches/5.004_05
DB_File-1.839/patches/5.004
DB_File-1.839/patches/5.004_03
DB_File-1.839/patches/5.6.0
DB_File-1.839/patches/5.005_02
DB_File-1.839/patches/5.004_02
DB_File-1.839/patches/5.005_01
DB_File-1.839/patches/5.005_03
DB_File-1.839/typemap
DB_File-1.839/t/
DB_File-1.839/t/pod.t
DB_File-1.839/t/db-btree.t
DB_File-1.839/t/db-recno.t
DB_File-1.839/t/db-hash.t
DB_File-1.839/dbinfo
DB_File-1.839/fallback.h
DB_File-1.839/META.json
DB_File-1.839/META.yml
DB_File-1.839/DB_File.xs
DB_File-1.839/fallback.xs
Entering DB_File-1.839
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.10_01)
Running Makefile.PL
Configuring DB_File-1.839 ... Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for DB_File
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.10_01)
Building DB_File-1.839 ... cp DB_File.pm blib/lib/DB_File.pm
Running Mkbootstrap for DB_File ()
chmod 644 "DB_File.bs"
cc -c -I/usr/local/BerkeleyDB/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -g -DVERSION=\"1.839\" -DXS_VERSION=\"1.839\" -fPIC "-I/root/perl/lib/5.24.0/x86_64-linux/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c
"/root/perl/bin/perl" "/root/perl/lib/5.24.0/ExtUtils/xsubpp" -noprototypes -typemap "/root/perl/lib/5.24.0/ExtUtils/typemap" -typemap "typemap" DB_File.xs > DB_File.xsc && mv DB_File.xsc DB_File.c
cc -c -I/usr/local/BerkeleyDB/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -g -DVERSION=\"1.839\" -DXS_VERSION=\"1.839\" -fPIC "-I/root/perl/lib/5.24.0/x86_64-linux/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t DB_File.c
In file included from DB_File.xs:121:0:
DB_File.xs: In function 'btree_compare':
DB_File.xs:609:21: error: 'locp' undeclared (first use in this function)
PERL_UNUSED_ARG(locp);
^
/root/perl/lib/5.24.0/x86_64-linux/CORE/perl.h:329:46: note: in definition of macro 'PERL_UNUSED_ARG'
# define PERL_UNUSED_ARG(x) ((void)sizeof(x))
^
DB_File.xs:609:21: note: each undeclared identifier is reported only once for each function it appears in
PERL_UNUSED_ARG(locp);
^
/root/perl/lib/5.24.0/x86_64-linux/CORE/perl.h:329:46: note: in definition of macro 'PERL_UNUSED_ARG'
# define PERL_UNUSED_ARG(x) ((void)sizeof(x))
^
make: *** [DB_File.o] Error 1
FAIL
! Installing DB_File failed. See /root/.cpanm/work/1483017847.3631/build.log for details. Retry with --force to force install it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment