読者です 読者をやめる 読者になる 読者になる

32bit perl build on CentOS 6.4 64bit

yum install

% sudo yum install glibc-devel.i686 libstdc++-devel.i686

Configure

% ./Configure -des -Dccflags='-m32' -Dldflags='-m32' -Dlddlflags='-shared -m32' -Dprefix=$HOME/perl32 -Darchname=i686-linux

perl-V

% $HOME/perl32/bin/perl -V
Summary of my perl5 (revision 5 version 18 subversion 0) configuration:

  Platform:
    osname=linux, osvers=2.6.32-358.el6.x86_64, archname=i686-linux
    uname='linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 smp fri feb 22 00:31:26 utc 2013 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Dccflags=-m32 -Dldflags=-m32 -Dlddlflags=-shared -m32 -Dprefix=/home/vagrant/perl32 -Darchname=i686-linux'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-m32 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-m32 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-3)', 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='cc', ldflags ='-m32 -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /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.12.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.12'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -m32 -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Built under linux
  Compiled at Jul 18 2013 16:01:03
  @INC:
    /home/vagrant/perl32/lib/site_perl/5.18.0/i686-linux
    /home/vagrant/perl32/lib/site_perl/5.18.0
    /home/vagrant/perl32/lib/5.18.0/i686-linux
    /home/vagrant/perl32/lib/5.18.0
    .