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

[ID 20010825.006] -DCRIPPLED_CC is broken

Thread Next
From:
Nicholas Clark
Date:
August 25, 2001 09:45
Subject:
[ID 20010825.006] -DCRIPPLED_CC is broken
Message ID:
20010825174459.O41464@plum.flirble.org
This is a bug report for perl from nick@talking.bollo.cx,
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:


#ifndef CRIPPLED_CC
/* 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_IMMEDIATE_UNREF	1
#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]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
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:
  Platform:
    osname=linux, osvers=2.4.5-rmk6, archname=armv4l-linux
    uname='linux bagpuss.unfortu.net 2.4.5-rmk6 #4 tue jun 19 23:26:57 bst 2001 armv4l unknown '
    config_args='-Doptimize=-g -Dusedevel -Ubincompat5005 -Uinstallusrbinperl -Dcf_email=nick@talking.bollo.cx -Dperladmin=nick@talking.bollo.cx -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
  Compiler:
    cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    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/libc-2.2.3.so, 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:
    DEVEL11709

---
@INC for perl v5.7.2:
    /usr/local/lib/perl5/5.7.2/armv4l-linux
    /usr/local/lib/perl5/5.7.2
    /usr/local/lib/perl5/site_perl/5.7.2/armv4l-linux
    /usr/local/lib/perl5/site_perl/5.7.2
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.7.2:
    HOME=/home/nick
    LANG (unset)
    LANGUAGE (unset)
    LC_CTYPE=en_GB.ISO-8859-1
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/nick/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/sbin:/usr/sbin:/usr/local/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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