develooper Front page | perl.perl5.build | Postings from December 2004

Re: Compile error toke.c

Thread Previous | Thread Next
From:
Alex
Date:
December 17, 2004 03:21
Subject:
Re: Compile error toke.c
Message ID:
20041217042121.856.qmail@lists.develooper.com
Hello.
I'm not experienced in C, to my regret ...

"Andrew Dougherty" <doughera@lafayette.edu> wrote:
> I can't reproduce this on Solaris 8, SPARC, with gcc 3.4.1.  Here's line
2558:
>      bof = PerlIO_tell(PL_rsfp) == (Off_t)SvCUR(PL_linestr);
> It's possible your gcc would be happier with an extra pair of parentheses
> around the righthand side of the '=' sign.

It doesn't help unfortunatly.

> You can also try
> make toke.i

It gave me the following:
bof = Perl_PerlIO_tell(my_perl, (my_perl->Irsfp)) == (off_t)((XPV*)
((my_perl->Ilinestr))->sv_any)->xpv_cur;

> If you suspect your compiler, you can tell it not to optimize (toke.c is
> the most tortuous file to optimize) with
> make toke.o OPTIMIZE=
It doesn't help also.
> For comparison, here's the output of my ./myconfig:
And here is my, if it can help:

Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=solaris, osvers=2.10, archname=i86pc-solaris-thread-multi
    uname='sunos postoffice.psu.ru 5.10 s10_55 i86pc i386 i86pc '
    config_args='-de -Dusethreads -Dcc=gcc -B/usr/ccs/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 -B/usr/ccs/bin/', ccflags
='-D_REENTRANT -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_
SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-D_REENTRANT -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.3.2', gccosandvers='solaris2.10'
    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 -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lpthread -lc
    perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Regards,
Alex.



Thread Previous | 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