Buildroot includes host path in python libs and other makefiles in target image - pip install failing - buildroot

I did a buildroot (2022.08.1) make of a raspberrypi3_defconfig with some changes (include python3, kdb, wpa_supplicant, iwd and some others).
My issue is that if I then run for example pip install python-lirc on the target raspberrypi3, I get an error that some files are missing and setup.py cannot complete.
The issue is that apparently my host system (WSL2 on Win11) paths are somehow included in the target build, as I see the file system structure of my host in the output errors.
For example /mnt/wsl/Kali/buildroot/output/host/opt/ext-toolchain/share/gcc-10.3.1/python
Then I searched for that string /mnt/Kali in all files inside the sdcard.img image which I just unpacked with 7z and get following result:
D:\OutputBuildroot\sdcard\1\lib\libstdc++.so.6.0.28-gdb.py (2 Treffer)
Zeile 22: pythondir = '/mnt/wsl/Kali/buildroot/output/host/opt/ext-toolchain/share/gcc-10.3.1/python'
Zeile 23: libdir = "/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/lib"
D:\OutputBuildroot\sdcard\1\usr\bin\irdb-get (1 Treffer)
Zeile 1: #!/usr/bin/env /mnt/wsl/Kali/buildroot/output/host/bin/python
D:\OutputBuildroot\sdcard\1\usr\bin\irtext2udp (1 Treffer)
Zeile 1: #!/usr/bin/env /mnt/wsl/Kali/buildroot/output/host/bin/python
D:\OutputBuildroot\sdcard\1\usr\bin\lirc-init-db (1 Treffer)
Zeile 1: #!/usr/bin/env /mnt/wsl/Kali/buildroot/output/host/bin/python
D:\OutputBuildroot\sdcard\1\usr\bin\pronto2lirc (1 Treffer)
Zeile 1: #!/usr/bin/env /mnt/wsl/Kali/buildroot/output/host/bin/python
D:\OutputBuildroot\sdcard\1\usr\lib\libstdc++.so.6.0.28-gdb.py (2 Treffer)
Zeile 22: pythondir = '/mnt/wsl/Kali/buildroot/output/host/opt/ext-toolchain/share/gcc-10.3.1/python'
Zeile 23: libdir = "/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/lib"
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\config-3.10-arm-linux-gnueabihf\Makefile (12 Treffer)
Zeile 33: abs_srcdir= /mnt/wsl/Kali/buildroot/output/build/python3-3.10.7
Zeile 34: abs_builddir= /mnt/wsl/Kali/buildroot/output/build/python3-3.10.7
Zeile 37: CC= /mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc
Zeile 38: CXX= /mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-g++
Zeile 41: AR= /mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc-ar
Zeile 42: READELF= /mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-readelf
Zeile 205: OPENSSL_INCLUDES=-I/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include
Zeile 207: OPENSSL_LDFLAGS=-L/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
Zeile 220: CONFIG_ARGS= '--target=arm-buildroot-linux-gnueabihf' '--host=arm-buildroot-linux-gnueabihf' '--build=x86_64-pc-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--program-prefix=' '--disable-gtk-doc' '--disable-gtk-doc-html' '--disable-doc' '--disable-docs' '--disable-documentation' '--with-xmlto=no' '--with-fop=no' '--disable-dependency-tracking' '--enable-ipv6' '--disable-nls' '--disable-static' '--enable-shared' '--disable-lib2to3' '--disable-berkeleydb' '--disable-readline' '--disable-curses' '--with-libmpdec=none' '--with-expat=system' '--disable-sqlite3' '--with-openssl=/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr' '--disable-codecs-cjk' '--disable-uuid' '--disable-bzip2' '--disable-xz' '--disable-ossaudiodev' '--without-ensurepip' '--without-cxx-main' '--with-system-ffi' '--disable-pydoc' '--disable-test-modules' '--disable-tk' '--disable-nis' '--disable-idle3' '--disable-pyc-build' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=arm-buildroot-linux-gnueabihf' 'target_alias=arm-buildroot-linux-gnueabihf' 'CC=/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc' 'CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1' 'LDFLAGS=' 'CPPFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' 'CPP=/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-cpp' 'PKG_CONFIG=/mnt/wsl/Kali/buildroot/output/host/bin/pkg-config'
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\lib-dynload\array.cpython-310-arm-linux-gnueabihf.so (1 Treffer)
Zeile 225:
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\lib-dynload\pyexpat.cpython-310-arm-linux-gnueabihf.so (1 Treffer)
Zeile 197:
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\lib-dynload\_asyncio.cpython-310-arm-linux-gnueabihf.so (1 Treffer)
Zeile 330:
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\lib-dynload\_sha3.cpython-310-arm-linux-gnueabihf.so (1 Treffer)
Zeile 149:
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\lib-dynload\_ssl.cpython-310-arm-linux-gnueabihf.so (1 Treffer)
Zeile 641:
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\site-packages\lirc-setup\lirc-setup (1 Treffer)
Zeile 1: #!/usr/bin/env /mnt/wsl/Kali/buildroot/output/host/bin/python
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\_sysconfigdata__linux_arm-linux-gnueabihf.py (21 Treffer)
Zeile 10: 'AR': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc-ar',
Zeile 18: 'BLDSHARED': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc '
Zeile 24: 'CC': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc',
Zeile 59: "'--with-openssl=/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr' "
Zeile 68: "'CC=/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc' "
Zeile 73: "'CPP=/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-cpp' "
Zeile 74: "'PKG_CONFIG=/mnt/wsl/Kali/buildroot/output/host/bin/pkg-config'",
Zeile 78: 'COVERAGE_INFO': '/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7/coverage.info',
Zeile 79: 'COVERAGE_REPORT': '/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7/lcov-report',
Zeile 84: 'CXX': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-g++',
Zeile 574: 'LDCXXSHARED': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-g++ '
Zeile 580: 'LDSHARED': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc '
Zeile 599: 'LINKCC': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc',
Zeile 612: 'MAINCC': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc',
Zeile 642: 'OPENSSL_INCLUDES': '-I/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include',
Zeile 643: 'OPENSSL_LDFLAGS': '-L/mnt/wsl/Kali/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib',
Zeile 675: 'PYTHON_FOR_BUILD': '_PYTHON_PROJECT_BASE=/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7 '
Zeile 678: '/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7/`cat '
Zeile 740: 'READELF': '/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-readelf',
Zeile 814: 'abs_builddir': '/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7',
Zeile 815: 'abs_srcdir': '/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7',
D:\OutputBuildroot\sdcard\1\usr\lib\python3.10\__pycache__\_sysconfigdata__linux_arm-linux-gnueabihf.cpython-310.pyc (17 Treffer)
Zeile 12: AIX_BUILDDATEZAIX_GENUINE_CPLUSPLUSZALIGNOF_LONGé
Zeile 15: BLDLIBRARYz-L. -lpython3.10Z BLDSHAREDzL/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gcc -sharedZBUILDEXEZBUILDPYTHONZpythonZBUILD_GNU_TYPEzx86_64-pc-linux-gnuZBYTESTR_DEPSú\ZCCzD/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-gccZCCSHAREDz-fPICZCFLAGSz–-Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1ZCFLAGSFORSHAREDZCFLAGS_ALIASINGZ
Zeile 16: CFLAGS_NODISTZCONFIGFILESz?configure configure.ac acconfig.h pyconfig.h.in Makefile.pre.inZCONFIGURE_CFLAGSz]-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1ZCONFIGURE_CFLAGS_NODISTz§-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hiddenZCONFIGURE_CPPFLAGSz#-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64ZCONFIGURE_LDFLAGSZCONFIGURE_LDFLAGS_NODISTZCONFIG_ARGSaÒ
Zeile 18: COVERAGE_INFOzA/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7/coverage.infoZCOVERAGE_REPORTz?/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7/lcov-reportZCOVERAGE_REPORT_OPTIONSz2--no-branch-coverage --title "CPython lcov report"ZCPPFLAGSzP-I. -I./Include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64ZCXXzD/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-g++ZDESTDIRSzA/usr /usr/lib /usr/lib/python3.10 /usr/lib/python3.10/lib-dynloadZDESTLIBZDESTPATHZ
Zeile 107: INSTSONAMEzlibpython3.10.so.1.0ZIO_HzModules/_io/_iomodule.hZIO_OBJSZLDCXXSHAREDzL/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-g++ -sharedZLDFLAGSZLDFLAGS_NODISTZ LDLIBRARYzlibpython3.10.soZLDLIBRARYDIRZLDSHAREDZ LDVERSIONz3.10ZLIBCZLIBDESTZLIBDIRz/usr/libZLIBFFI_INCLUDEDIRZLIBMz-lmZ LIBOBJDIRzPython/ZLIBOBJSZLIBPCz/usr/lib/pkgconfigZLIBPLz3/usr/lib/python3.10/config-3.10-arm-linux-gnueabihfZ LIBPYTHONZLIBRARYzlibpython3.10.aZLIBRARY_DEPSz.libpython3.10.a libpython3.10.so libpython3.soZLIBRARY_OBJSZLIBRARY_OBJS_OMIT_FROZENZLIBSz,-lcrypt -lpthread -ldl -lpthread -lutil -lmZ
Zeile 110: LLVM_PROF_ERRZLLVM_PROF_FILEZLLVM_PROF_MERGERÚtrueZLNZlnZLOCALMODLIBSZMACHDEPZlinuxZMACHDEP_OBJSZMACHDESTLIBZMACOSX_DEPLOYMENT_TARGETZMAINCCZMAJOR_IN_MKDEVZMAJOR_IN_SYSMACROSZ MAKESETUPz./Modules/makesetupZMANDIRz/usr/share/manZMKDIR_Pz/usr/bin/mkdir -pZMODBUILT_NAMESzÇposix errno pwd _sre _codecs _weakref _functools _operator _collections _abc itertools atexit _signal _stat time _thread _locale _io faulthandler _tracemalloc _symtable xxsubtypeZMODDISABLED_NAMESZMODLIBSZMODOBJSab
Zeile 117: PYTHONPATHZPYTHON_FOR_BUILDaI
Zeile 120: QUICKTESTOPTSz)-x test_subprocess test_io test_lib2to3 \ZREADELFzH/mnt/wsl/Kali/buildroot/output/host/bin/arm-none-linux-gnueabihf-readelfZ RESSRCDIRzMac/Resources/frameworkZ
Zeile 138: XMLLIBSUBDIRSz)xml xml/dom xml/etree xml/parsers xml/saxZabs_builddirz3/mnt/wsl/Kali/buildroot/output/build/python3-3.10.7Z
D:\OutputBuildroot\sdcard\1\usr\sbin\lircd-setup (1 Treffer)
Zeile 1: #!/usr/bin/env /mnt/wsl/Kali/buildroot/output/host/bin/python
What could be the bug that those paths are included in my build?

Related

Getting Data::Dumper Object print error

Problem:
I am trying to print the $self object to know the contained data structure like below line and getting the error:
use Data::Dumper;
my $self = shift;
print Dumper($self);
Error:
Can't locate object method "FIRSTKEY" via package "Memoize::Expire" at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Data/Dumper.pm line 158
Version Information:
$ perl -MData::Dumper -le 'print Data::Dumper->VERSION';
2.121
$ perl -MMemoize::Expire -le 'print Memoize::Expire->VERSION';
1.03
$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.18-53.1.14.el5pae, archname=i386-linux-thread-multi
uname='linux builder16.centos.org 2.6.18-53.1.14.el5pae #1 smp wed mar 5 12:07:47 est 2008 i686 athlon i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Dversion=5.8.8 -Dmyhostname=localhost -Dperladmin=root#localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dinc_version_list=5.8.7 5.8.6 5.8.5 -Dscriptdir=/usr/bin'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.1.2 20071124 (Red Hat 4.1.2-42)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Sep 17 2008 13:37:09
#INC:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8
I can not update perl version, I have tried updating Data::Dumper with cpan install Data::Dumper;.
Which shows this /usr/bin/make test -- OK after installation.
But when I check again the version remains the same.
So Is there any way I can solve this problem?
Or I could use some other way to print the desired Object?
This reproduces the Can't locate object method "FIRSTKEY" via package "Memoize::Expire" error (tested on Perl 5.26):
use Memoize::Expire;
use Data::Dumper;
tie my %cache => 'Memoize::Expire';
print Dumper(\%cache);
I think this could be considered a bug in Memoize::Expire: it doesn't provide the FIRSTKEY and NEXTKEY implementations that Data::Dumper needs. You may want to report a bug in the issue tracker, although unfortunately the distribution seems unmaintained for several years. (You might also want to consider your use of Memoize::Expire in the first place - what are you using it for, do you really need it, etc.)
Since Data::Dumper is typically used for debugging, my question would be if you really need to see the contents of the Memoize::Expire object. If so, you might consider switching to Data::Dump because it provides Data::Dump::Filtered. While the following will not provide a data structure that can be evaled back to Perl, it will hopefully give you useful debug output:
use warnings;
use strict;
use Memoize::Expire;
use Data::Dump;
use Data::Dump::Filtered 'add_dump_filter';
add_dump_filter sub {
my ($ctx, $ref) = #_;
if ($ctx->reftype eq 'HASH' && defined(tied(%$ref))) {
return { comment=>"hashref tied to:",
object=>tied(%$ref) };
}
return undef; # normal processing
};
tie my %cache => 'Memoize::Expire';
$cache{x}='y';
dd \%cache;
Output:
# hashref tied to:
bless({
C => { x => "Z\x8C\25b\0\0\0\0\xFF\xFFy" },
LIFETIME => 0,
NUM_USES => 0,
}, "Memoize::Expire")
Finally, here's an IMO ugly hack quick fix with implementations borrowed from Tie::StdHash. This should get rid of the error but will however not show you the internal structure of the object:
sub Memoize::Expire::FIRSTKEY { my $a = scalar keys %{$_[0]{C}}; each %{$_[0]{C}} }
sub Memoize::Expire::NEXTKEY { each %{$_[0]{C}} }
$self is a tie'd object with some of the tied methods unimplemented. A workaround to dumping the tied object is to dump the underlying object
print Dumper(tied $self)
or in cases where it is ambiguous whether the object is tied or not
print Dumper(tied $self || $self)

Reading from barcode scanner to a text file in raspberry pi

I have a problem that I want to read the input that read by "bar code" and save it to a text file.
Raspberry pi B+ with latest version of wheezy.
"bar code" scanner "data logic q w 2100".
I solved problem with few steps simply:
1) make sure your repo is updated.
2) your barcode scanner is selected as USB KEYBOARD as shown in img:"1.PNG"
[DATALOGIC QW2100 KEYBOARD SELECTION][1][1]: http://i.stack.imgur.com/bxkG2.png
3) in Ubuntu barcode scanner capture data and view it in any window can capture input " terminal or text file " or any other thing.
4) in raspberry pi problem is that barcode scanner captured or read value is made into "/dev/hidraw0" for example.."that file is created auto when your barcode is connected to your raspi.
HERE IS SOME SIMPLE PYTHON CODE TO CAPTURE DATA FROM THAT FILE ONLY WHEN BARCODE IS CONNECTED TO RASPI:
import sys
done = False
while not done:
hid = { 4: 'a', 5: 'b', 6: 'c', 7: 'd', 8: 'e', 9: 'f', 10: 'g', 11: 'h', 12: 'i', 13: 'j', 14: 'k', 15: 'l', 16: 'm', 17: 'n', 18: 'o', 19: 'p', 20: 'q', 21: 'r', 22: 's', 23: 't', 24: 'u', 25: 'v', 26: 'w', 27: 'x', 28: 'y', 29: 'z', 30: '1', 31: '2', 32: '3', 33: '4', 34: '5', 35: '6', 36: '7', 37: '8', 38: '9', 39: '0', 44: ' ', 45: '-', 46: '=', 47: '[', 48: ']', 49: '\\', 51: ';' , 52: '\'', 53: '~', 54: ',', 55: '.', 56: '/' }
hid2 = { 4: 'A', 5: 'B', 6: 'C', 7: 'D', 8: 'E', 9: 'F', 10: 'G', 11: 'H', 12: 'I', 13: 'J', 14: 'K', 15: 'L', 16: 'M', 17: 'N', 18: 'O', 19: 'P', 20: 'Q', 21: 'R', 22: 'S', 23: 'T', 24: 'U', 25: 'V', 26: 'W', 27: 'X', 28: 'Y', 29: 'Z', 30: '!', 31: '#', 32: '#', 33: '$', 34: '%', 35: '^', 36: '&', 37: '*', 38: '(', 39: ')', 44: ' ', 45: '_', 46: '+', 47: '{', 48: '}', 49: '|', 51: ':' , 52: '"', 53: '~', 54: '<', 55: '>', 56: '?' }
fp = open('/dev/hidraw0', 'rb')
ss = ""
shift = False
done = False
while not done:
## Get the character from the HID
buffer = fp.read(8)
for c in buffer:
if ord(c) > 0:
## 40 is carriage return which signifies
## we are done looking for characters
if int(ord(c)) == 40:
done = True
break;
## If we are shifted then we have to
## use the hid2 characters.
if shift:
## If it is a '2' then it is the shift key
if int(ord(c)) == 2 :
shift = True
## if not a 2 then lookup the mapping
else:
ss += hid2[ int(ord(c)) ]
shift = False
## If we are not shifted then use
## the hid characters
else:
## If it is a '2' then it is the shift key
if int(ord(c)) == 2 :
shift = True
## if not a 2 then lookup the mapping
else:
ss += hid[ int(ord(c)) ]
print ss
##DONE
I ADDED FIRST WHILE LOOP TO MAKE SCRIPT WORK CONTINUOUS TILL U KILL IT WITH "CTRL+C".
ANOTHER THING: IMAGE IS FOR DATALOGIC BARCODE CODE SCANNER QW2100 LITE, SO CHECK YOUR BARCODE MANUEL CAREFULLY TOO.
If the LED comes on, I suggest you to boot your raspberry with barcode scanner plug in, open terminal and type:
sudo apt-get update
sudo apt-get upgrade
After that, reboot and open a txt file a try to scan a barcode; Pay attention that barcode is recognized by scanner.
I bought a barcode scanner and I have the same problem me too. In this way I solved.

Generic mexopts file for GCC/Clang OSX/Linux [R2014b]

It is a recurrent pain in the ice to set up this blurry mexopts.sh... I would just like a generic configuration that works with all combinations of:
Ubuntu 14+ and OSX 10.10+;
gcc 4.8+ and clang 3.5+
I don't want any dependence to Xcode for the OSX part, I don't mind editing that file manually to change version numbers occasionally, and I don't care about warnings regarding the GCC version.
Here is my chaotic mess so far, hopefully with a little help we can finally get something decent:
#
# mexopts.sh Shell script for configuring MEX-file creation script,
# mex. These options were tested with the specified compiler.
#
# usage: Do not call this file directly; it is sourced by the
# mex shell script. Modify only if you don't like the
# defaults after running mex. No spaces are allowed
# around the '=' in the variable assignment.
#
# Note: For the version of system compiler supported with this release,
# refer to the Supported and Compatible Compiler List at:
# http://www.mathworks.com/support/compilers/current_release/
#
#
# SELECTION_TAGs occur in template option files and are used by MATLAB
# tools, such as mex and mbuild, to determine the purpose of the contents
# of an option file. These tags are only interpreted when preceded by '#'
# and followed by ':'.
#
#SELECTION_TAG_MEX_OPT: Template Options file for building MEX-files
#
# Copyright 1984-2011 The MathWorks, Inc.
# $Revision: 1.78.4.18 $ $Date: 2012/11/15 06:22:54 $
#----------------------------------------------------------------------------
#
TMW_ROOT="$MATLAB"
MFLAGS=''
if [ "$ENTRYPOINT" = "mexLibrary" ]; then
MLIBS="-L$TMW_ROOT/bin/$Arch -lmx -lmex -lmat -lmwservices -lut"
else
MLIBS="-L$TMW_ROOT/bin/$Arch -lmx -lmex -lmat"
fi
case "$Arch" in
Undetermined)
#----------------------------------------------------------------------------
# Change this line if you need to specify the location of the MATLAB
# root directory. The script needs to know where to find utility
# routines so that it can determine the architecture; therefore, this
# assignment needs to be done while the architecture is still
# undetermined.
#----------------------------------------------------------------------------
MATLAB="$MATLAB"
;;
glnx86)
#----------------------------------------------------------------------------
echo "Error: Did not imbed 'options.sh' code"; exit 1 #imbed options.sh glnx86 12
#----------------------------------------------------------------------------
;;
glnxa64_gcc|glnxa64)
#----------------------------------------------------------------------------
RPATH="-Wl,-rpath-link,$TMW_ROOT/bin/$Arch"
#
CC='gcc'
CFLAGS='-ansi -D_GNU_SOURCE'
CFLAGS="$CFLAGS -fexceptions"
CFLAGS="$CFLAGS -fPIC -fno-omit-frame-pointer -pthread"
CLIBS="$RPATH $MLIBS -lm"
COPTIMFLAGS='-O2 -DNDEBUG'
CDEBUGFLAGS='-g'
#
CXX='g++'
CXXFLAGS='-ansi -D_GNU_SOURCE -std=c++0x'
CXXFLAGS="$CXXFLAGS -fPIC -fno-omit-frame-pointer -pthread"
CXXLIBS="$RPATH $MLIBS -lm"
CXXOPTIMFLAGS='-O2 -DNDEBUG'
CXXDEBUGFLAGS='-g'
#
FC='gfortran'
FFLAGS='-fexceptions -fbackslash'
FFLAGS="$FFLAGS -fPIC -fno-omit-frame-pointer"
FLIBS="$RPATH $MLIBS -lm"
FOPTIMFLAGS='-O'
FDEBUGFLAGS='-g'
#
LD="$COMPILER"
LDEXTENSION='.mexa64'
LDFLAGS="-pthread -shared -Wl,--version-script,$TMW_ROOT/extern/lib/$Arch/$MAPFILE -Wl,--no-undefined"
LDOPTIMFLAGS='-O'
LDDEBUGFLAGS='-g'
#
POSTLINK_CMDS=':'
#----------------------------------------------------------------------------
;;
glnxa64_clang)
#----------------------------------------------------------------------------
RPATH="-Wl,-rpath-link,$TMW_ROOT/bin/$Arch"
#
CC='clang'
CFLAGS="-fno-common -fexceptions -fPIC -fno-omit-frame-pointer -pthread"
CLIBS="$MLIBS -lstdc++"
COPTIMFLAGS='-O2 -DNDEBUG'
CDEBUGFLAGS='-g'
#
CXX='clang++'
CXXFLAGS="-fno-common -fexceptions -fPIC -fno-omit-frame-pointer -pthread"
CXXLIBS="$RPATH $MLIBS -lstdc++"
CXXOPTIMFLAGS='-O2 -DNDEBUG'
CXXDEBUGFLAGS='-g'
#
FC='gfortran'
FFLAGS='-fexceptions -fbackslash'
FFLAGS="$FFLAGS -fPIC -fno-omit-frame-pointer"
FLIBS="$RPATH $MLIBS -lm"
FOPTIMFLAGS='-O'
FDEBUGFLAGS='-g'
#
LD="$COMPILER"
LDEXTENSION='.mexa64'
LDFLAGS="-pthread -shared -Wl,--version-script,$TMW_ROOT/extern/lib/$Arch/$MAPFILE -Wl,--no-undefined"
LDOPTIMFLAGS='-O'
LDDEBUGFLAGS='-g'
POSTLINK_CMDS=':'
#----------------------------------------------------------------------------
;;
sol64|mac|maci)
#----------------------------------------------------------------------------
echo "Error: Did not imbed 'options.sh' code"; exit 1 #imbed options.sh sol64 12
#----------------------------------------------------------------------------
;;
maci64_clang|maci64)
#
SDKROOT=""
MACOSX_DEPLOYMENT_TARGET='10.10'
ARCHS='x86_64'
MAC_FLAGS="-arch $ARCHS -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
#
CC='clang'
CFLAGS="-fno-common $MAC_FLAGS"
CFLAGS="$CFLAGS -fexceptions"
CLIBS="$MLIBS -lstdc++"
COPTIMFLAGS='-O2 -DNDEBUG'
CDEBUGFLAGS='-g'
#
CXX='clang++'
CXXFLAGS="-fno-common -fexceptions $MAC_FLAGS"
CXXLIBS="$MLIBS -lstdc++"
CXXOPTIMFLAGS='-O2 -DNDEBUG'
CXXDEBUGFLAGS='-g'
#
FC='gfortran'
FFLAGS='-fexceptions -m64 -fbackslash'
FC_LIBDIR=`$FC -print-file-name=libgfortran.dylib 2>&1 | sed -n '1s/\/*libgfortran\.dylib//p'`
FC_LIBDIR2=`$FC -print-file-name=libgfortranbegin.a 2>&1 | sed -n '1s/\/*libgfortranbegin\.a//p'`
FLIBS="$MLIBS -L$FC_LIBDIR -lgfortran -L$FC_LIBDIR2 -lgfortranbegin"
FOPTIMFLAGS='-O'
FDEBUGFLAGS='-g'
#
LD="$CC"
LDEXTENSION='.mexmaci64'
LDFLAGS="-arch $ARCHS -Wl -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
LDFLAGS="$LDFLAGS -bundle -Wl,-exported_symbols_list,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"
LDOPTIMFLAGS='-O'
LDDEBUGFLAGS='-g'
#
POSTLINK_CMDS=':'
#----------------------------------------------------------------------------
;;
maci64_gcc) # doesn't work
#
SDKROOT=""
MACOSX_DEPLOYMENT_TARGET='10.10'
ARCHS='x86_64'
MAC_FLAGS="-arch $ARCHS -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
RPATH="-Wl,$TMW_ROOT/bin/$Arch"
#
CC='gcc'
CFLAGS='-ansi -D_GNU_SOURCE'
CFLAGS="$CFLAGS -fexceptions $MAC_FLAGS"
CFLAGS="$CFLAGS -fPIC -fno-omit-frame-pointer -pthread"
CLIBS="$RPATH $MLIBS -lm"
COPTIMFLAGS='-O2 -DNDEBUG'
CDEBUGFLAGS='-g'
#
CXX='g++'
CXXFLAGS="-ansi -D_GNU_SOURCE $MAC_FLAGS"
CXXFLAGS="$CXXFLAGS -fPIC -fno-omit-frame-pointer -pthread"
CXXLIBS="$RPATH $MLIBS -lm"
CXXOPTIMFLAGS='-O2 -DNDEBUG'
CXXDEBUGFLAGS='-g'
#
FC='gfortran'
FFLAGS='-fexceptions -fbackslash'
FFLAGS="$FFLAGS -fPIC -fno-omit-frame-pointer"
FLIBS="$RPATH $MLIBS -lm"
FOPTIMFLAGS='-O'
FDEBUGFLAGS='-g'
#
LD="$CC"
LDEXTENSION='.mexmaci64'
LDFLAGS="$MAC_FLAGS -bundle -Wl,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"
LDOPTIMFLAGS='-O'
LDDEBUGFLAGS='-g'
#
POSTLINK_CMDS=':'
#----------------------------------------------------------------------------
;;
esac
#############################################################################
#
# Architecture independent lines:
#
# Set and uncomment any lines which will apply to all architectures.
#
#----------------------------------------------------------------------------
# CC="$CC"
# CFLAGS="$CFLAGS"
# COPTIMFLAGS="$COPTIMFLAGS"
# CDEBUGFLAGS="$CDEBUGFLAGS"
# CLIBS="$CLIBS"
#
# FC="$FC"
# FFLAGS="$FFLAGS"
# FOPTIMFLAGS="$FOPTIMFLAGS"
# FDEBUGFLAGS="$FDEBUGFLAGS"
# FLIBS="$FLIBS"
#
# LD="$LD"
# LDFLAGS="$LDFLAGS"
# LDOPTIMFLAGS="$LDOPTIMFLAGS"
# LDDEBUGFLAGS="$LDDEBUGFLAGS"
#----------------------------------------------------------------------------
#############################################################################
You can see that I'm trying to get a different section for each combination arch_compiler. I can then manually select the compiler I want simply by ORing the case choice with the target architecture.

How to fix this Perl Library Missing Error: "Can't locate auto/threads/error.al in #INC"?

I am running a trinity RNASeq Assembly software on Ubuntu server and the following error is occuring for Pair-end reads input.
can't locate auto/threads/error.al in #INC (#INC contains:
I checked for threads library and it's already in the perl library.
Any thoughts on this?
$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.9-42.0.3.elsmp, archname=x86_64-linux-thread-multi
uname='linux builder6.centos.org 2.6.9-42.0.3.elsmp #1 smp fri oct 6 06:28:26 cdt 2006 x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Dversion=5.8.8 -Dmyhostname=localhost -Dperladmin=root#localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Dlibpth=/usr/local/lib64
/lib64 /usr/lib64 -Dprivlib=/usr/lib/perl5/5.8.8
-Dsitelib=/usr/lib/perl5/site_perl/5.8.8 -Dvendorlib=/usr/lib/perl5/vendor_perl/5.8.8 -Darchlib=/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi -Dsitearch=/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
-Darchname=x86_64-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dinc_version_list=5.8.7 5.8.6 5.8.5 -Dscriptdir=/usr/bin'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define Linker and Libraries:
ld='gcc', ldflags =''
libpth=/usr/local/lib64 /lib64 /usr/lib64
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.5' Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
Characteristics of this binary (from libperl): Compile-time
options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT
USE_ITHREADS USE_LARGE_FILES USE_PERLIO
USE_REENTRANT_API Built under linux Compiled at Nov 8 2007 06:49:06 %ENV:
PERL5LIB="/fs/home/anuphap/usr/lib/perl5:/fs/home/anuphap/usr/lib/perl5/site_perl:/fs/home/anuphap/usr/lib64/perl5:/fs/home/anuphap/usr/lib64/perl5/site_perl"
#INC:
/fs/home/anuphap/usr/lib/perl5/5.8.8
/fs/home/anuphap/usr/lib/perl5
/fs/home/anuphap/usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/fs/home/anuphap/usr/lib/perl5/site_perl/5.8.8
/fs/home/anuphap/usr/lib/perl5/site_perl
/fs/home/anuphap/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
/fs/home/anuphap/usr/lib64/perl5/5.8.8
/fs/home/anuphap/usr/lib64/perl5
/fs/home/anuphap/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/fs/home/anuphap/usr/lib64/perl5/site_perl/5.8.8
/fs/home/anuphap/usr/lib64/perl5/site_perl
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/5.8.8
You need to install a version of Perl that has threads support. How to install:
wget http://www.cpan.org/src/5.0/perl-5.20.2.tar.gz
tar -xzf perl-5.20.2.tar.gz
cd perl-5.20.2
./Configure -des -Dprefix=$HOME/localperl
make
make test
make install
Read both INSTALL and README.yoursystem for more detailed information.

Why does perl crash with "*** glibc detected *** perl: munmap_chunk(): invalid pointer"?

#!/usr/bin/env perl
use warnings;
use strict;
use 5.012;
use XML::LibXML::Reader;
my $reader = XML::LibXML::Reader->new( location => 'http://www.heise.de/' ) or die $!;
while ( $reader->read ) {
say $reader->name;
}
At the end of the output from this script I get this error-messages:
* glibc detected * perl: munmap_chunk(): invalid pointer: 0x0000000000b362e0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x7fb84952fc76]
...
======= Memory map: ========
00400000-0053d000 r-xp 00000000 08:01 182002 /usr/local/bin/perl
...
Is this due a bug?
perl -V:
Summary of my perl5 (revision 5 version 12 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.31.12-0.2-desktop, archname=x86_64-linux
uname='linux linux1 2.6.31.12-0.2-desktop #1 smp preempt 2010-03-16 21:25:39 +0100 x86_64 x86_64 x86_64 gnulinux '
config_args='-Dnoextensions=ODBM_File'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.1 [gcc-4_4-branch revision 150839]', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.10.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.10.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Apr 15 2010 13:25:46
#INC:
/usr/local/lib/perl5/site_perl/5.12.0/x86_64-linux
/usr/local/lib/perl5/site_perl/5.12.0
/usr/local/lib/perl5/5.12.0/x86_64-linux
/usr/local/lib/perl5/5.12.0
.
Hope, this Debian Bug report #479698 is answer of your question.