jas,
no problem, i assume you are very busy as well. i just installed a
version of perl 5.005_03 which i tried using instead of my 5.004_04
version. the perl -V on the 5.005 showed "cc='gcc'" while the perl -V on
the 5.004 showed "cc='/opt/ansic/bin/cc'", so perhaps the 5.005 version
should work? this is the output i get when i do a (5.005) perl
Makefile.PL:
cd DOMParse && test -f Makefile && /opt/make/bin/gmake clean
gmake[1]: Entering directory `/opt/xerces-p-1.5.7/DOMParse'
rm -rf ./blib Makefile.aperl
../blib/arch/auto/XML/Xerces/DOMParse/extralibs.all perlmain.c mon.out
core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a perl.exe DOMParse.bso
DOMParse.def DOMParse.exp
mv Makefile Makefile.old > /dev/null 2>&1
gmake[1]: Leaving directory `/opt/xerces-p-1.5.7/DOMParse'
rm -rf ./blib Makefile.aperl blib/arch/auto/XML/Xerces/extralibs.all
perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a
perl.exe Xerces.bs Xerces.bso Xerces.def Xerces.exp
mv Makefile Makefile.old > /dev/null 2>&1
a18 : /usr/local/bin/perl Makefile.PL
Using XERCES_LIB = /opt/xerces-c/lib
Using XERCES_INCLUDE = /opt/xerces-c/include
Checking to see if libxerces is in your library path...Checking if your
kit is complete...
Looks good
'PREREQ_PM' is not a known MakeMaker parameter name.
Warning: Guessing NAME [xerces-p] from current directory name.
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for Handler
Use of uninitialized value at (eval 21) line 98.
Use of uninitialized value at (eval 33) line 74.
Use of uninitialized value at (eval 33) line 75.
Use of uninitialized value at (eval 33) line 76.
Use of uninitialized value at (eval 33) line 89.
Use of uninitialized value at (eval 64) line 14.
Use of uninitialized value at (eval 64) line 15.
Use of uninitialized value at (eval 64) line 16.
Use of uninitialized value at (eval 64) line 17.
Use of uninitialized value at (eval 64) line 19.
Use of uninitialized value at (eval 64) line 20.
Use of uninitialized value at (eval 64) line 21.
Use of uninitialized value at (eval 64) line 22.
Use of uninitialized value at (eval 64) line 34.
Use of uninitialized value at (eval 64) line 43.
Success!!
Using Xerces-C version: 1.5.1
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for XML::Xerces
and now when i do /opt/make/bin/gmake, i get:
/opt/make/bin/gmake -C Handler static
gmake[1]: Entering directory `/opt/xerces-p-1.5.7/Handler'
gcc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-I/usr/local/include -D_FILE_OFFSET_BITS=64 -I/usr/local/include -O
-DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic
-I/usr/local/lib/perl5/5.00503/PA-RISC1.1/CORE
PerlContentCallbackHandler.cpp
In file included from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdlib.h:18,
from PerlContentCallbackHandler.cpp:1:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:90: syntax
error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:111: syntax
error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:133: syntax
error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:155: syntax
error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:177: syntax
error before `;' token
In file included from /usr/include/sys/resource.h:59,
from /usr/include/sys/wait.h:91,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdlib.h:265,
from PerlContentCallbackHandler.cpp:1:
/usr/include/sys/_rlimit_body.h:44: 'rlim_t' is used as a type, but is not
defined as a type.
/usr/include/sys/_rlimit_body.h:45: 'rlim_t' is used as a type, but is not
defined as a type.
In file included from /usr/include/pwd.h:117,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdlib.h:361,
from PerlContentCallbackHandler.cpp:1:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:218: type
specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:218: parse
error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:219: parse
error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:608: syntax
error before `(' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:613: type
specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:614: type
specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:614: parse
error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:615: parse
error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:633: type
specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:633: parse
error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h: In
function
`int fgetpos(...)':
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:634: `__a'
undeclared (first use this function)
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:634: (Each
undeclared identifier is reported only once for each function it
appears
in.)
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:634: `__b'
undeclared (first use this function)
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h: At
global
scope:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:635: parse
error before `*' token
In file included from /usr/include/sys/stat.h:37,
from
/usr/local/lib/perl5/5.00503/PA-RISC1.1/CORE/perl.h:537,
from PerlContentCallbackHandler.hpp:9,
from PerlContentCallbackHandler.cpp:2:
/usr/include/sys/_stat_body.h:52: 'off_t' is used as a type, but is not
defined
as a type.
/usr/include/sys/_stat_body.h:60: 'blkcnt_t' is used as a type, but is not
defined as a type.
gmake[1]: *** [PerlContentCallbackHandler.o] Error 1
gmake[1]: Leaving directory `/opt/xerces-p-1.5.7/Handler'
gmake: *** [blib/arch/auto/Handler/Handler.a] Error 2
... anyway, if it still helps, here is the output of my (5.005) perl -V:
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=hpux, osvers=11.00, archname=PA-RISC1.1
uname='hp-ux disco b.11.00 u 9000800 125901587 unlimited-user license
'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='gcc', optimize='-O', gccversion=2.9-hppa-991112
cppflags='-D_HPUX_SOURCE -I/usr/local/include -D_FILE_OFFSET_BITS=64
-I/usr/local/include'
ccflags ='-D_HPUX_SOURCE -I/usr/local/include -D_FILE_OFFSET_BITS=64
-I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lndbm -ldld -lm -lpthread
libc=/usr/lib/libc.sl, 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'
Characteristics of this binary (from libperl):
Built under hpux
Compiled at Jun 12 2001 12:31:36
@INC:
/usr/local/lib/perl5/5.00503/PA-RISC1.1
/usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/PA-RISC1.1
/usr/local/lib/perl5/site_perl/5.005
...any ideas? :)
thanks,
kent
On 10 Oct 2001, Jason E. Stewart wrote:
> "Kent Johnson" <[EMAIL PROTECTED]> writes:
>
> > don't know if you got this, but was wondering if you could help me.. i'm
> > still having trouble getting this working on hp-ux, and i really need a
> > good xml parser for it, quickly, as i am falling behind on a project i
> > need to complete. thanks so much for your help
>
> Sorry Kent,
>
> I guess I let it fall through the cracks...
>
> > > 2) download and compile perl 5.6.1 with gcc
> >
> > So I have to compile the source? I can't just use a precompiled HP-UX
> > version? Can I only use a precompiled version if it was compiled with
> > gcc? If so, how does it remember who compiled it? :)
>
> Since you don't have any C++ compiler besides g++, we'll have to make
> it work.
>
> No, you don't have to get the source. The precompiled version from
> HPUX is likely to have been compiled with their C compiler.
>
> There are two issues:
> 1) perl remembers all of it's configuration settings in the Config.pm
> module that it installs along with everything else. This is how
> MakeMaker can automatically generate Makefiles that will work with
> any given Perl installation.
>
> 2) mixing of C++ libraries. If you mix C++ libraries compiled with
> different compilers, you are likely to get into serious trouble
> because there is no standard interface. I realize now, that this is
> not likely to be an issue for you, since the C interface is
> standardized, you can mix and match C libraries all you want. Since
> g++ is your only C++ compiler there is no issue.
>
> Because of issue 1), every compile line that Perl generates for the
> XML::Xerces C++ code will have HPUX C compiler specific flags thrown
> in, hence the -aA and -z in your compile lines, which are not gcc
> flags, which is why gcc complained.
>
> What we need to do is make a hints/hpux.pl file that will set all the
> necessary MakeMaker variables to work with g++ even though perl has
> been configured using HPUX's cc.
>
> Send the output of perl -V to the list, and I'll compare it mine, and
> that should solve the problem.
>
> jas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]