develooper Front page | perl.perl5.porters | Postings from August 2001

[ID 20010825.006] -DCRIPPLED_CC is broken

Thread Next
Nicholas Clark
August 25, 2001 09:45
[ID 20010825.006] -DCRIPPLED_CC is broken
Message ID:
This is a bug report for perl from,
generated with the help of perlbug 1.33 running under perl v5.7.2.

[Please enter your report here]

Are we still supporting compilation with -DCRIPPLED_CC?
If no, why haven't we taken it out?
If yes, how can it be fixed?

The problems seem to be due to definitions in sv.c which only occur inside
an #ifndef CRIPPLED_CC block:

/* redefine some things to more efficient inlined versions */

/* Let us hope that bitmaps for UV and IV are the same */
#undef SvIV
#define SvIV(sv) (SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv))

#undef SvUV
#define SvUV(sv) (SvIOK(sv) ? SvUVX(sv) : sv_2uv(sv))

#undef SvNV
#define SvNV(sv) (SvNOK(sv) ? SvNVX(sv) : sv_2nv(sv))

/* flag values for sv_*_flags functions */
#define SV_GMAGIC		2

#define sv_setsv_macro(dsv, ssv) sv_setsv_flags(dsv, ssv, SV_GMAGIC)


1: Those SV_IMMEDIATE_UNREF and SV_GMAGIC definitions appear to be in the wrong
   place, as they are needed in sv.c independent of the setting of CRIPPLED_CC
   sv.o is failing to build.

2: The section inside the #ifndef CRIPPLED_CC block seem to provide the only
   definitions of a lot of "functions" such as sv_setsv.  With CRIPPLED_CC
   defined sv.h doesn't map things like sv_setsv into a call to
   Perl_sv_setsv_flags, resulting in warnings such as:

          CCCMD =  cc -DPERL_CORE -c -DDEBUGGING -DCRIPPLED_CC -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -Wall 
regcomp.c: In function `S_scan_commit':
regcomp.c:499: warning: implicit declaration of function `sv_setsv'
regcomp.c: In function `S_study_chunk':
regcomp.c:887: warning: implicit declaration of function `sv_catpvn'
regcomp.c:1232: warning: implicit declaration of function `sv_catsv'

   so even with sv.o building the link is going to fail.

It's not totally clear to me what all the mappings in sv.h are about, so I
didn't really want to attempt a patch and get it subtly wrong.

Nicholas Clark

[Please do not change anything below this line]
This perlbug was built using Perl v5.7.2 - Sat Aug 18 16:19:45 BST 2001
It is being executed now by  Perl v5.7.2 - Sat Aug 25 12:31:28 BST 2001.

Site configuration information for perl v5.7.2:

Configured by nick at Sat Aug 25 12:31:28 BST 2001.

Summary of my perl5 (revision 5.0 version 7 subversion 2 patch 11741) configuration:
    osname=linux, osvers=2.4.5-rmk6, archname=armv4l-linux
    uname='linux 2.4.5-rmk6 #4 tue jun 19 23:26:57 bst 2001 armv4l unknown '
    config_args='-Doptimize=-g -Dusedevel -Ubincompat5005 -Uinstallusrbinperl -Dinc_version_list=  -Dinc_version_list_init=0 -Uuse64bitint -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20010319 (Debian prerelease)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldbm -ldb -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.7.2:

Environment for perl v5.7.2:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About