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

[ID 20010814.005] Issues with perl 5.6.1 and h2ph

Thread Next
Nathan Neulinger
August 14, 2001 06:26
[ID 20010814.005] Issues with perl 5.6.1 and h2ph
Message ID:
First, let me mention - this isn't a problem with normal apps using perl. It's
only a problem for people still using old perl4 backwards compatible code 
such as sys/ and friends.

I've got a couple of systems (solaris 2.6, 2.7 based, and redhat 6.2,7.1 based)
that have issues with the generated .ph files.

First problem - it is including defines like 


in Those I was able to deal with by the following h2ph change:

--- /afs/	Wed Aug  8 15:18:58 2001
+++ solaris26/bin/h2ph	Tue Aug 14 07:58:21 2001
@@ -528,6 +528,8 @@
             if ($opt_D) {
                 print PREAMBLE "# $_=$define{$_}\n";
+	    next if ($_ =~ /^\-/);
             if ($define{$_} =~ /^\d+$/) {
                 print PREAMBLE

but there are lots of other problems as well. For example, I get a number of
prototype errors and other weirdnesses.

On solaris 26:
	Prototype mismatch: sub main::_LARGEFILE_SOURCE vs () at (eval 4) line 1.

On redhat 62:
	Prototype mismatch: sub main::__need_size_t vs () at (eval 50) line 1.
String found where operator expected at (eval 231) line 1, near "&__const 'struct sockaddr'"
        (Missing operator before  'struct sockaddr'?)

Is the h2ph stuff no longer supported, or is this an oddball problem somehow
specific to my local installation of perl?

I am building a fresh install of perl 5.6.1 w/ new module builds, so I'm 
game for anything you'd like me to try. Not 5.7 though. :)

Here's my myconfig output from solaris26:

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos ultra10 5.6 generic_105181-17 sun4u sparc sunw,ultra-5_10 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    ccversion='', gccversion='3.0', gccosandvers='solaris2.6'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' '
    libpth=/usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E'
    cccdlflags='-fPIC', lddlflags=' -W,l-E -G'

-- Nathan

Nathan Neulinger                       EMail:
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216

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