Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOT OK perl 5.005_61 on HP-UX 10.20 with gcc 2.95.1 #440

p5pRT opened this issue Aug 26, 1999 · 1 comment

NOT OK perl 5.005_61 on HP-UX 10.20 with gcc 2.95.1 #440

p5pRT opened this issue Aug 26, 1999 · 1 comment


Copy link

p5pRT commented Aug 26, 1999

Migrated from (status was 'resolved')

Searchable as RT1281$

Copy link

p5pRT commented Aug 26, 1999


This is a build failure report for 5.005_61 under HP-UX 10.20 when
using gccc 2.95.1. (I've seen this reported on c.l.p.*, but not on
p5p yet.) The build dies when compiling util.c​:

`sh cflags libperl.a dump.o` dump.c
  CCCMD = gcc -DPERL_CORE -c -D_HPUX_SOURCE -I/usr/local/include -I/opt/local/include -O
`sh cflags libperl.a util.o` util.c
  CCCMD = gcc -DPERL_CORE -c -D_HPUX_SOURCE -I/usr/local/include -I/opt/local/include -O
util.c​: In function `Perl_cast_iv'​:
util.c​:2716​: parse error before `l'

gcc -E shows the problem​:

Perl_cast_iv( NV f)
  if (f >= 2147483647l ) {
  UV uv;
  if (f >= (NV) 4294967295u l )
  return (IV) 4294967295u l ;
  uv = (UV) f;

gcc doesn't appreciate the whitespace between the u and the l. Where it's
coming from, I've no idea.

HP's own ANSI C compiler sails right through.

Perl Info

Site configuration information for perl 5.00405:

Configured by schinder at Thu Apr 29 23:20:53 EDT 1999.

Summary of my perl5 (5.0 patchlevel 4 subversion 5) configuration:
    osname=hpux, osvers=10.20, archname=PA-RISC1.1
    uname='hp-ux cirsrss b.10.20 a 9000735 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
    cc='gcc', optimize='-O', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release)
    cppflags='-D_HPUX_SOURCE -I/usr/local/include -I/opt/local/include'
    ccflags ='-D_HPUX_SOURCE -I/usr/local/include -I/opt/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=undef, doublesize=undef
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /usr/lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt -lbind
    libc=/lib/, so=sl
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib -L/opt/local/lib'

Locally applied patches:

@INC for perl 5.00405:

Environment for perl 5.00405:
    LANG (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant